@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
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),n=require("react"),q=require("../../utils/cn.cjs"),k=require("../Icon/index.cjs"),P=require("../Popover/Popover.cjs"),R=require("../Input/Input.cjs"),_=require("./ImageAnnotation.const.cjs");let T=1;function L(o,a,r,t){return c.jsx("div",{className:"Bear-ImageAnnotation__edit min-w-[160px]",children:c.jsx(R.Input,{autoFocus:!0,size:"sm",value:o,onChange:s=>a(s.target.value),onKeyDown:s=>{s.key==="Enter"&&r(),s.key==="Escape"&&t()},placeholder:"Add note..."})})}function O(o,a,r,t){return c.jsxs("div",{className:"Bear-ImageAnnotation__label text-xs text-gray-700 dark:text-gray-200 whitespace-nowrap flex items-center gap-1",children:[t??o.text,a&&c.jsx("button",{type:"button",className:"text-red-400 hover:text-red-600 ml-1",onClick:s=>{s.stopPropagation(),r(o.id)},children:c.jsx(k.BearIcons.XIcon,{size:12})})]})}const D=({src:o,alt:a="",annotations:r,onChange:t,editable:s=!0,pinColor:A=_.DEFAULT_PIN_COLOR,pinSize:x=_.DEFAULT_PIN_SIZE,renderPopover:f,testId:j,className:y,...b})=>{const p=n.useRef(null),[i,u]=n.useState(null),[d,v]=n.useState(""),h=n.useCallback(e=>{if(!s||!t||!p.current||e.target.closest(".Bear-ImageAnnotation__pin"))return;const l=p.current.getBoundingClientRect(),I=(e.clientX-l.left)/l.width*100,g=(e.clientY-l.top)/l.height*100,m=`ann-${T++}`,B={id:m,x:I,y:g,text:""};t([...r,B]),u(m),v("")},[s,t,r]),N=n.useCallback(()=>{!i||!t||(d.trim()?t(r.map(e=>e.id===i?{...e,text:d}:e)):t(r.filter(e=>e.id!==i)),u(null))},[i,d,t,r]),w=n.useCallback(()=>u(null),[]),E=n.useCallback(e=>{t==null||t(r.filter(l=>l.id!==e)),i===e&&u(null)},[t,r,i]);return c.jsxs("div",{ref:p,className:q.cn("Bear-ImageAnnotation relative inline-block select-none",s&&"cursor-crosshair",y),onClick:h,"data-testid":j,...b,children:[c.jsx("img",{src:o,alt:a,className:"w-full h-auto block rounded-lg",draggable:!1}),r.map(e=>{const l=i===e.id,I=!!e.text,g=f==null?void 0:f(e),m=l?L(d,v,N,w):I?O(e,s,E,g):null;return c.jsx("div",{className:"Bear-ImageAnnotation__pin absolute transform -translate-x-1/2 -translate-y-full z-10",style:{left:`${e.x}%`,top:`${e.y}%`},children:c.jsx(P.Popover,{content:m,trigger:l?"click":"hover",placement:"top",open:l||void 0,arrow:!1,children:c.jsx("div",{className:"Bear-ImageAnnotation__marker flex items-center justify-center rounded-full shadow-lg cursor-pointer transition-transform hover:scale-110",style:{width:x,height:x,backgroundColor:e.color??A},children:c.jsx(k.BearIcons.MapPinIcon,{size:x*_.PIN_ICON_RATIO,className:"text-white"})})})},e.id)})]})};exports.ImageAnnotation=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),i=require("react"),q=require("../../utils/cn.cjs"),k=require("@forgedevstack/bear-icons"),P=require("../Popover/Popover.cjs"),R=require("../Input/Input.cjs"),_=require("./ImageAnnotation.const.cjs");let T=1;function L(o,a,r,t){return c.jsx("div",{className:"Bear-ImageAnnotation__edit min-w-[160px]",children:c.jsx(R.Input,{autoFocus:!0,size:"sm",value:o,onChange:s=>a(s.target.value),onKeyDown:s=>{s.key==="Enter"&&r(),s.key==="Escape"&&t()},placeholder:"Add note..."})})}function O(o,a,r,t){return c.jsxs("div",{className:"Bear-ImageAnnotation__label text-xs text-gray-700 dark:text-gray-200 whitespace-nowrap flex items-center gap-1",children:[t??o.text,a&&c.jsx("button",{type:"button",className:"text-red-400 hover:text-red-600 ml-1",onClick:s=>{s.stopPropagation(),r(o.id)},children:c.jsx(k.BearIcons.XIcon,{size:12})})]})}const D=({src:o,alt:a="",annotations:r,onChange:t,editable:s=!0,pinColor:A=_.DEFAULT_PIN_COLOR,pinSize:x=_.DEFAULT_PIN_SIZE,renderPopover:f,testId:b,className:j,...y})=>{const p=i.useRef(null),[n,u]=i.useState(null),[d,v]=i.useState(""),h=i.useCallback(e=>{if(!s||!t||!p.current||e.target.closest(".Bear-ImageAnnotation__pin"))return;const l=p.current.getBoundingClientRect(),I=(e.clientX-l.left)/l.width*100,g=(e.clientY-l.top)/l.height*100,m=`ann-${T++}`,B={id:m,x:I,y:g,text:""};t([...r,B]),u(m),v("")},[s,t,r]),N=i.useCallback(()=>{!n||!t||(d.trim()?t(r.map(e=>e.id===n?{...e,text:d}:e)):t(r.filter(e=>e.id!==n)),u(null))},[n,d,t,r]),w=i.useCallback(()=>u(null),[]),E=i.useCallback(e=>{t==null||t(r.filter(l=>l.id!==e)),n===e&&u(null)},[t,r,n]);return c.jsxs("div",{ref:p,className:q.cn("Bear-ImageAnnotation relative inline-block select-none",s&&"cursor-crosshair",j),onClick:h,"data-testid":b,...y,children:[c.jsx("img",{src:o,alt:a,className:"w-full h-auto block rounded-lg",draggable:!1}),r.map(e=>{const l=n===e.id,I=!!e.text,g=f==null?void 0:f(e),m=l?L(d,v,N,w):I?O(e,s,E,g):null;return c.jsx("div",{className:"Bear-ImageAnnotation__pin absolute transform -translate-x-1/2 -translate-y-full z-10",style:{left:`${e.x}%`,top:`${e.y}%`},children:c.jsx(P.Popover,{content:m,trigger:l?"click":"hover",placement:"top",open:l||void 0,arrow:!1,children:c.jsx("div",{className:"Bear-ImageAnnotation__marker flex items-center justify-center rounded-full shadow-lg cursor-pointer transition-transform hover:scale-110",style:{width:x,height:x,backgroundColor:e.color??A},children:c.jsx(k.BearIcons.MapPinIcon,{size:x*_.PIN_ICON_RATIO,className:"text-white"})})})},e.id)})]})};exports.ImageAnnotation=D;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as h, jsx as l } from "react/jsx-runtime";
2
2
  import { useRef as R, useState as v, useCallback as u } from "react";
3
3
  import { cn as T } from "../../utils/cn.js";
4
- import { BearIcons as A } from "../Icon/index.js";
4
+ import { BearIcons as A } from "@forgedevstack/bear-icons";
5
5
  import { Popover as O } from "../Popover/Popover.js";
6
6
  import { Input as j } from "../Input/Input.js";
7
7
  import { DEFAULT_PIN_COLOR as D, DEFAULT_PIN_SIZE as F, PIN_ICON_RATIO as $ } from "./ImageAnnotation.const.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),S=require("../../utils/cn.cjs"),v=require("../../context/BearProvider.cjs"),A=require("../Typography/Typography.cjs"),I=require("../Button/Button.cjs"),g=require("../Icon/index.cjs"),u=require("./JsonViewer.const.cjs"),T=({name:r,value:s,path:d,depth:h,defaultExpandDepth:y,showDataTypes:j,showArrayIndices:x,onValueClick:c})=>{const[o,b]=i.useState(h<y),{mode:N}=v.useBear(),n=N==="dark"?u.DARK_THEME:u.DEFAULT_THEME,t=i.useMemo(()=>s===null?"null":Array.isArray(s)?"array":typeof s,[s]),p=t==="object"||t==="array",a=p&&Object.keys(s).length===0,f=i.useCallback(()=>{b(l=>!l)},[]),m=i.useCallback(()=>{c==null||c(d,s)},[d,s,c]),w=()=>{switch(t){case"string":return e.jsxs("span",{style:{color:n.string},className:"cursor-pointer hover:underline",onClick:m,children:['"',s,'"']});case"number":return e.jsx("span",{style:{color:n.number},className:"cursor-pointer hover:underline",onClick:m,children:String(s)});case"boolean":return e.jsx("span",{style:{color:n.boolean},className:"cursor-pointer hover:underline",onClick:m,children:String(s)});case"null":return e.jsx("span",{style:{color:n.null},className:"cursor-pointer hover:underline",onClick:m,children:"null"});default:return null}},k=()=>{if(!j)return null;const l=t==="array"?`Array(${s.length})`:t==="object"?"Object":t;return e.jsx("span",{className:"text-[10px] opacity-50 ml-1",children:l})};if(!p)return e.jsxs("div",{className:"flex items-center gap-1 py-0.5",children:[e.jsx("span",{className:"w-4"})," ",(x||typeof r=="string")&&e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{color:n.key},children:typeof r=="string"?`"${r}"`:r}),e.jsx("span",{style:{color:n.punctuation},children:":"})]}),w(),k()]});const B=Object.entries(s),q=t==="array"?"[":"{",E=t==="array"?"]":"}";return e.jsxs("div",{className:"py-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1 cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 rounded px-1 -mx-1",onClick:f,children:[e.jsx("span",{className:"w-4 flex items-center justify-center text-gray-400",children:a?null:o?e.jsx(g.BearIcons.ChevronDownIcon,{size:12}):e.jsx(g.BearIcons.ChevronRightIcon,{size:12})}),(x||typeof r=="string")&&r!==""&&e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{color:n.key},children:typeof r=="string"?`"${r}"`:r}),e.jsx("span",{style:{color:n.punctuation},children:":"})]}),e.jsx("span",{style:{color:n.bracket},children:q}),!o&&!a&&e.jsx("span",{className:"text-gray-400 text-xs",children:"..."}),(!o||a)&&e.jsx("span",{style:{color:n.bracket},children:E}),k()]}),o&&!a&&e.jsx("div",{className:"ml-4 border-l border-gray-200 dark:border-gray-700 pl-2",children:B.map(([l,C],F)=>e.jsx(T,{name:t==="array"?F:l,value:C,path:[...d,l],depth:h+1,defaultExpandDepth:y,showDataTypes:j,showArrayIndices:x,onValueClick:c},l))}),o&&!a&&e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"w-4"}),e.jsx("span",{style:{color:n.bracket},children:E})]})]})},J=({data:r,defaultExpandDepth:s=u.DEFAULT_EXPAND_DEPTH,showDataTypes:d=!1,showArrayIndices:h=!0,showCopyButton:y=!0,rootName:j="root",onValueClick:x,onCopy:c,className:o,testId:b})=>{const{mode:N}=v.useBear(),n=N==="dark"?u.DARK_THEME:u.DEFAULT_THEME,[t,p]=i.useState(!1),a=i.useCallback(async()=>{try{await navigator.clipboard.writeText(JSON.stringify(r,null,2)),p(!0),c==null||c(r),setTimeout(()=>p(!1),2e3)}catch(f){console.error("Failed to copy:",f)}},[r,c]);return e.jsxs("div",{className:S.cn("Bear-JsonViewer","rounded-lg overflow-hidden font-mono text-sm",o),style:{backgroundColor:n.background},"data-testid":b,children:[y&&e.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-gray-200 dark:border-gray-700",children:[e.jsx(A.Typography,{variant:"caption",className:"opacity-60",children:"JSON"}),e.jsx(I.Button,{variant:"ghost",size:"sm",onClick:a,className:"!py-1 !px-2 !text-xs",children:t?e.jsxs(e.Fragment,{children:[e.jsx(g.BearIcons.CheckIcon,{size:12,className:"mr-1"}),"Copied!"]}):e.jsxs(e.Fragment,{children:[e.jsx(g.BearIcons.CopyIcon,{size:12,className:"mr-1"}),"Copy"]})})]}),e.jsx("div",{className:"p-3 overflow-x-auto",children:e.jsx(T,{name:j||"",value:r,path:[],depth:0,defaultExpandDepth:s,showDataTypes:d,showArrayIndices:h,onValueClick:x})})]})};exports.JsonViewer=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),I=require("../../utils/cn.cjs"),v=require("../../context/BearProvider.cjs"),S=require("../Typography/Typography.cjs"),A=require("../Button/Button.cjs"),g=require("@forgedevstack/bear-icons"),u=require("./JsonViewer.const.cjs"),T=({name:r,value:s,path:d,depth:h,defaultExpandDepth:y,showDataTypes:j,showArrayIndices:x,onValueClick:c})=>{const[o,b]=i.useState(h<y),{mode:N}=v.useBear(),n=N==="dark"?u.DARK_THEME:u.DEFAULT_THEME,t=i.useMemo(()=>s===null?"null":Array.isArray(s)?"array":typeof s,[s]),p=t==="object"||t==="array",a=p&&Object.keys(s).length===0,f=i.useCallback(()=>{b(l=>!l)},[]),m=i.useCallback(()=>{c==null||c(d,s)},[d,s,c]),w=()=>{switch(t){case"string":return e.jsxs("span",{style:{color:n.string},className:"cursor-pointer hover:underline",onClick:m,children:['"',s,'"']});case"number":return e.jsx("span",{style:{color:n.number},className:"cursor-pointer hover:underline",onClick:m,children:String(s)});case"boolean":return e.jsx("span",{style:{color:n.boolean},className:"cursor-pointer hover:underline",onClick:m,children:String(s)});case"null":return e.jsx("span",{style:{color:n.null},className:"cursor-pointer hover:underline",onClick:m,children:"null"});default:return null}},k=()=>{if(!j)return null;const l=t==="array"?`Array(${s.length})`:t==="object"?"Object":t;return e.jsx("span",{className:"text-[10px] opacity-50 ml-1",children:l})};if(!p)return e.jsxs("div",{className:"flex items-center gap-1 py-0.5",children:[e.jsx("span",{className:"w-4"})," ",(x||typeof r=="string")&&e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{color:n.key},children:typeof r=="string"?`"${r}"`:r}),e.jsx("span",{style:{color:n.punctuation},children:":"})]}),w(),k()]});const B=Object.entries(s),q=t==="array"?"[":"{",E=t==="array"?"]":"}";return e.jsxs("div",{className:"py-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1 cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 rounded px-1 -mx-1",onClick:f,children:[e.jsx("span",{className:"w-4 flex items-center justify-center text-gray-400",children:a?null:o?e.jsx(g.BearIcons.ChevronDownIcon,{size:12}):e.jsx(g.BearIcons.ChevronRightIcon,{size:12})}),(x||typeof r=="string")&&r!==""&&e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{color:n.key},children:typeof r=="string"?`"${r}"`:r}),e.jsx("span",{style:{color:n.punctuation},children:":"})]}),e.jsx("span",{style:{color:n.bracket},children:q}),!o&&!a&&e.jsx("span",{className:"text-gray-400 text-xs",children:"..."}),(!o||a)&&e.jsx("span",{style:{color:n.bracket},children:E}),k()]}),o&&!a&&e.jsx("div",{className:"ml-4 border-l border-gray-200 dark:border-gray-700 pl-2",children:B.map(([l,C],F)=>e.jsx(T,{name:t==="array"?F:l,value:C,path:[...d,l],depth:h+1,defaultExpandDepth:y,showDataTypes:j,showArrayIndices:x,onValueClick:c},l))}),o&&!a&&e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"w-4"}),e.jsx("span",{style:{color:n.bracket},children:E})]})]})},J=({data:r,defaultExpandDepth:s=u.DEFAULT_EXPAND_DEPTH,showDataTypes:d=!1,showArrayIndices:h=!0,showCopyButton:y=!0,rootName:j="root",onValueClick:x,onCopy:c,className:o,testId:b})=>{const{mode:N}=v.useBear(),n=N==="dark"?u.DARK_THEME:u.DEFAULT_THEME,[t,p]=i.useState(!1),a=i.useCallback(async()=>{try{await navigator.clipboard.writeText(JSON.stringify(r,null,2)),p(!0),c==null||c(r),setTimeout(()=>p(!1),2e3)}catch(f){console.error("Failed to copy:",f)}},[r,c]);return e.jsxs("div",{className:I.cn("Bear-JsonViewer","rounded-lg overflow-hidden font-mono text-sm",o),style:{backgroundColor:n.background},"data-testid":b,children:[y&&e.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-gray-200 dark:border-gray-700",children:[e.jsx(S.Typography,{variant:"caption",className:"opacity-60",children:"JSON"}),e.jsx(A.Button,{variant:"ghost",size:"sm",onClick:a,className:"!py-1 !px-2 !text-xs",children:t?e.jsxs(e.Fragment,{children:[e.jsx(g.BearIcons.CheckIcon,{size:12,className:"mr-1"}),"Copied!"]}):e.jsxs(e.Fragment,{children:[e.jsx(g.BearIcons.CopyIcon,{size:12,className:"mr-1"}),"Copy"]})})]}),e.jsx("div",{className:"p-3 overflow-x-auto",children:e.jsx(T,{name:j||"",value:r,path:[],depth:0,defaultExpandDepth:s,showDataTypes:d,showArrayIndices:h,onValueClick:x})})]})};exports.JsonViewer=J;
@@ -4,7 +4,7 @@ import { cn as I } from "../../utils/cn.js";
4
4
  import { useBear as T } from "../../context/BearProvider.js";
5
5
  import { Typography as _ } from "../Typography/Typography.js";
6
6
  import { Button as H } from "../Button/Button.js";
7
- import { BearIcons as b } from "../Icon/index.js";
7
+ import { BearIcons as b } from "@forgedevstack/bear-icons";
8
8
  import { DARK_THEME as B, DEFAULT_THEME as C, DEFAULT_EXPAND_DEPTH as L } from "./JsonViewer.const.js";
9
9
  const z = ({
10
10
  name: r,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),m=require("../../utils/cn.cjs"),n=require("../Icon/index.cjs"),j=require("./MediaPlayer.const.cjs"),C=require("./MediaPlayer.utils.cjs"),Te=require("../../hooks/useBearStyles.cjs"),Re=320,le=16,ze=({src:D,type:T="video",poster:R,autoPlay:z=!1,loop:L=!1,muted:G=!1,nativeControls:k=!1,width:A,height:H,size:ce="md",accentColor:u=j.DEFAULT_ACCENT,playIcon:Y,pauseIcon:Z,muteIcon:de,unmuteIcon:ue,fullscreenIcon:xe,centerOverlay:me=!1,sticky:q=!1,stickyPosition:$="right",stickySize:U=Re,airPlay:he=!1,playlist:w,onTrackChange:I,bis:fe,testId:ye,className:ge,style:ve,...pe})=>{const h=s.useRef(null),W=s.useRef(null),K=s.useRef(null),[b,F]=s.useState(z),[N,V]=s.useState(0),[g,X]=s.useState(0),[S,be]=s.useState(G),[f,J]=s.useState(L),[M,je]=s.useState(!1),[Q,ke]=s.useState(0),[Ne,_]=s.useState(!z),[l,we]=s.useState(0),O=Te.useBearStyles(fe,ve),x=s.useMemo(()=>w&&w.length>0?w:[{src:D,poster:R,type:T,title:void 0,artist:void 0}],[w,D,R,T]),o=x[l],Ie=o.src,B=o.poster??R,c=o.type??T,d=x.length>1,i=j.SIZE_MAP[ce];s.useEffect(()=>{J(L)},[L]),s.useEffect(()=>{const t=h.current;if(!t)return;const r=()=>V(t.currentTime),a=()=>X(t.duration),p=()=>{d&&l<x.length-1?v(l+1):f?d&&v(0):(F(!1),_(!0))};return t.addEventListener("timeupdate",r),t.addEventListener("loadedmetadata",a),t.addEventListener("ended",p),()=>{t.removeEventListener("timeupdate",r),t.removeEventListener("loadedmetadata",a),t.removeEventListener("ended",p)}},[f,d,l,x.length]),s.useEffect(()=>{if(!q||c!=="video")return;const t=K.current;if(!t)return;const r=()=>{const p=t.getBoundingClientRect().bottom<0;je(p),p&&ke(le)};return window.addEventListener("scroll",r,{passive:!0}),r(),()=>window.removeEventListener("scroll",r)},[q,c]);const v=s.useCallback(t=>{const r=Math.max(0,Math.min(x.length-1,t));we(r),V(0),X(0),_(!1),I==null||I(r,x[r]),setTimeout(()=>{const a=h.current;a&&(a.load(),a.play().catch(()=>{}),F(!0))},50)},[x,I]),E=s.useCallback(()=>{const t=h.current;t&&(b?(t.pause(),_(!0)):(t.play().catch(()=>{}),_(!1)),F(!b))},[b]),ee=s.useCallback(t=>{const r=h.current;if(!r||!g)return;const a=t.currentTarget.getBoundingClientRect(),p=Math.max(0,Math.min(1,(t.clientX-a.left)/a.width));r.currentTime=p*g},[g]),te=s.useCallback(()=>{const t=h.current;t&&(t.muted=!S,be(!S))},[S]),se=s.useCallback(()=>{const t=!f;J(t);const r=h.current;r&&(r.loop=t)},[f]),Se=s.useCallback(()=>{var r;const t=W.current;t&&(document.fullscreenElement?document.exitFullscreen():(r=t.requestFullscreen)==null||r.call(t))},[]),Me=s.useCallback(()=>{const t=h.current;t!=null&&t.webkitShowPlaybackTargetPicker&&t.webkitShowPlaybackTargetPicker()},[]),re=s.useCallback(()=>{if(N>3){const t=h.current;t&&(t.currentTime=0)}else l>0&&v(l-1)},[N,l,v]),ae=s.useCallback(()=>{l<x.length-1&&v(l+1)},[l,x.length,v]),ne=g?N/g*100:0,y=i.iconSm,P=i.iconMd,ie=b?Z??e.jsx(n.BearIcons.PauseIcon,{size:P}):Y??e.jsx(n.BearIcons.PlayIcon,{size:P}),oe=S?de??e.jsx(n.BearIcons.VolumeOffIcon,{size:y}):ue??e.jsx(n.BearIcons.VolumeUpIcon,{size:y}),_e=xe??e.jsx(n.BearIcons.MaximizeIcon,{size:y}),Be=c==="video"?"video":"audio",Ee=s.useMemo(()=>M&&c==="video"?{...O,position:"fixed",top:Q,[$==="left"?"left":"right"]:le,width:U,zIndex:50,boxShadow:"0 8px 32px rgba(0,0,0,0.45)",borderRadius:12,transition:"top 0.15s ease-out"}:{...O,width:A??"100%",height:H,maxWidth:A?void 0:i.maxWidth},[M,c,O,A,H,i.maxWidth,Q,$,U]),Pe=s.useMemo(()=>{if(!M)return{aspectRatio:i.aspectRatio}},[M,i.aspectRatio]),Ce=`${u}20`;return e.jsxs(e.Fragment,{children:[q&&e.jsx("div",{ref:K,style:{height:1}}),e.jsxs("div",{ref:W,className:m.cn("Bear-MediaPlayer relative rounded-xl overflow-hidden bg-black",ge),style:Ee,"data-testid":ye,...pe,children:[e.jsx(Be,{ref:h,src:Ie,poster:B,autoPlay:z,loop:f&&!d,muted:G,controls:k,playsInline:!0,className:m.cn(c==="video"?"Bear-MediaPlayer__video w-full object-cover":"hidden"),style:c==="video"?Pe:void 0,onClick:c==="video"?E:void 0}),me&&c==="video"&&Ne&&!k&&e.jsx("button",{type:"button",onClick:E,className:"Bear-MediaPlayer__overlay absolute inset-0 flex items-center justify-center bg-black/30 transition-opacity",children:e.jsx("div",{className:"w-16 h-16 rounded-full bg-white/90 flex items-center justify-center shadow-lg",children:b?Z??e.jsx(n.BearIcons.PauseIcon,{size:j.CENTER_ICON_SIZE,className:"text-gray-900"}):Y??e.jsx(n.BearIcons.PlayIcon,{size:j.CENTER_ICON_SIZE,className:"text-gray-900"})})}),!k&&c==="video"&&e.jsxs("div",{className:m.cn("Bear-MediaPlayer__controls absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent pt-8",i.padding),children:[e.jsx("div",{className:"Bear-MediaPlayer__progress w-full cursor-pointer mb-2 group",style:{height:j.PROGRESS_HEIGHT},onClick:ee,children:e.jsx("div",{className:"w-full h-full bg-white/30 rounded-full relative overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${ne}%`,backgroundColor:u}})})}),e.jsxs("div",{className:m.cn("Bear-MediaPlayer__bar flex items-center",i.gap),children:[d&&e.jsx("button",{type:"button",onClick:re,className:"text-white hover:text-primary-400 transition-colors",children:e.jsx(n.BearIcons.SkipBackIcon,{size:y})}),e.jsx("button",{type:"button",onClick:E,className:"text-white hover:text-primary-400 transition-colors",children:ie}),d&&e.jsx("button",{type:"button",onClick:ae,className:"text-white hover:text-primary-400 transition-colors",children:e.jsx(n.BearIcons.SkipForwardIcon,{size:y})}),e.jsx("button",{type:"button",onClick:te,className:"text-white hover:text-primary-400 transition-colors",children:oe}),e.jsxs("span",{className:m.cn("Bear-MediaPlayer__time text-white font-mono",i.text),children:[C.formatTime(N)," / ",C.formatTime(g)]}),e.jsx("div",{className:"flex-1"}),e.jsx("button",{type:"button",onClick:se,className:"transition-colors",style:{color:f?u:void 0},title:"Loop",children:e.jsx(n.BearIcons.RepeatIcon,{size:y,className:f?void 0:"text-white/60 hover:text-white"})}),he&&e.jsx("button",{type:"button",onClick:Me,className:"text-white hover:text-primary-400 transition-colors",title:"AirPlay",children:e.jsx(n.BearIcons.CastIcon,{size:y})}),e.jsx("button",{type:"button",onClick:Se,className:"text-white hover:text-primary-400 transition-colors",children:_e})]}),d&&o.title&&e.jsxs("div",{className:"mt-1 flex items-center gap-2 truncate",children:[e.jsx("span",{className:"text-white text-xs font-medium truncate",children:o.title}),o.artist&&e.jsxs("span",{className:"text-white/50 text-xs truncate",children:["— ",o.artist]})]})]}),c==="audio"&&!k&&e.jsxs("div",{className:m.cn("Bear-MediaPlayer__audio bg-gray-100 dark:bg-zinc-800 rounded-xl",i.padding),children:[d&&(B||o.title)&&e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[B&&e.jsx("img",{src:B,alt:"",className:"w-12 h-12 rounded-lg object-cover shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[o.title&&e.jsx("p",{className:"text-sm font-semibold text-gray-900 dark:text-white truncate",children:o.title}),o.artist&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 truncate",children:o.artist})]})]}),e.jsx("div",{className:"Bear-MediaPlayer__progress w-full cursor-pointer mb-1",style:{height:j.PROGRESS_HEIGHT},onClick:ee,children:e.jsx("div",{className:"w-full h-full bg-gray-300 dark:bg-zinc-600 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full",style:{width:`${ne}%`,backgroundColor:u}})})}),e.jsxs("div",{className:"flex justify-between mb-2",children:[e.jsx("span",{className:m.cn("text-gray-500 font-mono",i.text),children:C.formatTime(N)}),e.jsx("span",{className:m.cn("text-gray-500 font-mono",i.text),children:C.formatTime(g)})]}),e.jsxs("div",{className:m.cn("flex items-center justify-center",i.gap),children:[e.jsx("button",{type:"button",onClick:se,className:"transition-colors",style:{color:f?u:void 0},title:"Loop",children:e.jsx(n.BearIcons.RepeatIcon,{size:y,className:f?void 0:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"})}),d&&e.jsx("button",{type:"button",onClick:re,className:"text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors",children:e.jsx(n.BearIcons.SkipBackIcon,{size:P})}),e.jsx("button",{type:"button",onClick:E,className:"Bear-MediaPlayer__play w-10 h-10 rounded-full flex items-center justify-center text-white transition-colors",style:{backgroundColor:u},children:ie}),d&&e.jsx("button",{type:"button",onClick:ae,className:"text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors",children:e.jsx(n.BearIcons.SkipForwardIcon,{size:P})}),e.jsx("button",{type:"button",onClick:te,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",children:oe})]})]}),d&&!k&&e.jsx("div",{className:"Bear-MediaPlayer__playlist bg-gray-50 dark:bg-zinc-900 border-t border-gray-200 dark:border-zinc-700 max-h-48 overflow-y-auto",children:x.map((t,r)=>{const a=r===l;return e.jsxs("button",{type:"button",onClick:()=>v(r),className:m.cn("w-full flex items-center gap-3 px-3 py-2 text-left transition-colors",!a&&"hover:bg-gray-100 dark:hover:bg-zinc-800"),style:a?{backgroundColor:Ce}:void 0,children:[t.poster&&e.jsx("img",{src:t.poster,alt:"",className:"w-8 h-8 rounded object-cover shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-xs font-medium truncate",style:a?{color:u}:void 0,children:t.title??`Track ${r+1}`}),t.artist&&e.jsx("p",{className:"text-[10px] text-gray-400 truncate",children:t.artist})]}),a&&b&&e.jsxs("div",{className:"flex items-end gap-0.5 h-3",children:[e.jsx("span",{className:"w-0.5 rounded-full animate-pulse",style:{height:"60%",backgroundColor:u}}),e.jsx("span",{className:"w-0.5 rounded-full animate-pulse",style:{height:"100%",backgroundColor:u,animationDelay:"0.2s"}}),e.jsx("span",{className:"w-0.5 rounded-full animate-pulse",style:{height:"40%",backgroundColor:u,animationDelay:"0.4s"}})]}),e.jsx("span",{className:"text-[10px] text-gray-400 tabular-nums shrink-0",children:r+1})]},r)})})]})]})};exports.MediaPlayer=ze;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),m=require("../../utils/cn.cjs"),n=require("@forgedevstack/bear-icons"),j=require("./MediaPlayer.const.cjs"),C=require("./MediaPlayer.utils.cjs"),Te=require("../../hooks/useBearStyles.cjs"),Re=320,le=16,ze=({src:D,type:T="video",poster:R,autoPlay:z=!1,loop:L=!1,muted:G=!1,nativeControls:k=!1,width:A,height:H,size:ce="md",accentColor:u=j.DEFAULT_ACCENT,playIcon:Y,pauseIcon:Z,muteIcon:de,unmuteIcon:ue,fullscreenIcon:xe,centerOverlay:me=!1,sticky:q=!1,stickyPosition:$="right",stickySize:U=Re,airPlay:he=!1,playlist:w,onTrackChange:I,bis:fe,testId:ye,className:ge,style:ve,...be})=>{const h=s.useRef(null),W=s.useRef(null),K=s.useRef(null),[p,F]=s.useState(z),[N,V]=s.useState(0),[g,X]=s.useState(0),[S,pe]=s.useState(G),[f,J]=s.useState(L),[M,je]=s.useState(!1),[Q,ke]=s.useState(0),[Ne,_]=s.useState(!z),[l,we]=s.useState(0),O=Te.useBearStyles(fe,ve),x=s.useMemo(()=>w&&w.length>0?w:[{src:D,poster:R,type:T,title:void 0,artist:void 0}],[w,D,R,T]),o=x[l],Ie=o.src,B=o.poster??R,c=o.type??T,d=x.length>1,i=j.SIZE_MAP[ce];s.useEffect(()=>{J(L)},[L]),s.useEffect(()=>{const t=h.current;if(!t)return;const r=()=>V(t.currentTime),a=()=>X(t.duration),b=()=>{d&&l<x.length-1?v(l+1):f?d&&v(0):(F(!1),_(!0))};return t.addEventListener("timeupdate",r),t.addEventListener("loadedmetadata",a),t.addEventListener("ended",b),()=>{t.removeEventListener("timeupdate",r),t.removeEventListener("loadedmetadata",a),t.removeEventListener("ended",b)}},[f,d,l,x.length]),s.useEffect(()=>{if(!q||c!=="video")return;const t=K.current;if(!t)return;const r=()=>{const b=t.getBoundingClientRect().bottom<0;je(b),b&&ke(le)};return window.addEventListener("scroll",r,{passive:!0}),r(),()=>window.removeEventListener("scroll",r)},[q,c]);const v=s.useCallback(t=>{const r=Math.max(0,Math.min(x.length-1,t));we(r),V(0),X(0),_(!1),I==null||I(r,x[r]),setTimeout(()=>{const a=h.current;a&&(a.load(),a.play().catch(()=>{}),F(!0))},50)},[x,I]),E=s.useCallback(()=>{const t=h.current;t&&(p?(t.pause(),_(!0)):(t.play().catch(()=>{}),_(!1)),F(!p))},[p]),ee=s.useCallback(t=>{const r=h.current;if(!r||!g)return;const a=t.currentTarget.getBoundingClientRect(),b=Math.max(0,Math.min(1,(t.clientX-a.left)/a.width));r.currentTime=b*g},[g]),te=s.useCallback(()=>{const t=h.current;t&&(t.muted=!S,pe(!S))},[S]),se=s.useCallback(()=>{const t=!f;J(t);const r=h.current;r&&(r.loop=t)},[f]),Se=s.useCallback(()=>{var r;const t=W.current;t&&(document.fullscreenElement?document.exitFullscreen():(r=t.requestFullscreen)==null||r.call(t))},[]),Me=s.useCallback(()=>{const t=h.current;t!=null&&t.webkitShowPlaybackTargetPicker&&t.webkitShowPlaybackTargetPicker()},[]),re=s.useCallback(()=>{if(N>3){const t=h.current;t&&(t.currentTime=0)}else l>0&&v(l-1)},[N,l,v]),ae=s.useCallback(()=>{l<x.length-1&&v(l+1)},[l,x.length,v]),ne=g?N/g*100:0,y=i.iconSm,P=i.iconMd,ie=p?Z??e.jsx(n.BearIcons.PauseIcon,{size:P}):Y??e.jsx(n.BearIcons.PlayIcon,{size:P}),oe=S?de??e.jsx(n.BearIcons.VolumeOffIcon,{size:y}):ue??e.jsx(n.BearIcons.VolumeUpIcon,{size:y}),_e=xe??e.jsx(n.BearIcons.MaximizeIcon,{size:y}),Be=c==="video"?"video":"audio",Ee=s.useMemo(()=>M&&c==="video"?{...O,position:"fixed",top:Q,[$==="left"?"left":"right"]:le,width:U,zIndex:50,boxShadow:"0 8px 32px rgba(0,0,0,0.45)",borderRadius:12,transition:"top 0.15s ease-out"}:{...O,width:A??"100%",height:H,maxWidth:A?void 0:i.maxWidth},[M,c,O,A,H,i.maxWidth,Q,$,U]),Pe=s.useMemo(()=>{if(!M)return{aspectRatio:i.aspectRatio}},[M,i.aspectRatio]),Ce=`${u}20`;return e.jsxs(e.Fragment,{children:[q&&e.jsx("div",{ref:K,style:{height:1}}),e.jsxs("div",{ref:W,className:m.cn("Bear-MediaPlayer relative rounded-xl overflow-hidden bg-black",ge),style:Ee,"data-testid":ye,...be,children:[e.jsx(Be,{ref:h,src:Ie,poster:B,autoPlay:z,loop:f&&!d,muted:G,controls:k,playsInline:!0,className:m.cn(c==="video"?"Bear-MediaPlayer__video w-full object-cover":"hidden"),style:c==="video"?Pe:void 0,onClick:c==="video"?E:void 0}),me&&c==="video"&&Ne&&!k&&e.jsx("button",{type:"button",onClick:E,className:"Bear-MediaPlayer__overlay absolute inset-0 flex items-center justify-center bg-black/30 transition-opacity",children:e.jsx("div",{className:"w-16 h-16 rounded-full bg-white/90 flex items-center justify-center shadow-lg",children:p?Z??e.jsx(n.BearIcons.PauseIcon,{size:j.CENTER_ICON_SIZE,className:"text-gray-900"}):Y??e.jsx(n.BearIcons.PlayIcon,{size:j.CENTER_ICON_SIZE,className:"text-gray-900"})})}),!k&&c==="video"&&e.jsxs("div",{className:m.cn("Bear-MediaPlayer__controls absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent pt-8",i.padding),children:[e.jsx("div",{className:"Bear-MediaPlayer__progress w-full cursor-pointer mb-2 group",style:{height:j.PROGRESS_HEIGHT},onClick:ee,children:e.jsx("div",{className:"w-full h-full bg-white/30 rounded-full relative overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${ne}%`,backgroundColor:u}})})}),e.jsxs("div",{className:m.cn("Bear-MediaPlayer__bar flex items-center",i.gap),children:[d&&e.jsx("button",{type:"button",onClick:re,className:"text-white hover:text-primary-400 transition-colors",children:e.jsx(n.BearIcons.SkipBackIcon,{size:y})}),e.jsx("button",{type:"button",onClick:E,className:"text-white hover:text-primary-400 transition-colors",children:ie}),d&&e.jsx("button",{type:"button",onClick:ae,className:"text-white hover:text-primary-400 transition-colors",children:e.jsx(n.BearIcons.SkipForwardIcon,{size:y})}),e.jsx("button",{type:"button",onClick:te,className:"text-white hover:text-primary-400 transition-colors",children:oe}),e.jsxs("span",{className:m.cn("Bear-MediaPlayer__time text-white font-mono",i.text),children:[C.formatTime(N)," / ",C.formatTime(g)]}),e.jsx("div",{className:"flex-1"}),e.jsx("button",{type:"button",onClick:se,className:"transition-colors",style:{color:f?u:void 0},title:"Loop",children:e.jsx(n.BearIcons.RepeatIcon,{size:y,className:f?void 0:"text-white/60 hover:text-white"})}),he&&e.jsx("button",{type:"button",onClick:Me,className:"text-white hover:text-primary-400 transition-colors",title:"AirPlay",children:e.jsx(n.BearIcons.CastIcon,{size:y})}),e.jsx("button",{type:"button",onClick:Se,className:"text-white hover:text-primary-400 transition-colors",children:_e})]}),d&&o.title&&e.jsxs("div",{className:"mt-1 flex items-center gap-2 truncate",children:[e.jsx("span",{className:"text-white text-xs font-medium truncate",children:o.title}),o.artist&&e.jsxs("span",{className:"text-white/50 text-xs truncate",children:["— ",o.artist]})]})]}),c==="audio"&&!k&&e.jsxs("div",{className:m.cn("Bear-MediaPlayer__audio bg-gray-100 dark:bg-zinc-800 rounded-xl",i.padding),children:[d&&(B||o.title)&&e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[B&&e.jsx("img",{src:B,alt:"",className:"w-12 h-12 rounded-lg object-cover shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[o.title&&e.jsx("p",{className:"text-sm font-semibold text-gray-900 dark:text-white truncate",children:o.title}),o.artist&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 truncate",children:o.artist})]})]}),e.jsx("div",{className:"Bear-MediaPlayer__progress w-full cursor-pointer mb-1",style:{height:j.PROGRESS_HEIGHT},onClick:ee,children:e.jsx("div",{className:"w-full h-full bg-gray-300 dark:bg-zinc-600 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full",style:{width:`${ne}%`,backgroundColor:u}})})}),e.jsxs("div",{className:"flex justify-between mb-2",children:[e.jsx("span",{className:m.cn("text-gray-500 font-mono",i.text),children:C.formatTime(N)}),e.jsx("span",{className:m.cn("text-gray-500 font-mono",i.text),children:C.formatTime(g)})]}),e.jsxs("div",{className:m.cn("flex items-center justify-center",i.gap),children:[e.jsx("button",{type:"button",onClick:se,className:"transition-colors",style:{color:f?u:void 0},title:"Loop",children:e.jsx(n.BearIcons.RepeatIcon,{size:y,className:f?void 0:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"})}),d&&e.jsx("button",{type:"button",onClick:re,className:"text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors",children:e.jsx(n.BearIcons.SkipBackIcon,{size:P})}),e.jsx("button",{type:"button",onClick:E,className:"Bear-MediaPlayer__play w-10 h-10 rounded-full flex items-center justify-center text-white transition-colors",style:{backgroundColor:u},children:ie}),d&&e.jsx("button",{type:"button",onClick:ae,className:"text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors",children:e.jsx(n.BearIcons.SkipForwardIcon,{size:P})}),e.jsx("button",{type:"button",onClick:te,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",children:oe})]})]}),d&&!k&&e.jsx("div",{className:"Bear-MediaPlayer__playlist bg-gray-50 dark:bg-zinc-900 border-t border-gray-200 dark:border-zinc-700 max-h-48 overflow-y-auto",children:x.map((t,r)=>{const a=r===l;return e.jsxs("button",{type:"button",onClick:()=>v(r),className:m.cn("w-full flex items-center gap-3 px-3 py-2 text-left transition-colors",!a&&"hover:bg-gray-100 dark:hover:bg-zinc-800"),style:a?{backgroundColor:Ce}:void 0,children:[t.poster&&e.jsx("img",{src:t.poster,alt:"",className:"w-8 h-8 rounded object-cover shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-xs font-medium truncate",style:a?{color:u}:void 0,children:t.title??`Track ${r+1}`}),t.artist&&e.jsx("p",{className:"text-[10px] text-gray-400 truncate",children:t.artist})]}),a&&p&&e.jsxs("div",{className:"flex items-end gap-0.5 h-3",children:[e.jsx("span",{className:"w-0.5 rounded-full animate-pulse",style:{height:"60%",backgroundColor:u}}),e.jsx("span",{className:"w-0.5 rounded-full animate-pulse",style:{height:"100%",backgroundColor:u,animationDelay:"0.2s"}}),e.jsx("span",{className:"w-0.5 rounded-full animate-pulse",style:{height:"40%",backgroundColor:u,animationDelay:"0.4s"}})]}),e.jsx("span",{className:"text-[10px] text-gray-400 tabular-nums shrink-0",children:r+1})]},r)})})]})]})};exports.MediaPlayer=ze;
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as s, Fragment as De } from "react/jsx-runtime";
2
2
  import { useRef as $, useState as g, useMemo as G, useEffect as U, useCallback as p } from "react";
3
3
  import { cn as h } from "../../utils/cn.js";
4
- import { BearIcons as i } from "../Icon/index.js";
4
+ import { BearIcons as i } from "@forgedevstack/bear-icons";
5
5
  import { SIZE_MAP as Oe, CENTER_ICON_SIZE as me, PROGRESS_HEIGHT as he, DEFAULT_ACCENT as Ye } from "./MediaPlayer.const.js";
6
6
  import { formatTime as C } from "./MediaPlayer.utils.js";
7
7
  import { useBearStyles as $e } from "../../hooks/useBearStyles.js";
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- import { BisProp } from '../../types/bis.types';
2
+ import { BisProp } from '../../types';
3
3
  export type MediaType = 'video' | 'audio';
4
4
  export type MediaPlayerSize = 'sm' | 'md' | 'lg';
5
5
  export type StickyPosition = 'left' | 'right';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),_=require("react"),eS=require("../Avatar/Avatar.cjs"),a=require("../Typography/Typography.cjs"),e=require("./MessageList.const.cjs"),A=require("./MessageList.utils.cjs"),n=require("../../utils/cn.cjs"),tS=require("../../utils/generateBearId.utils.cjs"),sS=require("../../utils/useBearId.cjs"),nS=({id:H,testId:B,messages:c,currentUserId:b,groupWindowMs:$=e.MESSAGE_LIST_GROUP_WINDOW_MS,showDaySeparators:g=!0,showAvatars:w=!0,showTimestamps:h=!0,autoScroll:p=!0,virtualized:P,overscan:U=e.MESSAGE_LIST_OVERSCAN,height:E=e.MESSAGE_LIST_DEFAULT_HEIGHT,renderMessage:L,emptyState:D,formatDayLabel:T,formatTimestamp:u,translations:q,onNewMessagesClick:d,className:Y})=>{const W=sS.useBearId("MessageList"),F=tS.resolveBearId(H,W),l=_.useRef(null),C=_.useRef(!0),I=_.useRef(null),O=_.useRef(null),M=_.useRef(null),[V,G]=_.useState(!1),[k,m]=_.useState(0),[z,f]=_.useState(typeof E=="number"?E:e.MESSAGE_LIST_DEFAULT_HEIGHT),R={...e.MESSAGE_LIST_DEFAULT_TRANSLATIONS,...q},o=A.buildMessageListItems(c,b,$,g),X=S=>(T==null?void 0:T(S))??A.getDefaultDayLabel(S,R),y=S=>(u==null?void 0:u(S))??A.getDefaultTimestamp(S),v=P??c.length>=e.MESSAGE_LIST_VIRTUALIZE_THRESHOLD,N=S=>{const s=l.current;s&&s.scrollTo({top:s.scrollHeight,behavior:S?"smooth":"auto"})},Z=()=>{const S=l.current;if(!S)return;m(S.scrollTop),f(S.clientHeight);const r=S.scrollHeight-S.scrollTop-S.clientHeight<=e.MESSAGE_LIST_BOTTOM_THRESHOLD_PX;C.current=r,r&&G(!1)};_.useEffect(()=>{const S=l.current;S&&f(S.clientHeight)},[E]),_.useEffect(()=>{const S=c.length>0?c[0].id:null,s=c.length>0?c[c.length-1].id:null,r=I.current===null,Q=S!==null&&O.current!==null&&S!==O.current,SS=s!==null&&s!==I.current;if(Q&&l.current&&(M.current=l.current.scrollHeight),O.current=S,I.current=s,!!SS){if(r||p&&C.current){N(!r);return}G(!0)}},[c,p]),_.useLayoutEffect(()=>{const S=l.current,s=M.current;if(!S||s===null)return;const r=S.scrollHeight-s;r>0&&(S.scrollTop+=r,m(S.scrollTop)),M.current=null},[c]);const J=()=>{N(!0),G(!1),d==null||d()},K=S=>t.jsxs("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__group`,e.MESSAGE_LIST_GROUP_CLASSES,S.isOwn&&e.MESSAGE_LIST_GROUP_OWN_CLASSES),children:[w&&!S.isOwn&&t.jsx(eS.Avatar,{src:S.author.avatar,initials:S.author.name[0],size:"sm",className:"bear-flex-shrink-0"}),t.jsxs("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__group-body`,e.MESSAGE_LIST_GROUP_BODY_CLASSES,S.isOwn&&e.MESSAGE_LIST_GROUP_BODY_OWN_CLASSES),children:[!S.isOwn&&t.jsxs("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__meta`,e.MESSAGE_LIST_META_CLASSES),children:[t.jsx(a.Typography,{variant:"caption",component:"span",className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__author`,e.MESSAGE_LIST_AUTHOR_CLASSES),children:S.author.name}),h&&t.jsx(a.Typography,{variant:"caption",component:"span",className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__timestamp`,e.MESSAGE_LIST_TIMESTAMP_CLASSES),children:y(S.messages[0].timestamp)})]}),S.messages.map(s=>t.jsx("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__bubble`,e.MESSAGE_LIST_BUBBLE_CLASSES,S.isOwn&&`${e.MESSAGE_LIST_ROOT_CLASS}__bubble--own`,S.isOwn&&e.MESSAGE_LIST_BUBBLE_OWN_CLASSES),children:(L==null?void 0:L(s))??s.content},s.id)),S.isOwn&&h&&t.jsx(a.Typography,{variant:"caption",component:"span",className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__timestamp`,e.MESSAGE_LIST_TIMESTAMP_CLASSES),children:y(S.messages[S.messages.length-1].timestamp)})]})]},S.key),x=S=>S.kind==="day"?t.jsxs("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__day-separator`,e.MESSAGE_LIST_DAY_SEPARATOR_CLASSES),children:[t.jsx("span",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__day-line`,e.MESSAGE_LIST_DAY_LINE_CLASSES)}),t.jsx("span",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__day-label`,e.MESSAGE_LIST_DAY_LABEL_CLASSES),children:X(S.date)}),t.jsx("span",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__day-line`,e.MESSAGE_LIST_DAY_LINE_CLASSES)})]},S.key):K(S),i=v?A.getMessageListWindow(o,k,z,U):null,j=i===null?o:o.slice(i.startIndex,i.endIndex+1);return t.jsxs("div",{id:F,"data-testid":B,className:n.cn(e.MESSAGE_LIST_ROOT_CLASS,e.MESSAGE_LIST_BASE_CLASSES,Y),style:{height:typeof E=="number"?`${E}px`:E},children:[t.jsxs("div",{ref:l,onScroll:Z,className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__scroller`,e.MESSAGE_LIST_SCROLLER_CLASSES),role:"log","aria-live":"polite",children:[o.length===0&&t.jsx("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__empty`,e.MESSAGE_LIST_EMPTY_CLASSES),children:D??t.jsx(a.Typography,{variant:"body2",component:"span",children:R.emptyLabel})}),v&&i?t.jsx("div",{className:`${e.MESSAGE_LIST_ROOT_CLASS}__virtual`,style:{height:i.totalHeight,position:"relative"},children:t.jsx("div",{style:{transform:`translateY(${i.offsetTop}px)`},children:j.map(S=>x(S))})}):j.map(S=>x(S))]}),V&&t.jsx("button",{type:"button",onClick:J,className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__new-messages`,e.MESSAGE_LIST_NEW_MESSAGES_CLASSES),children:R.newMessages})]})};exports.MessageList=nS;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),_=require("react"),eS=require("../Avatar/Avatar.cjs"),n=require("../../utils/cn.cjs"),tS=require("../../utils/generateBearId.utils.cjs"),sS=require("../../utils/useBearId.cjs");require("../Box/Box.cjs");const a=require("../Typography/Typography.cjs"),e=require("./MessageList.const.cjs"),A=require("./MessageList.utils.cjs"),nS=({id:H,testId:B,messages:c,currentUserId:b,groupWindowMs:$=e.MESSAGE_LIST_GROUP_WINDOW_MS,showDaySeparators:g=!0,showAvatars:w=!0,showTimestamps:h=!0,autoScroll:p=!0,virtualized:P,overscan:U=e.MESSAGE_LIST_OVERSCAN,height:E=e.MESSAGE_LIST_DEFAULT_HEIGHT,renderMessage:L,emptyState:D,formatDayLabel:T,formatTimestamp:u,translations:q,onNewMessagesClick:d,className:Y})=>{const W=sS.useBearId("MessageList"),F=tS.resolveBearId(H,W),l=_.useRef(null),C=_.useRef(!0),I=_.useRef(null),O=_.useRef(null),M=_.useRef(null),[V,G]=_.useState(!1),[k,m]=_.useState(0),[z,f]=_.useState(typeof E=="number"?E:e.MESSAGE_LIST_DEFAULT_HEIGHT),R={...e.MESSAGE_LIST_DEFAULT_TRANSLATIONS,...q},o=A.buildMessageListItems(c,b,$,g),X=S=>(T==null?void 0:T(S))??A.getDefaultDayLabel(S,R),y=S=>(u==null?void 0:u(S))??A.getDefaultTimestamp(S),v=P??c.length>=e.MESSAGE_LIST_VIRTUALIZE_THRESHOLD,N=S=>{const s=l.current;s&&s.scrollTo({top:s.scrollHeight,behavior:S?"smooth":"auto"})},Z=()=>{const S=l.current;if(!S)return;m(S.scrollTop),f(S.clientHeight);const r=S.scrollHeight-S.scrollTop-S.clientHeight<=e.MESSAGE_LIST_BOTTOM_THRESHOLD_PX;C.current=r,r&&G(!1)};_.useEffect(()=>{const S=l.current;S&&f(S.clientHeight)},[E]),_.useEffect(()=>{const S=c.length>0?c[0].id:null,s=c.length>0?c[c.length-1].id:null,r=I.current===null,Q=S!==null&&O.current!==null&&S!==O.current,SS=s!==null&&s!==I.current;if(Q&&l.current&&(M.current=l.current.scrollHeight),O.current=S,I.current=s,!!SS){if(r||p&&C.current){N(!r);return}G(!0)}},[c,p]),_.useLayoutEffect(()=>{const S=l.current,s=M.current;if(!S||s===null)return;const r=S.scrollHeight-s;r>0&&(S.scrollTop+=r,m(S.scrollTop)),M.current=null},[c]);const J=()=>{N(!0),G(!1),d==null||d()},K=S=>t.jsxs("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__group`,e.MESSAGE_LIST_GROUP_CLASSES,S.isOwn&&e.MESSAGE_LIST_GROUP_OWN_CLASSES),children:[w&&!S.isOwn&&t.jsx(eS.Avatar,{src:S.author.avatar,initials:S.author.name[0],size:"sm",className:"bear-flex-shrink-0"}),t.jsxs("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__group-body`,e.MESSAGE_LIST_GROUP_BODY_CLASSES,S.isOwn&&e.MESSAGE_LIST_GROUP_BODY_OWN_CLASSES),children:[!S.isOwn&&t.jsxs("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__meta`,e.MESSAGE_LIST_META_CLASSES),children:[t.jsx(a.Typography,{variant:"caption",component:"span",className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__author`,e.MESSAGE_LIST_AUTHOR_CLASSES),children:S.author.name}),h&&t.jsx(a.Typography,{variant:"caption",component:"span",className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__timestamp`,e.MESSAGE_LIST_TIMESTAMP_CLASSES),children:y(S.messages[0].timestamp)})]}),S.messages.map(s=>t.jsx("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__bubble`,e.MESSAGE_LIST_BUBBLE_CLASSES,S.isOwn&&`${e.MESSAGE_LIST_ROOT_CLASS}__bubble--own`,S.isOwn&&e.MESSAGE_LIST_BUBBLE_OWN_CLASSES),children:(L==null?void 0:L(s))??s.content},s.id)),S.isOwn&&h&&t.jsx(a.Typography,{variant:"caption",component:"span",className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__timestamp`,e.MESSAGE_LIST_TIMESTAMP_CLASSES),children:y(S.messages[S.messages.length-1].timestamp)})]})]},S.key),x=S=>S.kind==="day"?t.jsxs("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__day-separator`,e.MESSAGE_LIST_DAY_SEPARATOR_CLASSES),children:[t.jsx("span",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__day-line`,e.MESSAGE_LIST_DAY_LINE_CLASSES)}),t.jsx("span",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__day-label`,e.MESSAGE_LIST_DAY_LABEL_CLASSES),children:X(S.date)}),t.jsx("span",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__day-line`,e.MESSAGE_LIST_DAY_LINE_CLASSES)})]},S.key):K(S),i=v?A.getMessageListWindow(o,k,z,U):null,j=i===null?o:o.slice(i.startIndex,i.endIndex+1);return t.jsxs("div",{id:F,"data-testid":B,className:n.cn(e.MESSAGE_LIST_ROOT_CLASS,e.MESSAGE_LIST_BASE_CLASSES,Y),style:{height:typeof E=="number"?`${E}px`:E},children:[t.jsxs("div",{ref:l,onScroll:Z,className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__scroller`,e.MESSAGE_LIST_SCROLLER_CLASSES),role:"log","aria-live":"polite",children:[o.length===0&&t.jsx("div",{className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__empty`,e.MESSAGE_LIST_EMPTY_CLASSES),children:D??t.jsx(a.Typography,{variant:"body2",component:"span",children:R.emptyLabel})}),v&&i?t.jsx("div",{className:`${e.MESSAGE_LIST_ROOT_CLASS}__virtual`,style:{height:i.totalHeight,position:"relative"},children:t.jsx("div",{style:{transform:`translateY(${i.offsetTop}px)`},children:j.map(S=>x(S))})}):j.map(S=>x(S))]}),V&&t.jsx("button",{type:"button",onClick:J,className:n.cn(`${e.MESSAGE_LIST_ROOT_CLASS}__new-messages`,e.MESSAGE_LIST_NEW_MESSAGES_CLASSES),children:R.newMessages})]})};exports.MessageList=nS;
@@ -1,24 +1,25 @@
1
- import { jsxs as i, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as _, jsx as l } from "react/jsx-runtime";
2
2
  import { useRef as a, useState as M, useEffect as C, useLayoutEffect as St } from "react";
3
3
  import { Avatar as ct } from "../Avatar/Avatar.js";
4
- import { Typography as d } from "../Typography/Typography.js";
5
- import { MESSAGE_LIST_DEFAULT_HEIGHT as w, MESSAGE_LIST_VIRTUALIZE_THRESHOLD as ot, MESSAGE_LIST_DEFAULT_TRANSLATIONS as _t, MESSAGE_LIST_EMPTY_CLASSES as it, MESSAGE_LIST_ROOT_CLASS as e, MESSAGE_LIST_SCROLLER_CLASSES as at, MESSAGE_LIST_NEW_MESSAGES_CLASSES as Et, MESSAGE_LIST_BASE_CLASSES as dt, MESSAGE_LIST_GROUP_WINDOW_MS as At, MESSAGE_LIST_OVERSCAN as ut, MESSAGE_LIST_DAY_LINE_CLASSES as P, MESSAGE_LIST_DAY_LABEL_CLASSES as Lt, MESSAGE_LIST_DAY_SEPARATOR_CLASSES as mt, MESSAGE_LIST_BOTTOM_THRESHOLD_PX as Tt, MESSAGE_LIST_AUTHOR_CLASSES as pt, MESSAGE_LIST_TIMESTAMP_CLASSES as U, MESSAGE_LIST_META_CLASSES as It, MESSAGE_LIST_BUBBLE_OWN_CLASSES as ht, MESSAGE_LIST_BUBBLE_CLASSES as ft, MESSAGE_LIST_GROUP_BODY_OWN_CLASSES as Mt, MESSAGE_LIST_GROUP_BODY_CLASSES as Gt, MESSAGE_LIST_GROUP_OWN_CLASSES as Ot, MESSAGE_LIST_GROUP_CLASSES as Nt } from "./MessageList.const.js";
6
- import { buildMessageListItems as vt, getMessageListWindow as Rt, getDefaultDayLabel as Ht, getDefaultTimestamp as yt } from "./MessageList.utils.js";
7
4
  import { cn as s } from "../../utils/cn.js";
8
- import { resolveBearId as Bt } from "../../utils/generateBearId.utils.js";
9
- import { useBearId as $t } from "../../utils/useBearId.js";
10
- const Yt = ({
5
+ import { resolveBearId as ot } from "../../utils/generateBearId.utils.js";
6
+ import { useBearId as it } from "../../utils/useBearId.js";
7
+ import "../Box/Box.js";
8
+ import { Typography as d } from "../Typography/Typography.js";
9
+ import { MESSAGE_LIST_DEFAULT_HEIGHT as w, MESSAGE_LIST_VIRTUALIZE_THRESHOLD as _t, MESSAGE_LIST_DEFAULT_TRANSLATIONS as at, MESSAGE_LIST_EMPTY_CLASSES as Et, MESSAGE_LIST_ROOT_CLASS as e, MESSAGE_LIST_SCROLLER_CLASSES as dt, MESSAGE_LIST_NEW_MESSAGES_CLASSES as At, MESSAGE_LIST_BASE_CLASSES as ut, MESSAGE_LIST_GROUP_WINDOW_MS as Lt, MESSAGE_LIST_OVERSCAN as mt, MESSAGE_LIST_DAY_LINE_CLASSES as P, MESSAGE_LIST_DAY_LABEL_CLASSES as Tt, MESSAGE_LIST_DAY_SEPARATOR_CLASSES as pt, MESSAGE_LIST_BOTTOM_THRESHOLD_PX as It, MESSAGE_LIST_AUTHOR_CLASSES as ht, MESSAGE_LIST_TIMESTAMP_CLASSES as U, MESSAGE_LIST_META_CLASSES as ft, MESSAGE_LIST_BUBBLE_OWN_CLASSES as Mt, MESSAGE_LIST_BUBBLE_CLASSES as Gt, MESSAGE_LIST_GROUP_BODY_OWN_CLASSES as Ot, MESSAGE_LIST_GROUP_BODY_CLASSES as Nt, MESSAGE_LIST_GROUP_OWN_CLASSES as vt, MESSAGE_LIST_GROUP_CLASSES as Rt } from "./MessageList.const.js";
10
+ import { buildMessageListItems as Ht, getMessageListWindow as yt, getDefaultDayLabel as Bt, getDefaultTimestamp as $t } from "./MessageList.utils.js";
11
+ const Ft = ({
11
12
  id: D,
12
13
  testId: x,
13
14
  messages: r,
14
15
  currentUserId: g,
15
- groupWindowMs: W = At,
16
+ groupWindowMs: W = Lt,
16
17
  showDaySeparators: Y = !0,
17
18
  showAvatars: F = !0,
18
19
  showTimestamps: G = !0,
19
20
  autoScroll: O = !0,
20
21
  virtualized: V,
21
- overscan: j = ut,
22
+ overscan: j = mt,
22
23
  height: o = w,
23
24
  renderMessage: A,
24
25
  emptyState: k,
@@ -28,16 +29,16 @@ const Yt = ({
28
29
  onNewMessagesClick: m,
29
30
  className: X
30
31
  }) => {
31
- const Z = $t("MessageList"), q = Bt(D, Z), c = a(null), N = a(!0), T = a(null), p = a(null), I = a(null), [J, h] = M(!1), [K, v] = M(0), [Q, R] = M(
32
+ const Z = it("MessageList"), q = ot(D, Z), c = a(null), N = a(!0), T = a(null), p = a(null), I = a(null), [J, h] = M(!1), [K, v] = M(0), [Q, R] = M(
32
33
  typeof o == "number" ? o : w
33
- ), f = { ..._t, ...z }, E = vt(r, g, W, Y), tt = (t) => (u == null ? void 0 : u(t)) ?? Ht(t, f), H = (t) => (L == null ? void 0 : L(t)) ?? yt(t), y = V ?? r.length >= ot, B = (t) => {
34
+ ), f = { ...at, ...z }, E = Ht(r, g, W, Y), tt = (t) => (u == null ? void 0 : u(t)) ?? Bt(t, f), H = (t) => (L == null ? void 0 : L(t)) ?? $t(t), y = V ?? r.length >= _t, B = (t) => {
34
35
  const n = c.current;
35
36
  n && n.scrollTo({ top: n.scrollHeight, behavior: t ? "smooth" : "auto" });
36
37
  }, et = () => {
37
38
  const t = c.current;
38
39
  if (!t) return;
39
40
  v(t.scrollTop), R(t.clientHeight);
40
- const S = t.scrollHeight - t.scrollTop - t.clientHeight <= Tt;
41
+ const S = t.scrollHeight - t.scrollTop - t.clientHeight <= It;
41
42
  N.current = S, S && h(!1);
42
43
  };
43
44
  C(() => {
@@ -60,13 +61,13 @@ const Yt = ({
60
61
  }, [r]);
61
62
  const nt = () => {
62
63
  B(!0), h(!1), m == null || m();
63
- }, st = (t) => /* @__PURE__ */ i(
64
+ }, st = (t) => /* @__PURE__ */ _(
64
65
  "div",
65
66
  {
66
67
  className: s(
67
68
  `${e}__group`,
68
- Nt,
69
- t.isOwn && Ot
69
+ Rt,
70
+ t.isOwn && vt
70
71
  ),
71
72
  children: [
72
73
  F && !t.isOwn && /* @__PURE__ */ l(
@@ -78,22 +79,22 @@ const Yt = ({
78
79
  className: "bear-flex-shrink-0"
79
80
  }
80
81
  ),
81
- /* @__PURE__ */ i(
82
+ /* @__PURE__ */ _(
82
83
  "div",
83
84
  {
84
85
  className: s(
85
86
  `${e}__group-body`,
86
- Gt,
87
- t.isOwn && Mt
87
+ Nt,
88
+ t.isOwn && Ot
88
89
  ),
89
90
  children: [
90
- !t.isOwn && /* @__PURE__ */ i("div", { className: s(`${e}__meta`, It), children: [
91
+ !t.isOwn && /* @__PURE__ */ _("div", { className: s(`${e}__meta`, ft), children: [
91
92
  /* @__PURE__ */ l(
92
93
  d,
93
94
  {
94
95
  variant: "caption",
95
96
  component: "span",
96
- className: s(`${e}__author`, pt),
97
+ className: s(`${e}__author`, ht),
97
98
  children: t.author.name
98
99
  }
99
100
  ),
@@ -112,9 +113,9 @@ const Yt = ({
112
113
  {
113
114
  className: s(
114
115
  `${e}__bubble`,
115
- ft,
116
+ Gt,
116
117
  t.isOwn && `${e}__bubble--own`,
117
- t.isOwn && ht
118
+ t.isOwn && Mt
118
119
  ),
119
120
  children: (A == null ? void 0 : A(n)) ?? n.content
120
121
  },
@@ -135,45 +136,45 @@ const Yt = ({
135
136
  ]
136
137
  },
137
138
  t.key
138
- ), $ = (t) => t.kind === "day" ? /* @__PURE__ */ i(
139
+ ), $ = (t) => t.kind === "day" ? /* @__PURE__ */ _(
139
140
  "div",
140
141
  {
141
142
  className: s(
142
143
  `${e}__day-separator`,
143
- mt
144
+ pt
144
145
  ),
145
146
  children: [
146
147
  /* @__PURE__ */ l("span", { className: s(`${e}__day-line`, P) }),
147
- /* @__PURE__ */ l("span", { className: s(`${e}__day-label`, Lt), children: tt(t.date) }),
148
+ /* @__PURE__ */ l("span", { className: s(`${e}__day-label`, Tt), children: tt(t.date) }),
148
149
  /* @__PURE__ */ l("span", { className: s(`${e}__day-line`, P) })
149
150
  ]
150
151
  },
151
152
  t.key
152
- ) : st(t), _ = y ? Rt(E, K, Q, j) : null, b = _ === null ? E : E.slice(_.startIndex, _.endIndex + 1);
153
- return /* @__PURE__ */ i(
153
+ ) : st(t), i = y ? yt(E, K, Q, j) : null, b = i === null ? E : E.slice(i.startIndex, i.endIndex + 1);
154
+ return /* @__PURE__ */ _(
154
155
  "div",
155
156
  {
156
157
  id: q,
157
158
  "data-testid": x,
158
- className: s(e, dt, X),
159
+ className: s(e, ut, X),
159
160
  style: { height: typeof o == "number" ? `${o}px` : o },
160
161
  children: [
161
- /* @__PURE__ */ i(
162
+ /* @__PURE__ */ _(
162
163
  "div",
163
164
  {
164
165
  ref: c,
165
166
  onScroll: et,
166
- className: s(`${e}__scroller`, at),
167
+ className: s(`${e}__scroller`, dt),
167
168
  role: "log",
168
169
  "aria-live": "polite",
169
170
  children: [
170
- E.length === 0 && /* @__PURE__ */ l("div", { className: s(`${e}__empty`, it), children: k ?? /* @__PURE__ */ l(d, { variant: "body2", component: "span", children: f.emptyLabel }) }),
171
- y && _ ? /* @__PURE__ */ l(
171
+ E.length === 0 && /* @__PURE__ */ l("div", { className: s(`${e}__empty`, Et), children: k ?? /* @__PURE__ */ l(d, { variant: "body2", component: "span", children: f.emptyLabel }) }),
172
+ y && i ? /* @__PURE__ */ l(
172
173
  "div",
173
174
  {
174
175
  className: `${e}__virtual`,
175
- style: { height: _.totalHeight, position: "relative" },
176
- children: /* @__PURE__ */ l("div", { style: { transform: `translateY(${_.offsetTop}px)` }, children: b.map((t) => $(t)) })
176
+ style: { height: i.totalHeight, position: "relative" },
177
+ children: /* @__PURE__ */ l("div", { style: { transform: `translateY(${i.offsetTop}px)` }, children: b.map((t) => $(t)) })
177
178
  }
178
179
  ) : b.map((t) => $(t))
179
180
  ]
@@ -186,7 +187,7 @@ const Yt = ({
186
187
  onClick: nt,
187
188
  className: s(
188
189
  `${e}__new-messages`,
189
- Et
190
+ At
190
191
  ),
191
192
  children: f.newMessages
192
193
  }
@@ -196,5 +197,5 @@ const Yt = ({
196
197
  );
197
198
  };
198
199
  export {
199
- Yt as MessageList
200
+ Ft as MessageList
200
201
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),E=require("react"),x=require("react-dom"),a=require("../../utils/cn.cjs"),j=require("../../utils/generateBearId.utils.cjs"),q=require("../../utils/useBearId.cjs"),g=require("../Icon/icons/navigation.cjs"),w=require("../Backdrop/Backdrop.cjs"),e=require("./Modal.const.cjs"),R=m=>{const{isOpen:s,onClose:l,title:r,children:L,size:M="md",showCloseButton:d=!0,closeOnEscape:A=!0,disableEscapeKeyDown:B=!1,lockBodyScroll:C=!0,cancelPreventScroll:O=!1,closeOnBackdrop:k=!0,hideBackdrop:b=!1,keepMounted:n=!1,isCancelBackgroundClick:i,zIndex:v=e.MODAL_Z_INDEX,className:y,footer:u,testId:D,id:f}=m,h=q.useBearId("Modal"),c=j.resolveBearId(f,h),_=C&&!O,p=i!==void 0?i:k,S=A&&!B,t=E.useCallback(N=>{S&&N.key==="Escape"&&l()},[S,l]);if(E.useEffect(()=>{if(s)return document.addEventListener("keydown",t),_&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",t),document.body.style.overflow=""}},[s,t,_]),!s&&!n)return null;const I=o.jsxs("div",{className:e.MODAL_ROOT_CLASSES,"data-testid":D,id:c,style:{zIndex:v},children:[!b&&o.jsx(w.Backdrop,{open:s,keepMounted:n,blur:!0,nested:!0,className:"Bear-Modal__backdrop",onClick:p?()=>l():void 0}),o.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":r?`${c}-title`:void 0,className:a.cn("Bear-Modal__container",e.MODAL_CONTAINER_CLASSES,e.MODAL_SIZE_CLASSES[M],y),style:{zIndex:e.MODAL_PANEL_Z_INDEX},children:[(r||d)&&o.jsxs("div",{className:a.cn("Bear-Modal__header",e.MODAL_HEADER_CLASSES),children:[r&&o.jsx("h2",{id:`${c}-title`,className:a.cn("Bear-Modal__title",e.MODAL_TITLE_CLASSES),children:r}),d&&o.jsx("button",{onClick:l,className:a.cn("Bear-Modal__close",e.MODAL_CLOSE_CLASSES),"aria-label":"Close modal",children:o.jsx(g.CloseIcon,{className:"bear-w-5 bear-h-5"})})]}),o.jsx("div",{className:a.cn("Bear-Modal__body",e.MODAL_BODY_CLASSES),children:L}),u&&o.jsx("div",{className:a.cn("Bear-Modal__footer",e.MODAL_FOOTER_CLASSES),children:u})]})]});return x.createPortal(I,document.body)};exports.Modal=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),E=require("react"),x=require("react-dom"),a=require("../../utils/cn.cjs"),j=require("../../utils/generateBearId.utils.cjs"),q=require("../../utils/useBearId.cjs"),g=require("../../node_modules/@forgedevstack/bear-icons/dist/navigation.cjs"),w=require("../Backdrop/Backdrop.cjs"),e=require("./Modal.const.cjs"),R=m=>{const{isOpen:s,onClose:l,title:r,children:L,size:M="md",showCloseButton:d=!0,closeOnEscape:A=!0,disableEscapeKeyDown:B=!1,lockBodyScroll:C=!0,cancelPreventScroll:O=!1,closeOnBackdrop:k=!0,hideBackdrop:b=!1,keepMounted:n=!1,isCancelBackgroundClick:i,zIndex:v=e.MODAL_Z_INDEX,className:y,footer:u,testId:D,id:f}=m,h=q.useBearId("Modal"),c=j.resolveBearId(f,h),_=C&&!O,p=i!==void 0?i:k,S=A&&!B,t=E.useCallback(N=>{S&&N.key==="Escape"&&l()},[S,l]);if(E.useEffect(()=>{if(s)return document.addEventListener("keydown",t),_&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",t),document.body.style.overflow=""}},[s,t,_]),!s&&!n)return null;const I=o.jsxs("div",{className:e.MODAL_ROOT_CLASSES,"data-testid":D,id:c,style:{zIndex:v},children:[!b&&o.jsx(w.Backdrop,{open:s,keepMounted:n,blur:!0,nested:!0,className:"Bear-Modal__backdrop",onClick:p?()=>l():void 0}),o.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":r?`${c}-title`:void 0,className:a.cn("Bear-Modal__container",e.MODAL_CONTAINER_CLASSES,e.MODAL_SIZE_CLASSES[M],y),style:{zIndex:e.MODAL_PANEL_Z_INDEX},children:[(r||d)&&o.jsxs("div",{className:a.cn("Bear-Modal__header",e.MODAL_HEADER_CLASSES),children:[r&&o.jsx("h2",{id:`${c}-title`,className:a.cn("Bear-Modal__title",e.MODAL_TITLE_CLASSES),children:r}),d&&o.jsx("button",{onClick:l,className:a.cn("Bear-Modal__close",e.MODAL_CLOSE_CLASSES),"aria-label":"Close modal",children:o.jsx(g.CloseIcon,{className:"bear-w-5 bear-h-5"})})]}),o.jsx("div",{className:a.cn("Bear-Modal__body",e.MODAL_BODY_CLASSES),children:L}),u&&o.jsx("div",{className:a.cn("Bear-Modal__footer",e.MODAL_FOOTER_CLASSES),children:u})]})]});return x.createPortal(I,document.body)};exports.Modal=R;
@@ -4,7 +4,7 @@ import { createPortal as x } from "react-dom";
4
4
  import { cn as o } from "../../utils/cn.js";
5
5
  import { resolveBearId as T } from "../../utils/generateBearId.utils.js";
6
6
  import { useBearId as R } from "../../utils/useBearId.js";
7
- import { CloseIcon as g } from "../Icon/icons/navigation.js";
7
+ import { CloseIcon as g } from "../../node_modules/@forgedevstack/bear-icons/dist/navigation.js";
8
8
  import { Backdrop as z } from "../Backdrop/Backdrop.js";
9
9
  import { MODAL_Z_INDEX as P, MODAL_ROOT_CLASSES as Z, MODAL_PANEL_Z_INDEX as j, MODAL_TITLE_CLASSES as X, MODAL_CLOSE_CLASSES as $, MODAL_HEADER_CLASSES as F, MODAL_BODY_CLASSES as H, MODAL_FOOTER_CLASSES as K, MODAL_SIZE_CLASSES as Y, MODAL_CONTAINER_CLASSES as q } from "./Modal.const.js";
10
10
  const le = (u) => {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),V=require("react"),v=require("../../constants/numbers.const.cjs"),o=require("../../constants/generals.const.cjs"),e=require("../../hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.cjs"),Y=require("../../hooks/useFixedAnchorPosition/useFixedAnchorPosition.utils.cjs"),y=require("../Portal/Portal.cjs"),C=require("../Transition/Transition.cjs"),h=require("../Transition/Transition.const.cjs"),O=require("./OverlayPortal.const.cjs"),q=c=>{const{open:t,ready:F,style:u,zIndex:A,className:T,testId:L,attributes:d,panelRef:R,children:_}=c,{openEffect:n,closeEffect:E}=Y.resolveOverlayEffects(c,e.OVERLAY_OPEN_EFFECT_NONE),[s,r]=V.useState(o.BOOLEAN_FALSE),N=n!==e.OVERLAY_OPEN_EFFECT_NONE||E!==e.OVERLAY_OPEN_EFFECT_NONE;if(t&&F&&!s&&r(o.BOOLEAN_TRUE),!t&&s&&!N&&r(o.BOOLEAN_FALSE),!s)return null;const a=t?n:E,l=(a===e.OVERLAY_OPEN_EFFECT_NONE?void 0:O.OVERLAY_EFFECT_TRANSITION[a])??(n===e.OVERLAY_OPEN_EFFECT_NONE?void 0:O.OVERLAY_EFFECT_TRANSITION[n])??(E===e.OVERLAY_OPEN_EFFECT_NONE?void 0:O.OVERLAY_EFFECT_TRANSITION[E]),f=t&&n===e.OVERLAY_OPEN_EFFECT_NONE||!t&&E===e.OVERLAY_OPEN_EFFECT_NONE,P={...u,zIndex:A,visibility:e.VISIBILITY_VISIBLE},I=()=>{t||r(o.BOOLEAN_FALSE)},S=i.jsx("div",{ref:R,className:T,style:P,"data-testid":L,...d,children:N&&l?i.jsx(C.Transition,{show:t,name:l,duration:f?v.ZERO:h.DEFAULT_DURATION,onLeft:I,children:_}):_});return i.jsx(y.Portal,{children:S})};exports.OverlayPortal=q;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const E=require("../../hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.cjs"),_={[E.OVERLAY_OPEN_EFFECT_FADE]:E.OVERLAY_OPEN_EFFECT_FADE,[E.OVERLAY_OPEN_EFFECT_SLIDE_DOWN]:E.OVERLAY_OPEN_EFFECT_SLIDE_DOWN,[E.OVERLAY_OPEN_EFFECT_SCALE]:E.OVERLAY_OPEN_EFFECT_SCALE};exports.OVERLAY_OPEN_EFFECT_NONE=E.OVERLAY_OPEN_EFFECT_NONE;exports.OVERLAY_EFFECT_TRANSITION=_;
@@ -0,0 +1,4 @@
1
+ import { TransitionName } from '../Transition/Transition.types';
2
+ import { OverlayOpenEffect, OVERLAY_OPEN_EFFECT_NONE } from '../../hooks/useFixedAnchorPosition';
3
+ export { OVERLAY_OPEN_EFFECT_NONE };
4
+ export declare const OVERLAY_EFFECT_TRANSITION: Record<Exclude<OverlayOpenEffect, typeof OVERLAY_OPEN_EFFECT_NONE>, TransitionName>;
@@ -0,0 +1,12 @@
1
+ import "react";
2
+ import { OVERLAY_OPEN_EFFECT_SCALE as E, OVERLAY_OPEN_EFFECT_SLIDE_DOWN as _, OVERLAY_OPEN_EFFECT_FADE as O } from "../../hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.js";
3
+ import { OVERLAY_OPEN_EFFECT_NONE as T } from "../../hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.js";
4
+ const A = {
5
+ [O]: O,
6
+ [_]: _,
7
+ [E]: E
8
+ };
9
+ export {
10
+ A as OVERLAY_EFFECT_TRANSITION,
11
+ T as OVERLAY_OPEN_EFFECT_NONE
12
+ };
@@ -0,0 +1,2 @@
1
+ import { OverlayPortalProps } from './OverlayPortal.types';
2
+ export declare const OverlayPortal: (props: OverlayPortalProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,45 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useState as _ } from "react";
3
+ import { ZERO as A } from "../../constants/numbers.const.js";
4
+ import { BOOLEAN_FALSE as a, BOOLEAN_TRUE as y } from "../../constants/generals.const.js";
5
+ import { OVERLAY_OPEN_EFFECT_NONE as t, VISIBILITY_VISIBLE as S } from "../../hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.js";
6
+ import { resolveOverlayEffects as F } from "../../hooks/useFixedAnchorPosition/useFixedAnchorPosition.utils.js";
7
+ import { Portal as B } from "../Portal/Portal.js";
8
+ import { Transition as V } from "../Transition/Transition.js";
9
+ import { DEFAULT_DURATION as x } from "../Transition/Transition.const.js";
10
+ import { OVERLAY_EFFECT_TRANSITION as f } from "./OverlayPortal.const.js";
11
+ const g = (m) => {
12
+ const {
13
+ open: o,
14
+ ready: p,
15
+ style: O,
16
+ zIndex: N,
17
+ className: I,
18
+ testId: L,
19
+ attributes: h,
20
+ panelRef: u,
21
+ children: l
22
+ } = m, { openEffect: e, closeEffect: r } = F(m, t), [n, i] = _(a), c = e !== t || r !== t;
23
+ if (o && p && !n && i(y), !o && n && !c && i(a), !n)
24
+ return null;
25
+ const d = o ? e : r, E = (d === t ? void 0 : f[d]) ?? (e === t ? void 0 : f[e]) ?? (r === t ? void 0 : f[r]), v = o && e === t || !o && r === t, R = {
26
+ ...O,
27
+ zIndex: N,
28
+ visibility: S
29
+ }, T = /* @__PURE__ */ s("div", { ref: u, className: I, style: R, "data-testid": L, ...h, children: c && E ? /* @__PURE__ */ s(
30
+ V,
31
+ {
32
+ show: o,
33
+ name: E,
34
+ duration: v ? A : x,
35
+ onLeft: () => {
36
+ o || i(a);
37
+ },
38
+ children: l
39
+ }
40
+ ) : l });
41
+ return /* @__PURE__ */ s(B, { children: T });
42
+ };
43
+ export {
44
+ g as OverlayPortal
45
+ };
@@ -0,0 +1,13 @@
1
+ import { CSSProperties, ReactNode, Ref } from 'react';
2
+ import { OverlayEffectProps } from '../../hooks/useFixedAnchorPosition';
3
+ export interface OverlayPortalProps extends OverlayEffectProps {
4
+ open: boolean;
5
+ ready: boolean;
6
+ style: CSSProperties;
7
+ zIndex: number;
8
+ className?: string;
9
+ testId?: string;
10
+ attributes?: Record<string, string>;
11
+ panelRef?: Ref<HTMLDivElement>;
12
+ children: ReactNode;
13
+ }
@@ -0,0 +1,2 @@
1
+ export { OverlayPortal } from './OverlayPortal';
2
+ export type { OverlayPortalProps } from './OverlayPortal.types';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../utils/cn.cjs");require("react");const u=require("../Icon/Icon.cjs"),r=require("./PageNav.const.cjs"),p=({size:a})=>e.jsx(u.Icon,{size:a,children:e.jsx("polyline",{points:"15 18 9 12 15 6"})}),h=({size:a})=>e.jsx(u.Icon,{size:a,children:e.jsx("polyline",{points:"9 6 15 12 9 18"})}),d=({item:a,direction:l,linkClass:n,labelClass:b,iconClass:t,sizeClass:x,iconSize:c})=>{const s=l==="prev",o=a.href?"a":"button",j=a.href?{href:a.href}:{type:"button",onClick:a.onClick};return e.jsxs(o,{...j,className:i.cn("bear-flex bear-flex-col bear-gap-1 bear-no-underline bear-min-w-0",s?"bear-items-start":"bear-items-end bear-ml-auto",n,x),children:[e.jsx("span",{className:i.cn("bear-text-[10px] bear-font-semibold bear-uppercase bear-tracking-wider",b),children:s?"Previous":"Next"}),e.jsxs("span",{className:"bear-flex bear-items-center bear-gap-1.5 bear-font-medium",children:[s&&e.jsx("span",{className:i.cn("bear-flex-shrink-0",t),children:a.icon??e.jsx(p,{size:c})}),e.jsx("span",{className:"bear-truncate",children:a.label}),!s&&e.jsx("span",{className:i.cn("bear-flex-shrink-0",t),children:a.icon??e.jsx(h,{size:c})})]})]})},f=({prev:a,next:l,size:n="md",variant:b="default",className:t,testId:x,"aria-label":c="Page navigation"})=>{if(!a&&!l)return null;const s=r.VARIANT_CLASSES[b],o=r.ICON_SIZE[n];return e.jsxs("nav",{"data-testid":x,className:i.cn(r.ROOT_CLASS,"bear-flex bear-items-start bear-justify-between bear-gap-4 bear-border-t bear-border-zinc-700/50",r.SIZE_CLASSES[n],t),"aria-label":c,children:[a?e.jsx(d,{item:a,direction:"prev",linkClass:s.link,labelClass:s.label,iconClass:s.icon,sizeClass:r.LINK_SIZE[n],iconSize:o}):e.jsx("span",{}),l?e.jsx(d,{item:l,direction:"next",linkClass:s.link,labelClass:s.label,iconClass:s.icon,sizeClass:r.LINK_SIZE[n],iconSize:o}):e.jsx("span",{})]})};exports.PageNav=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../utils/cn.cjs");require("react");const u=require("@forgedevstack/bear-icons"),r=require("./PageNav.const.cjs"),p=({size:a})=>e.jsx(u.Icon,{size:a,children:e.jsx("polyline",{points:"15 18 9 12 15 6"})}),h=({size:a})=>e.jsx(u.Icon,{size:a,children:e.jsx("polyline",{points:"9 6 15 12 9 18"})}),d=({item:a,direction:l,linkClass:n,labelClass:b,iconClass:t,sizeClass:x,iconSize:c})=>{const s=l==="prev",o=a.href?"a":"button",j=a.href?{href:a.href}:{type:"button",onClick:a.onClick};return e.jsxs(o,{...j,className:i.cn("bear-flex bear-flex-col bear-gap-1 bear-no-underline bear-min-w-0",s?"bear-items-start":"bear-items-end bear-ml-auto",n,x),children:[e.jsx("span",{className:i.cn("bear-text-[10px] bear-font-semibold bear-uppercase bear-tracking-wider",b),children:s?"Previous":"Next"}),e.jsxs("span",{className:"bear-flex bear-items-center bear-gap-1.5 bear-font-medium",children:[s&&e.jsx("span",{className:i.cn("bear-flex-shrink-0",t),children:a.icon??e.jsx(p,{size:c})}),e.jsx("span",{className:"bear-truncate",children:a.label}),!s&&e.jsx("span",{className:i.cn("bear-flex-shrink-0",t),children:a.icon??e.jsx(h,{size:c})})]})]})},f=({prev:a,next:l,size:n="md",variant:b="default",className:t,testId:x,"aria-label":c="Page navigation"})=>{if(!a&&!l)return null;const s=r.VARIANT_CLASSES[b],o=r.ICON_SIZE[n];return e.jsxs("nav",{"data-testid":x,className:i.cn(r.ROOT_CLASS,"bear-flex bear-items-start bear-justify-between bear-gap-4 bear-border-t bear-border-zinc-700/50",r.SIZE_CLASSES[n],t),"aria-label":c,children:[a?e.jsx(d,{item:a,direction:"prev",linkClass:s.link,labelClass:s.label,iconClass:s.icon,sizeClass:r.LINK_SIZE[n],iconSize:o}):e.jsx("span",{}),l?e.jsx(d,{item:l,direction:"next",linkClass:s.link,labelClass:s.label,iconClass:s.icon,sizeClass:r.LINK_SIZE[n],iconSize:o}):e.jsx("span",{})]})};exports.PageNav=f;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as p, jsx as a } from "react/jsx-runtime";
2
2
  import { cn as l } from "../../utils/cn.js";
3
3
  import "react";
4
- import { Icon as f } from "../Icon/Icon.js";
4
+ import { Icon as f } from "@forgedevstack/bear-icons";
5
5
  import { ICON_SIZE as C, LINK_SIZE as d, VARIANT_CLASSES as u, SIZE_CLASSES as N, ROOT_CLASS as x } from "./PageNav.const.js";
6
6
  const S = ({ size: e }) => /* @__PURE__ */ a(f, { size: e, children: /* @__PURE__ */ a("polyline", { points: "15 18 9 12 15 6" }) }), g = ({ size: e }) => /* @__PURE__ */ a(f, { size: e, children: /* @__PURE__ */ a("polyline", { points: "9 6 15 12 9 18" }) }), m = ({ item: e, direction: s, linkClass: n, labelClass: c, iconClass: i, sizeClass: b, iconSize: t }) => {
7
7
  const r = s === "prev", o = e.href ? "a" : "button", h = e.href ? { href: e.href } : { type: "button", onClick: e.onClick };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("react"),b=require("../../utils/cn.cjs"),L=require("../Input/Input.cjs"),i=require("../Icon/icons/action.cjs"),_=b.cn("Bear-PasswordInput__shift bear-text-xs bear-font-medium bear-px-1.5 bear-py-0.5","bear-rounded bear-bg-amber-100 bear-text-amber-700","dark:bear-bg-amber-900/40 dark:bear-text-amber-400","bear-select-none bear-whitespace-nowrap"),S=({visible:t,onVisibilityChange:a,hideToggle:d=!1,toggleAriaLabel:u="Toggle password visibility",showShiftIndicator:n=!1,visibleIcon:l,hiddenIcon:p,...w})=>{const[x,m]=s.useState(!1),[f,I]=s.useState(!1),o=t!==void 0,c=o?t:x,g=s.useCallback(()=>{o?a==null||a(!t):m(e=>!e)},[o,t,a]);s.useEffect(()=>{if(!n)return;const e=j=>I(j.getModifierState("CapsLock"));return window.addEventListener("keydown",e),window.addEventListener("keyup",e),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}},[n]);const v=r.jsx(i.VisibilityOffIcon,{className:"bear-w-4 bear-h-4"}),k=r.jsx(i.VisibilityIcon,{className:"bear-w-4 bear-h-4"}),y=d?void 0:r.jsxs("span",{className:"Bear-PasswordInput__actions bear-inline-flex bear-items-center bear-gap-1.5",children:[n&&f&&r.jsx("span",{className:_,children:"Caps"}),r.jsx("button",{type:"button",tabIndex:-1,onClick:g,className:b.cn("Bear-PasswordInput__toggle bear-inline-flex bear-items-center bear-justify-center","bear-text-gray-400 hover:bear-text-gray-600 dark:hover:bear-text-gray-300","bear-transition-colors bear-cursor-pointer"),"aria-label":u,children:c?l??v:p??k})]});return r.jsx(L.Input,{type:c?"text":"password",rightAddon:y,autoComplete:"current-password",...w})};exports.PasswordInput=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("react"),b=require("../../utils/cn.cjs"),L=require("../Input/Input.cjs"),i=require("../../node_modules/@forgedevstack/bear-icons/dist/action.cjs"),_=b.cn("Bear-PasswordInput__shift bear-text-xs bear-font-medium bear-px-1.5 bear-py-0.5","bear-rounded bear-bg-amber-100 bear-text-amber-700","dark:bear-bg-amber-900/40 dark:bear-text-amber-400","bear-select-none bear-whitespace-nowrap"),S=({visible:t,onVisibilityChange:a,hideToggle:d=!1,toggleAriaLabel:u="Toggle password visibility",showShiftIndicator:n=!1,visibleIcon:l,hiddenIcon:p,...w})=>{const[x,m]=s.useState(!1),[f,I]=s.useState(!1),o=t!==void 0,c=o?t:x,g=s.useCallback(()=>{o?a==null||a(!t):m(e=>!e)},[o,t,a]);s.useEffect(()=>{if(!n)return;const e=j=>I(j.getModifierState("CapsLock"));return window.addEventListener("keydown",e),window.addEventListener("keyup",e),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}},[n]);const v=r.jsx(i.VisibilityOffIcon,{className:"bear-w-4 bear-h-4"}),k=r.jsx(i.VisibilityIcon,{className:"bear-w-4 bear-h-4"}),y=d?void 0:r.jsxs("span",{className:"Bear-PasswordInput__actions bear-inline-flex bear-items-center bear-gap-1.5",children:[n&&f&&r.jsx("span",{className:_,children:"Caps"}),r.jsx("button",{type:"button",tabIndex:-1,onClick:g,className:b.cn("Bear-PasswordInput__toggle bear-inline-flex bear-items-center bear-justify-center","bear-text-gray-400 hover:bear-text-gray-600 dark:hover:bear-text-gray-300","bear-transition-colors bear-cursor-pointer"),"aria-label":u,children:c?l??v:p??k})]});return r.jsx(L.Input,{type:c?"text":"password",rightAddon:y,autoComplete:"current-password",...w})};exports.PasswordInput=S;
@@ -1,8 +1,8 @@
1
1
  import { jsxs as L, jsx as r } from "react/jsx-runtime";
2
- import { useState as b, useCallback as _, useEffect as E } from "react";
2
+ import { useState as b, useCallback as _, useEffect as N } from "react";
3
3
  import { cn as c } from "../../utils/cn.js";
4
- import { Input as N } from "../Input/Input.js";
5
- import { VisibilityOffIcon as B, VisibilityIcon as C } from "../Icon/icons/action.js";
4
+ import { Input as E } from "../Input/Input.js";
5
+ import { VisibilityOffIcon as B, VisibilityIcon as C } from "../../node_modules/@forgedevstack/bear-icons/dist/action.js";
6
6
  const O = c(
7
7
  "Bear-PasswordInput__shift bear-text-xs bear-font-medium bear-px-1.5 bear-py-0.5",
8
8
  "bear-rounded bear-bg-amber-100 bear-text-amber-700",
@@ -21,7 +21,7 @@ const O = c(
21
21
  const [u, f] = b(!1), [w, x] = b(!1), n = a !== void 0, o = n ? a : u, k = _(() => {
22
22
  n ? t == null || t(!a) : f((e) => !e);
23
23
  }, [n, a, t]);
24
- E(() => {
24
+ N(() => {
25
25
  if (!s) return;
26
26
  const e = (y) => x(y.getModifierState("CapsLock"));
27
27
  return window.addEventListener("keydown", e), window.addEventListener("keyup", e), () => {
@@ -47,7 +47,7 @@ const O = c(
47
47
  )
48
48
  ] });
49
49
  return /* @__PURE__ */ r(
50
- N,
50
+ E,
51
51
  {
52
52
  type: o ? "text" : "password",
53
53
  rightAddon: g,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),n=require("../../utils/cn.cjs"),j=require("../Icon/Icon.cjs"),l=require("./PropsPlayground.const.cjs"),$=require("./PropsPlayground.utils.cjs"),q=({size:b})=>e.jsx(j.Icon,{size:b,children:e.jsx("polyline",{points:"6 9 12 15 18 9"})}),I=({size:b})=>e.jsx(j.Icon,{size:b,children:e.jsx("polyline",{points:"9 18 15 12 9 6"})}),O=({size:b})=>e.jsxs(j.Icon,{size:b,children:[e.jsx("line",{x1:"4",y1:"21",x2:"4",y2:"14"}),e.jsx("line",{x1:"4",y1:"10",x2:"4",y2:"3"}),e.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"3"}),e.jsx("line",{x1:"20",y1:"21",x2:"20",y2:"16"}),e.jsx("line",{x1:"20",y1:"12",x2:"20",y2:"3"}),e.jsx("line",{x1:"1",y1:"14",x2:"7",y2:"14"}),e.jsx("line",{x1:"9",y1:"8",x2:"15",y2:"8"}),e.jsx("line",{x1:"17",y1:"16",x2:"23",y2:"16"})]}),R=({config:b,render:v,title:z="Props",size:S="md",defaultCollapsed:C=!1,showReset:w=!0,columns:P=3,className:L,testId:E})=>{const u=c.useMemo(()=>$.getDefaults(b),[b]),[g,f]=c.useState(u),[m,A]=c.useState(C),o=c.useCallback((r,s)=>{f(i=>({...i,[r]:s}))},[]),_=c.useCallback(()=>{f(u)},[u]),t=l.SIZE_CLASSES[S],N=Object.keys(b).length,p=n.cn("bear-w-full bear-rounded-md bear-border bear-border-zinc-700","bear-bg-zinc-800 bear-text-zinc-100","placeholder:bear-text-zinc-500","focus:bear-outline-none focus:bear-ring-2 focus:bear-ring-primary-500/30 focus:bear-border-primary-500","bear-transition-colors",t.input);return e.jsxs("div",{"data-testid":E,className:n.cn(l.ROOT_CLASS,"bear-rounded-lg bear-border bear-border-zinc-700 bear-overflow-hidden",L),children:[e.jsxs("button",{type:"button",onClick:()=>A(r=>!r),className:n.cn("bear-w-full bear-flex bear-items-center bear-gap-2 bear-text-left bear-font-medium bear-transition-colors","bear-bg-zinc-800/60 hover:bear-bg-zinc-800","bear-text-zinc-200 bear-border-b bear-border-zinc-700","bear-px-4 bear-py-3",t.text),children:[e.jsx("span",{className:"bear-text-primary-500",children:m?e.jsx(I,{size:12}):e.jsx(q,{size:12})}),e.jsx("span",{className:"bear-text-primary-500",children:e.jsx(O,{size:14})}),e.jsx("span",{className:"bear-font-semibold",children:z}),e.jsxs("span",{className:"bear-ml-auto bear-flex bear-items-center bear-gap-2",children:[e.jsxs("span",{className:"bear-text-[10px] bear-font-medium bear-text-zinc-500",children:[N," ",N===1?"control":"controls"]}),w&&!m&&e.jsx("button",{type:"button",onClick:r=>{r.stopPropagation(),_()},className:"bear-text-[10px] bear-font-semibold bear-text-primary-500 hover:bear-text-primary-400 hover:bear-underline",children:"Reset"})]})]}),!m&&e.jsx("div",{className:n.cn("bear-bg-gray-50 dark:bear-bg-zinc-900/50",t.padding),children:e.jsx("div",{className:n.cn("bear-grid",t.gap,l.COLUMN_CLASSES[P]),children:Object.entries(b).map(([r,s])=>{const i=g[r],d=r.replace(/([A-Z])/g," $1").replace(/^./,a=>a.toUpperCase()).trim();if(s.type==="boolean"){const a=i===!0;return e.jsxs("div",{className:"bear-rounded-lg bear-border bear-border-zinc-700/60 bear-bg-zinc-800/30 bear-p-3",children:[e.jsx("span",{className:n.cn("bear-block bear-font-semibold bear-uppercase bear-tracking-wider bear-text-primary-500 bear-mb-2",t.label),children:l.TYPE_LABELS.boolean}),e.jsxs("label",{className:"bear-flex bear-items-center bear-gap-2.5 bear-cursor-pointer",children:[e.jsx("button",{type:"button",role:"switch","aria-checked":a,onClick:()=>o(r,!a),className:n.cn("bear-relative bear-inline-flex bear-h-5 bear-w-9 bear-flex-shrink-0 bear-rounded-full bear-border-2 bear-border-transparent bear-transition-colors",a?"bear-bg-primary-500":"bear-bg-zinc-600"),children:e.jsx("span",{className:n.cn("bear-pointer-events-none bear-inline-block bear-h-4 bear-w-4 bear-transform bear-rounded-full bear-bg-white bear-shadow bear-transition",a?"bear-translate-x-4":"bear-translate-x-0")})}),e.jsx("span",{className:n.cn("bear-font-medium bear-text-zinc-200 bear-truncate",t.text),children:d})]})]},r)}if(s.type==="select"&&s.options)return e.jsxs("div",{className:"bear-rounded-lg bear-border bear-border-zinc-700/60 bear-bg-zinc-800/30 bear-p-3",children:[e.jsxs("div",{className:"bear-flex bear-items-center bear-justify-between bear-mb-1.5",children:[e.jsx("label",{htmlFor:`pp-${r}`,className:n.cn("bear-font-medium bear-text-zinc-300 bear-truncate",t.label),children:d}),e.jsx("span",{className:n.cn("bear-font-semibold bear-uppercase bear-tracking-wider bear-text-primary-500",t.label),children:l.TYPE_LABELS.select})]}),e.jsx("select",{id:`pp-${r}`,value:String(i),onChange:a=>{const x=s.options.find(h=>String(h.value)===a.target.value);o(r,x?x.value:a.target.value)},className:n.cn(p,"bear-cursor-pointer bear-appearance-none"),children:s.options.map(a=>e.jsx("option",{value:String(a.value),children:a.label},String(a.value)))})]},r);if(s.type==="number"){const a=Number(i),x=Number.isNaN(a)?s.default:a;return e.jsxs("div",{className:"bear-rounded-lg bear-border bear-border-zinc-700/60 bear-bg-zinc-800/30 bear-p-3",children:[e.jsxs("div",{className:"bear-flex bear-items-center bear-justify-between bear-mb-1.5",children:[e.jsx("label",{htmlFor:`pp-${r}`,className:n.cn("bear-font-medium bear-text-zinc-300 bear-truncate",t.label),children:d}),e.jsx("span",{className:n.cn("bear-font-semibold bear-uppercase bear-tracking-wider bear-text-primary-500",t.label),children:l.TYPE_LABELS.number})]}),e.jsx("input",{id:`pp-${r}`,type:"number",value:x,min:s.min,max:s.max,step:s.step,onChange:h=>{const y=h.target.valueAsNumber;o(r,Number.isNaN(y)?s.default:y)},className:p})]},r)}return e.jsxs("div",{className:"bear-rounded-lg bear-border bear-border-zinc-700/60 bear-bg-zinc-800/30 bear-p-3",children:[e.jsxs("div",{className:"bear-flex bear-items-center bear-justify-between bear-mb-1.5",children:[e.jsx("label",{htmlFor:`pp-${r}`,className:n.cn("bear-font-medium bear-text-zinc-300 bear-truncate",t.label),children:d}),e.jsx("span",{className:n.cn("bear-font-semibold bear-uppercase bear-tracking-wider bear-text-primary-500",t.label),children:l.TYPE_LABELS.string})]}),e.jsx("input",{id:`pp-${r}`,type:"text",value:String(i??""),onChange:a=>o(r,a.target.value),placeholder:s.placeholder,className:p})]},r)})})}),e.jsx("div",{className:"bear-border-t bear-border-gray-200 dark:bear-border-zinc-700 bear-p-6 bear-bg-white dark:bear-bg-zinc-900 bear-flex bear-items-center bear-justify-center bear-min-h-[180px]",children:e.jsx("div",{className:"bear-w-full",children:v(g)})})]})};exports.PropsPlayground=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),n=require("../../utils/cn.cjs"),j=require("@forgedevstack/bear-icons"),l=require("./PropsPlayground.const.cjs"),$=require("./PropsPlayground.utils.cjs"),q=({size:b})=>e.jsx(j.Icon,{size:b,children:e.jsx("polyline",{points:"6 9 12 15 18 9"})}),I=({size:b})=>e.jsx(j.Icon,{size:b,children:e.jsx("polyline",{points:"9 18 15 12 9 6"})}),O=({size:b})=>e.jsxs(j.Icon,{size:b,children:[e.jsx("line",{x1:"4",y1:"21",x2:"4",y2:"14"}),e.jsx("line",{x1:"4",y1:"10",x2:"4",y2:"3"}),e.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"3"}),e.jsx("line",{x1:"20",y1:"21",x2:"20",y2:"16"}),e.jsx("line",{x1:"20",y1:"12",x2:"20",y2:"3"}),e.jsx("line",{x1:"1",y1:"14",x2:"7",y2:"14"}),e.jsx("line",{x1:"9",y1:"8",x2:"15",y2:"8"}),e.jsx("line",{x1:"17",y1:"16",x2:"23",y2:"16"})]}),R=({config:b,render:v,title:z="Props",size:S="md",defaultCollapsed:C=!1,showReset:w=!0,columns:P=3,className:L,testId:E})=>{const u=c.useMemo(()=>$.getDefaults(b),[b]),[g,f]=c.useState(u),[m,A]=c.useState(C),o=c.useCallback((r,s)=>{f(i=>({...i,[r]:s}))},[]),_=c.useCallback(()=>{f(u)},[u]),t=l.SIZE_CLASSES[S],N=Object.keys(b).length,p=n.cn("bear-w-full bear-rounded-md bear-border bear-border-zinc-700","bear-bg-zinc-800 bear-text-zinc-100","placeholder:bear-text-zinc-500","focus:bear-outline-none focus:bear-ring-2 focus:bear-ring-primary-500/30 focus:bear-border-primary-500","bear-transition-colors",t.input);return e.jsxs("div",{"data-testid":E,className:n.cn(l.ROOT_CLASS,"bear-rounded-lg bear-border bear-border-zinc-700 bear-overflow-hidden",L),children:[e.jsxs("button",{type:"button",onClick:()=>A(r=>!r),className:n.cn("bear-w-full bear-flex bear-items-center bear-gap-2 bear-text-left bear-font-medium bear-transition-colors","bear-bg-zinc-800/60 hover:bear-bg-zinc-800","bear-text-zinc-200 bear-border-b bear-border-zinc-700","bear-px-4 bear-py-3",t.text),children:[e.jsx("span",{className:"bear-text-primary-500",children:m?e.jsx(I,{size:12}):e.jsx(q,{size:12})}),e.jsx("span",{className:"bear-text-primary-500",children:e.jsx(O,{size:14})}),e.jsx("span",{className:"bear-font-semibold",children:z}),e.jsxs("span",{className:"bear-ml-auto bear-flex bear-items-center bear-gap-2",children:[e.jsxs("span",{className:"bear-text-[10px] bear-font-medium bear-text-zinc-500",children:[N," ",N===1?"control":"controls"]}),w&&!m&&e.jsx("button",{type:"button",onClick:r=>{r.stopPropagation(),_()},className:"bear-text-[10px] bear-font-semibold bear-text-primary-500 hover:bear-text-primary-400 hover:bear-underline",children:"Reset"})]})]}),!m&&e.jsx("div",{className:n.cn("bear-bg-gray-50 dark:bear-bg-zinc-900/50",t.padding),children:e.jsx("div",{className:n.cn("bear-grid",t.gap,l.COLUMN_CLASSES[P]),children:Object.entries(b).map(([r,s])=>{const i=g[r],d=r.replace(/([A-Z])/g," $1").replace(/^./,a=>a.toUpperCase()).trim();if(s.type==="boolean"){const a=i===!0;return e.jsxs("div",{className:"bear-rounded-lg bear-border bear-border-zinc-700/60 bear-bg-zinc-800/30 bear-p-3",children:[e.jsx("span",{className:n.cn("bear-block bear-font-semibold bear-uppercase bear-tracking-wider bear-text-primary-500 bear-mb-2",t.label),children:l.TYPE_LABELS.boolean}),e.jsxs("label",{className:"bear-flex bear-items-center bear-gap-2.5 bear-cursor-pointer",children:[e.jsx("button",{type:"button",role:"switch","aria-checked":a,onClick:()=>o(r,!a),className:n.cn("bear-relative bear-inline-flex bear-h-5 bear-w-9 bear-flex-shrink-0 bear-rounded-full bear-border-2 bear-border-transparent bear-transition-colors",a?"bear-bg-primary-500":"bear-bg-zinc-600"),children:e.jsx("span",{className:n.cn("bear-pointer-events-none bear-inline-block bear-h-4 bear-w-4 bear-transform bear-rounded-full bear-bg-white bear-shadow bear-transition",a?"bear-translate-x-4":"bear-translate-x-0")})}),e.jsx("span",{className:n.cn("bear-font-medium bear-text-zinc-200 bear-truncate",t.text),children:d})]})]},r)}if(s.type==="select"&&s.options)return e.jsxs("div",{className:"bear-rounded-lg bear-border bear-border-zinc-700/60 bear-bg-zinc-800/30 bear-p-3",children:[e.jsxs("div",{className:"bear-flex bear-items-center bear-justify-between bear-mb-1.5",children:[e.jsx("label",{htmlFor:`pp-${r}`,className:n.cn("bear-font-medium bear-text-zinc-300 bear-truncate",t.label),children:d}),e.jsx("span",{className:n.cn("bear-font-semibold bear-uppercase bear-tracking-wider bear-text-primary-500",t.label),children:l.TYPE_LABELS.select})]}),e.jsx("select",{id:`pp-${r}`,value:String(i),onChange:a=>{const x=s.options.find(h=>String(h.value)===a.target.value);o(r,x?x.value:a.target.value)},className:n.cn(p,"bear-cursor-pointer bear-appearance-none"),children:s.options.map(a=>e.jsx("option",{value:String(a.value),children:a.label},String(a.value)))})]},r);if(s.type==="number"){const a=Number(i),x=Number.isNaN(a)?s.default:a;return e.jsxs("div",{className:"bear-rounded-lg bear-border bear-border-zinc-700/60 bear-bg-zinc-800/30 bear-p-3",children:[e.jsxs("div",{className:"bear-flex bear-items-center bear-justify-between bear-mb-1.5",children:[e.jsx("label",{htmlFor:`pp-${r}`,className:n.cn("bear-font-medium bear-text-zinc-300 bear-truncate",t.label),children:d}),e.jsx("span",{className:n.cn("bear-font-semibold bear-uppercase bear-tracking-wider bear-text-primary-500",t.label),children:l.TYPE_LABELS.number})]}),e.jsx("input",{id:`pp-${r}`,type:"number",value:x,min:s.min,max:s.max,step:s.step,onChange:h=>{const y=h.target.valueAsNumber;o(r,Number.isNaN(y)?s.default:y)},className:p})]},r)}return e.jsxs("div",{className:"bear-rounded-lg bear-border bear-border-zinc-700/60 bear-bg-zinc-800/30 bear-p-3",children:[e.jsxs("div",{className:"bear-flex bear-items-center bear-justify-between bear-mb-1.5",children:[e.jsx("label",{htmlFor:`pp-${r}`,className:n.cn("bear-font-medium bear-text-zinc-300 bear-truncate",t.label),children:d}),e.jsx("span",{className:n.cn("bear-font-semibold bear-uppercase bear-tracking-wider bear-text-primary-500",t.label),children:l.TYPE_LABELS.string})]}),e.jsx("input",{id:`pp-${r}`,type:"text",value:String(i??""),onChange:a=>o(r,a.target.value),placeholder:s.placeholder,className:p})]},r)})})}),e.jsx("div",{className:"bear-border-t bear-border-gray-200 dark:bear-border-zinc-700 bear-p-6 bear-bg-white dark:bear-bg-zinc-900 bear-flex bear-items-center bear-justify-center bear-min-h-[180px]",children:e.jsx("div",{className:"bear-w-full",children:v(g)})})]})};exports.PropsPlayground=R;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as _, useState as z, useCallback as w } from "react";
3
3
  import { cn as n } from "../../utils/cn.js";
4
- import { Icon as g } from "../Icon/Icon.js";
4
+ import { Icon as g } from "@forgedevstack/bear-icons";
5
5
  import { SIZE_CLASSES as F, TYPE_LABELS as m, COLUMN_CLASSES as I, ROOT_CLASS as V } from "./PropsPlayground.const.js";
6
6
  import { getDefaults as k } from "./PropsPlayground.utils.js";
7
7
  const D = ({ size: i }) => /* @__PURE__ */ e(g, { size: i, children: /* @__PURE__ */ e("polyline", { points: "6 9 12 15 18 9" }) }), M = ({ size: i }) => /* @__PURE__ */ e(g, { size: i, children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" }) }), T = ({ size: i }) => /* @__PURE__ */ t(g, { size: i, children: [