@forgedevstack/bear 1.3.2 → 1.3.4

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 (404) hide show
  1. package/README.md +145 -288
  2. package/dist/components/AlertDialog/AlertDialog.cjs +1 -1
  3. package/dist/components/AlertDialog/AlertDialog.js +67 -84
  4. package/dist/components/ApprovalCard/ApprovalCard.cjs +1 -0
  5. package/dist/components/ApprovalCard/ApprovalCard.const.cjs +1 -0
  6. package/dist/components/ApprovalCard/ApprovalCard.const.d.ts +2 -0
  7. package/dist/components/ApprovalCard/ApprovalCard.const.js +8 -0
  8. package/dist/components/ApprovalCard/ApprovalCard.d.ts +2 -0
  9. package/dist/components/ApprovalCard/ApprovalCard.js +25 -0
  10. package/dist/components/ApprovalCard/ApprovalCard.types.d.ts +15 -0
  11. package/dist/components/ApprovalCard/index.d.ts +2 -0
  12. package/dist/components/ArtifactCard/ArtifactCard.cjs +1 -0
  13. package/dist/components/ArtifactCard/ArtifactCard.const.cjs +1 -0
  14. package/dist/components/ArtifactCard/ArtifactCard.const.d.ts +3 -0
  15. package/dist/components/ArtifactCard/ArtifactCard.const.js +8 -0
  16. package/dist/components/ArtifactCard/ArtifactCard.d.ts +2 -0
  17. package/dist/components/ArtifactCard/ArtifactCard.js +43 -0
  18. package/dist/components/ArtifactCard/ArtifactCard.types.d.ts +15 -0
  19. package/dist/components/ArtifactCard/index.d.ts +2 -0
  20. package/dist/components/Banner/Banner.const.cjs +1 -1
  21. package/dist/components/Banner/Banner.const.js +9 -8
  22. package/dist/components/BottomSheet/BottomSheet.cjs +1 -1
  23. package/dist/components/BottomSheet/BottomSheet.js +72 -64
  24. package/dist/components/Chart/BarChart.cjs +1 -1
  25. package/dist/components/Chart/BarChart.js +65 -72
  26. package/dist/components/Chart/Chart.cjs +1 -1
  27. package/dist/components/Chart/Chart.js +21 -18
  28. package/dist/components/Chart/Chart.types.d.ts +1 -1
  29. package/dist/components/Chart/FunnelChart.cjs +1 -1
  30. package/dist/components/Chart/FunnelChart.js +38 -36
  31. package/dist/components/Chart/LineChart.cjs +1 -1
  32. package/dist/components/Chart/LineChart.js +74 -60
  33. package/dist/components/Chart/PieChart.cjs +1 -1
  34. package/dist/components/Chart/PieChart.js +102 -82
  35. package/dist/components/Chart/RadarChart.cjs +1 -1
  36. package/dist/components/Chart/RadarChart.d.ts +1 -1
  37. package/dist/components/Chart/RadarChart.js +116 -93
  38. package/dist/components/Chat/Chat.cjs +1 -1
  39. package/dist/components/Chat/Chat.const.cjs +1 -1
  40. package/dist/components/Chat/Chat.const.d.ts +9 -22
  41. package/dist/components/Chat/Chat.const.js +18 -26
  42. package/dist/components/Chat/Chat.d.ts +1 -20
  43. package/dist/components/Chat/Chat.js +107 -162
  44. package/dist/components/Chat/Chat.types.d.ts +20 -27
  45. package/dist/components/Chat/Chat.utils.cjs +1 -0
  46. package/dist/components/Chat/Chat.utils.d.ts +2 -0
  47. package/dist/components/Chat/Chat.utils.js +10 -0
  48. package/dist/components/Chat/helpers/ChatTypingIndicator.cjs +1 -0
  49. package/dist/components/Chat/helpers/ChatTypingIndicator.d.ts +3 -0
  50. package/dist/components/Chat/helpers/ChatTypingIndicator.js +14 -0
  51. package/dist/components/Chat/index.d.ts +2 -1
  52. package/dist/components/ChatBubble/ChatBubble.cjs +1 -0
  53. package/dist/components/ChatBubble/ChatBubble.const.cjs +1 -0
  54. package/dist/components/ChatBubble/ChatBubble.const.d.ts +13 -0
  55. package/dist/components/ChatBubble/ChatBubble.const.js +17 -0
  56. package/dist/components/ChatBubble/ChatBubble.d.ts +2 -0
  57. package/dist/components/ChatBubble/ChatBubble.js +32 -0
  58. package/dist/components/ChatBubble/ChatBubble.types.d.ts +12 -0
  59. package/dist/components/ChatBubble/ChatBubble.utils.cjs +1 -0
  60. package/dist/components/ChatBubble/ChatBubble.utils.d.ts +6 -0
  61. package/dist/components/ChatBubble/ChatBubble.utils.js +15 -0
  62. package/dist/components/ChatBubble/helpers/ChatBubbleSystem.cjs +1 -0
  63. package/dist/components/ChatBubble/helpers/ChatBubbleSystem.d.ts +2 -0
  64. package/dist/components/ChatBubble/helpers/ChatBubbleSystem.js +21 -0
  65. package/dist/components/ChatBubble/helpers/ChatBubbleThread.cjs +1 -0
  66. package/dist/components/ChatBubble/helpers/ChatBubbleThread.d.ts +4 -0
  67. package/dist/components/ChatBubble/helpers/ChatBubbleThread.js +63 -0
  68. package/dist/components/ChatBubble/index.d.ts +2 -0
  69. package/dist/components/ChatError/ChatError.cjs +1 -0
  70. package/dist/components/ChatError/ChatError.const.cjs +1 -0
  71. package/dist/components/ChatError/ChatError.const.d.ts +2 -0
  72. package/dist/components/ChatError/ChatError.const.js +8 -0
  73. package/dist/components/ChatError/ChatError.d.ts +2 -0
  74. package/dist/components/ChatError/ChatError.js +32 -0
  75. package/dist/components/ChatError/ChatError.types.d.ts +14 -0
  76. package/dist/components/ChatError/index.d.ts +2 -0
  77. package/dist/components/ChipGroup/ChipGroup.cjs +1 -1
  78. package/dist/components/ChipGroup/ChipGroup.const.cjs +1 -1
  79. package/dist/components/ChipGroup/ChipGroup.const.d.ts +2 -0
  80. package/dist/components/ChipGroup/ChipGroup.const.js +6 -4
  81. package/dist/components/ChipGroup/ChipGroup.js +52 -48
  82. package/dist/components/CitationList/CitationList.cjs +1 -0
  83. package/dist/components/CitationList/CitationList.d.ts +2 -0
  84. package/dist/components/CitationList/CitationList.js +30 -0
  85. package/dist/components/CitationList/CitationList.types.d.ts +15 -0
  86. package/dist/components/CitationList/helpers/CitationListTitle.cjs +1 -0
  87. package/dist/components/CitationList/helpers/CitationListTitle.d.ts +2 -0
  88. package/dist/components/CitationList/helpers/CitationListTitle.js +10 -0
  89. package/dist/components/CitationList/helpers/index.d.ts +1 -0
  90. package/dist/components/CitationList/index.d.ts +2 -0
  91. package/dist/components/CommandPalette/CommandItem.cjs +1 -0
  92. package/dist/components/CommandPalette/CommandItem.d.ts +6 -0
  93. package/dist/components/CommandPalette/CommandItem.js +39 -0
  94. package/dist/components/CommandPalette/CommandPalette.cjs +1 -1
  95. package/dist/components/CommandPalette/CommandPalette.js +129 -144
  96. package/dist/components/ContextMeter/ContextMeter.cjs +1 -0
  97. package/dist/components/ContextMeter/ContextMeter.const.cjs +1 -0
  98. package/dist/components/ContextMeter/ContextMeter.const.d.ts +6 -0
  99. package/dist/components/ContextMeter/ContextMeter.const.js +11 -0
  100. package/dist/components/ContextMeter/ContextMeter.d.ts +2 -0
  101. package/dist/components/ContextMeter/ContextMeter.js +49 -0
  102. package/dist/components/ContextMeter/ContextMeter.types.d.ts +11 -0
  103. package/dist/components/ContextMeter/ContextMeter.utils.cjs +1 -0
  104. package/dist/components/ContextMeter/ContextMeter.utils.d.ts +2 -0
  105. package/dist/components/ContextMeter/ContextMeter.utils.js +12 -0
  106. package/dist/components/ContextMeter/index.d.ts +2 -0
  107. package/dist/components/Drawer/Drawer.cjs +1 -1
  108. package/dist/components/Drawer/Drawer.const.cjs +1 -1
  109. package/dist/components/Drawer/Drawer.const.d.ts +2 -1
  110. package/dist/components/Drawer/Drawer.const.js +7 -6
  111. package/dist/components/Drawer/Drawer.d.ts +1 -1
  112. package/dist/components/Drawer/Drawer.js +101 -85
  113. package/dist/components/Drawer/Drawer.types.d.ts +4 -1
  114. package/dist/components/Drawer/hooks/useDrawer.cjs +1 -1
  115. package/dist/components/Drawer/hooks/useDrawer.js +33 -34
  116. package/dist/components/Drawer/index.d.ts +1 -1
  117. package/dist/components/EmptyState/EmptyState.cjs +1 -1
  118. package/dist/components/EmptyState/EmptyState.const.cjs +1 -1
  119. package/dist/components/EmptyState/EmptyState.const.d.ts +13 -6
  120. package/dist/components/EmptyState/EmptyState.const.js +30 -8
  121. package/dist/components/EmptyState/EmptyState.d.ts +1 -2
  122. package/dist/components/EmptyState/EmptyState.js +37 -41
  123. package/dist/components/EmptyState/EmptyState.types.d.ts +3 -1
  124. package/dist/components/EmptyState/helpers/EmptyStateErrorSvg.cjs +1 -0
  125. package/dist/components/EmptyState/helpers/EmptyStateErrorSvg.d.ts +3 -0
  126. package/dist/components/EmptyState/helpers/EmptyStateErrorSvg.js +8 -0
  127. package/dist/components/EmptyState/helpers/EmptyStateInboxSvg.cjs +1 -0
  128. package/dist/components/EmptyState/helpers/EmptyStateInboxSvg.d.ts +3 -0
  129. package/dist/components/EmptyState/helpers/EmptyStateInboxSvg.js +8 -0
  130. package/dist/components/EmptyState/helpers/EmptyStateSearchSvg.cjs +1 -0
  131. package/dist/components/EmptyState/helpers/EmptyStateSearchSvg.d.ts +3 -0
  132. package/dist/components/EmptyState/helpers/EmptyStateSearchSvg.js +8 -0
  133. package/dist/components/EmptyState/helpers/index.d.ts +3 -0
  134. package/dist/components/EmptyState/index.d.ts +1 -1
  135. package/dist/components/FloatingChat/FloatingChat.cjs +1 -1
  136. package/dist/components/FloatingChat/FloatingChat.const.cjs +1 -1
  137. package/dist/components/FloatingChat/FloatingChat.const.d.ts +12 -1
  138. package/dist/components/FloatingChat/FloatingChat.const.js +25 -7
  139. package/dist/components/FloatingChat/FloatingChat.d.ts +1 -18
  140. package/dist/components/FloatingChat/FloatingChat.js +93 -124
  141. package/dist/components/FloatingChat/FloatingChat.types.d.ts +11 -22
  142. package/dist/components/FloatingChat/FloatingChat.utils.cjs +1 -0
  143. package/dist/components/FloatingChat/FloatingChat.utils.d.ts +2 -0
  144. package/dist/components/FloatingChat/FloatingChat.utils.js +12 -0
  145. package/dist/components/FloatingChat/helpers/FloatingChatHeader.cjs +1 -0
  146. package/dist/components/FloatingChat/helpers/FloatingChatHeader.d.ts +9 -0
  147. package/dist/components/FloatingChat/helpers/FloatingChatHeader.js +21 -0
  148. package/dist/components/FloatingChat/helpers/FloatingChatTrigger.cjs +1 -0
  149. package/dist/components/FloatingChat/helpers/FloatingChatTrigger.d.ts +9 -0
  150. package/dist/components/FloatingChat/helpers/FloatingChatTrigger.js +17 -0
  151. package/dist/components/FloatingChat/index.d.ts +1 -1
  152. package/dist/components/FormSkeleton/FormSkeleton.cjs +1 -1
  153. package/dist/components/FormSkeleton/FormSkeleton.d.ts +1 -1
  154. package/dist/components/FormSkeleton/FormSkeleton.js +35 -24
  155. package/dist/components/HoverCard/HoverCard.cjs +4 -3
  156. package/dist/components/HoverCard/HoverCard.const.cjs +1 -0
  157. package/dist/components/HoverCard/HoverCard.const.d.ts +1 -0
  158. package/dist/components/HoverCard/HoverCard.const.js +10 -0
  159. package/dist/components/HoverCard/HoverCard.js +62 -56
  160. package/dist/components/HoverCard/HoverCard.types.d.ts +7 -0
  161. package/dist/components/Icon/index.d.ts +1 -0
  162. package/dist/components/Icon/productIcons.cjs +1 -0
  163. package/dist/components/Icon/productIcons.d.ts +7 -0
  164. package/dist/components/Icon/productIcons.js +25 -0
  165. package/dist/components/Menu/Menu.cjs +1 -1
  166. package/dist/components/Menu/Menu.const.cjs +1 -0
  167. package/dist/components/Menu/Menu.const.d.ts +2 -0
  168. package/dist/components/Menu/Menu.const.js +12 -0
  169. package/dist/components/Menu/Menu.d.ts +3 -9
  170. package/dist/components/Menu/Menu.js +57 -89
  171. package/dist/components/Menu/Menu.types.d.ts +8 -1
  172. package/dist/components/Menu/MenuDivider.cjs +1 -0
  173. package/dist/components/Menu/MenuDivider.d.ts +6 -0
  174. package/dist/components/Menu/MenuDivider.js +7 -0
  175. package/dist/components/Menu/MenuItem.cjs +1 -0
  176. package/dist/components/Menu/MenuItem.d.ts +6 -0
  177. package/dist/components/Menu/MenuItem.js +46 -0
  178. package/dist/components/MessageActions/MessageActions.cjs +1 -0
  179. package/dist/components/MessageActions/MessageActions.const.cjs +1 -0
  180. package/dist/components/MessageActions/MessageActions.const.d.ts +2 -0
  181. package/dist/components/MessageActions/MessageActions.const.js +10 -0
  182. package/dist/components/MessageActions/MessageActions.d.ts +2 -0
  183. package/dist/components/MessageActions/MessageActions.js +31 -0
  184. package/dist/components/MessageActions/MessageActions.types.d.ts +16 -0
  185. package/dist/components/MessageActions/index.d.ts +2 -0
  186. package/dist/components/Modal/Modal.cjs +1 -1
  187. package/dist/components/Modal/Modal.const.cjs +1 -1
  188. package/dist/components/Modal/Modal.const.d.ts +1 -0
  189. package/dist/components/Modal/Modal.const.js +20 -12
  190. package/dist/components/Modal/Modal.js +62 -59
  191. package/dist/components/Modal/Modal.types.d.ts +7 -0
  192. package/dist/components/ModelSelect/ModelSelect.cjs +1 -0
  193. package/dist/components/ModelSelect/ModelSelect.const.cjs +1 -0
  194. package/dist/components/ModelSelect/ModelSelect.const.d.ts +1 -0
  195. package/dist/components/ModelSelect/ModelSelect.const.js +4 -0
  196. package/dist/components/ModelSelect/ModelSelect.d.ts +2 -0
  197. package/dist/components/ModelSelect/ModelSelect.js +41 -0
  198. package/dist/components/ModelSelect/ModelSelect.types.d.ts +16 -0
  199. package/dist/components/ModelSelect/index.d.ts +2 -0
  200. package/dist/components/OverlayPortal/OverlayPortal.const.cjs +1 -1
  201. package/dist/components/OverlayPortal/OverlayPortal.const.js +6 -5
  202. package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
  203. package/dist/components/PasswordInput/PasswordInput.js +5 -5
  204. package/dist/components/Popover/Popover.cjs +1 -1
  205. package/dist/components/Popover/Popover.const.cjs +1 -0
  206. package/dist/components/Popover/Popover.const.d.ts +15 -1
  207. package/dist/components/Popover/Popover.const.js +29 -0
  208. package/dist/components/Popover/Popover.js +77 -73
  209. package/dist/components/Popover/Popover.types.d.ts +7 -0
  210. package/dist/components/PromptComposer/PromptComposer.cjs +1 -0
  211. package/dist/components/PromptComposer/PromptComposer.const.cjs +1 -0
  212. package/dist/components/PromptComposer/PromptComposer.const.d.ts +6 -0
  213. package/dist/components/PromptComposer/PromptComposer.const.js +14 -0
  214. package/dist/components/PromptComposer/PromptComposer.d.ts +2 -0
  215. package/dist/components/PromptComposer/PromptComposer.js +132 -0
  216. package/dist/components/PromptComposer/PromptComposer.types.d.ts +45 -0
  217. package/dist/components/PromptComposer/PromptComposer.utils.cjs +1 -0
  218. package/dist/components/PromptComposer/PromptComposer.utils.d.ts +5 -0
  219. package/dist/components/PromptComposer/PromptComposer.utils.js +16 -0
  220. package/dist/components/PromptComposer/helpers/PromptComposerAttachSvg.cjs +1 -0
  221. package/dist/components/PromptComposer/helpers/PromptComposerAttachSvg.d.ts +1 -0
  222. package/dist/components/PromptComposer/helpers/PromptComposerAttachSvg.js +6 -0
  223. package/dist/components/PromptComposer/helpers/PromptComposerFileChip.cjs +1 -0
  224. package/dist/components/PromptComposer/helpers/PromptComposerFileChip.d.ts +2 -0
  225. package/dist/components/PromptComposer/helpers/PromptComposerFileChip.js +18 -0
  226. package/dist/components/PromptComposer/helpers/PromptComposerSendSvg.cjs +1 -0
  227. package/dist/components/PromptComposer/helpers/PromptComposerSendSvg.d.ts +1 -0
  228. package/dist/components/PromptComposer/helpers/PromptComposerSendSvg.js +9 -0
  229. package/dist/components/PromptComposer/helpers/PromptComposerStopSvg.cjs +1 -0
  230. package/dist/components/PromptComposer/helpers/PromptComposerStopSvg.d.ts +1 -0
  231. package/dist/components/PromptComposer/helpers/PromptComposerStopSvg.js +6 -0
  232. package/dist/components/PromptComposer/helpers/index.d.ts +4 -0
  233. package/dist/components/PromptComposer/index.d.ts +2 -0
  234. package/dist/components/PromptSuggestions/PromptSuggestions.cjs +1 -0
  235. package/dist/components/PromptSuggestions/PromptSuggestions.d.ts +2 -0
  236. package/dist/components/PromptSuggestions/PromptSuggestions.js +39 -0
  237. package/dist/components/PromptSuggestions/PromptSuggestions.types.d.ts +13 -0
  238. package/dist/components/PromptSuggestions/index.d.ts +2 -0
  239. package/dist/components/RichEditor/helpers/IconRender.cjs +1 -1
  240. package/dist/components/RichEditor/helpers/IconRender.js +16 -16
  241. package/dist/components/RichEditor/helpers/toolbarItemRender.cjs +1 -1
  242. package/dist/components/RichEditor/helpers/toolbarItemRender.js +23 -23
  243. package/dist/components/Select/Select.cjs +1 -1
  244. package/dist/components/Select/Select.const.cjs +1 -1
  245. package/dist/components/Select/Select.const.d.ts +1 -0
  246. package/dist/components/Select/Select.const.js +7 -6
  247. package/dist/components/Select/Select.js +110 -105
  248. package/dist/components/Select/helpers/SelectCheckSvg.cjs +1 -0
  249. package/dist/components/Select/helpers/SelectCheckSvg.d.ts +3 -0
  250. package/dist/components/Select/helpers/SelectCheckSvg.js +8 -0
  251. package/dist/components/Select/helpers/SelectChevronDownSvg.cjs +1 -0
  252. package/dist/components/Select/helpers/SelectChevronDownSvg.d.ts +3 -0
  253. package/dist/components/Select/helpers/SelectChevronDownSvg.js +8 -0
  254. package/dist/components/Select/helpers/index.d.ts +2 -0
  255. package/dist/components/Skeleton/Skeleton.cjs +1 -1
  256. package/dist/components/Skeleton/Skeleton.const.cjs +2 -2
  257. package/dist/components/Skeleton/Skeleton.const.js +5 -6
  258. package/dist/components/Skeleton/Skeleton.js +59 -59
  259. package/dist/components/StatCard/StatCard.cjs +1 -1
  260. package/dist/components/StatCard/StatCard.const.cjs +1 -1
  261. package/dist/components/StatCard/StatCard.const.d.ts +0 -7
  262. package/dist/components/StatCard/StatCard.const.js +5 -12
  263. package/dist/components/StatCard/StatCard.d.ts +1 -2
  264. package/dist/components/StatCard/StatCard.js +48 -37
  265. package/dist/components/StatCard/StatCard.utils.cjs +1 -0
  266. package/dist/components/StatCard/StatCard.utils.d.ts +2 -0
  267. package/dist/components/StatCard/StatCard.utils.js +7 -0
  268. package/dist/components/StreamingMessage/StreamingMessage.cjs +1 -0
  269. package/dist/components/StreamingMessage/StreamingMessage.const.cjs +1 -0
  270. package/dist/components/StreamingMessage/StreamingMessage.const.d.ts +5 -0
  271. package/dist/components/StreamingMessage/StreamingMessage.const.js +10 -0
  272. package/dist/components/StreamingMessage/StreamingMessage.d.ts +2 -0
  273. package/dist/components/StreamingMessage/StreamingMessage.js +48 -0
  274. package/dist/components/StreamingMessage/StreamingMessage.types.d.ts +15 -0
  275. package/dist/components/StreamingMessage/index.d.ts +2 -0
  276. package/dist/components/ThemeSwitcher/ThemeSwitcher.cjs +1 -0
  277. package/dist/components/ThemeSwitcher/ThemeSwitcher.const.cjs +1 -0
  278. package/dist/components/ThemeSwitcher/ThemeSwitcher.const.d.ts +7 -0
  279. package/dist/components/ThemeSwitcher/ThemeSwitcher.const.js +14 -0
  280. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +2 -0
  281. package/dist/components/ThemeSwitcher/ThemeSwitcher.js +39 -0
  282. package/dist/components/ThemeSwitcher/ThemeSwitcher.types.d.ts +14 -0
  283. package/dist/components/ThemeSwitcher/index.d.ts +2 -0
  284. package/dist/components/ThinkingBlock/ThinkingBlock.cjs +1 -0
  285. package/dist/components/ThinkingBlock/ThinkingBlock.const.cjs +1 -0
  286. package/dist/components/ThinkingBlock/ThinkingBlock.const.d.ts +4 -0
  287. package/dist/components/ThinkingBlock/ThinkingBlock.const.js +9 -0
  288. package/dist/components/ThinkingBlock/ThinkingBlock.d.ts +2 -0
  289. package/dist/components/ThinkingBlock/ThinkingBlock.js +45 -0
  290. package/dist/components/ThinkingBlock/ThinkingBlock.types.d.ts +16 -0
  291. package/dist/components/ThinkingBlock/index.d.ts +2 -0
  292. package/dist/components/Toast/Toast.cjs +1 -1
  293. package/dist/components/Toast/Toast.const.cjs +1 -1
  294. package/dist/components/Toast/Toast.const.d.ts +2 -0
  295. package/dist/components/Toast/Toast.const.js +11 -8
  296. package/dist/components/Toast/Toast.context.cjs +1 -0
  297. package/dist/components/Toast/Toast.context.d.ts +3 -0
  298. package/dist/components/Toast/Toast.context.js +11 -0
  299. package/dist/components/Toast/Toast.d.ts +4 -3
  300. package/dist/components/Toast/Toast.icons.cjs +1 -0
  301. package/dist/components/Toast/Toast.icons.d.ts +4 -0
  302. package/dist/components/Toast/Toast.icons.js +29 -0
  303. package/dist/components/Toast/Toast.js +32 -160
  304. package/dist/components/Toast/ToastContainer.cjs +1 -0
  305. package/dist/components/Toast/ToastContainer.d.ts +3 -0
  306. package/dist/components/Toast/ToastContainer.js +39 -0
  307. package/dist/components/Toast/ToastItem.cjs +1 -0
  308. package/dist/components/Toast/ToastItem.d.ts +5 -0
  309. package/dist/components/Toast/ToastItem.js +86 -0
  310. package/dist/components/ToggleGroup/ToggleGroup.cjs +1 -0
  311. package/dist/components/ToggleGroup/ToggleGroup.const.cjs +1 -0
  312. package/dist/components/ToggleGroup/ToggleGroup.const.d.ts +15 -0
  313. package/dist/components/ToggleGroup/ToggleGroup.const.js +33 -0
  314. package/dist/components/ToggleGroup/ToggleGroup.context.cjs +1 -0
  315. package/dist/components/ToggleGroup/ToggleGroup.context.d.ts +2 -0
  316. package/dist/components/ToggleGroup/ToggleGroup.context.js +5 -0
  317. package/dist/components/ToggleGroup/ToggleGroup.d.ts +2 -0
  318. package/dist/components/ToggleGroup/ToggleGroup.js +86 -0
  319. package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +48 -0
  320. package/dist/components/ToggleGroup/ToggleGroupItem.cjs +1 -0
  321. package/dist/components/ToggleGroup/ToggleGroupItem.d.ts +2 -0
  322. package/dist/components/ToggleGroup/ToggleGroupItem.js +50 -0
  323. package/dist/components/ToggleGroup/hooks/useToggleGroupContext.cjs +1 -0
  324. package/dist/components/ToggleGroup/hooks/useToggleGroupContext.d.ts +1 -0
  325. package/dist/components/ToggleGroup/hooks/useToggleGroupContext.js +6 -0
  326. package/dist/components/ToggleGroup/index.d.ts +4 -0
  327. package/dist/components/ToolCall/ToolCall.cjs +1 -0
  328. package/dist/components/ToolCall/ToolCall.const.cjs +1 -0
  329. package/dist/components/ToolCall/ToolCall.const.d.ts +5 -0
  330. package/dist/components/ToolCall/ToolCall.const.js +17 -0
  331. package/dist/components/ToolCall/ToolCall.d.ts +2 -0
  332. package/dist/components/ToolCall/ToolCall.js +43 -0
  333. package/dist/components/ToolCall/ToolCall.types.d.ts +20 -0
  334. package/dist/components/ToolCall/index.d.ts +2 -0
  335. package/dist/components/Tooltip/Tooltip.cjs +1 -1
  336. package/dist/components/Tooltip/Tooltip.const.cjs +1 -0
  337. package/dist/components/Tooltip/Tooltip.const.d.ts +8 -0
  338. package/dist/components/Tooltip/Tooltip.const.js +18 -0
  339. package/dist/components/Tooltip/Tooltip.js +59 -61
  340. package/dist/components/Tooltip/Tooltip.types.d.ts +7 -0
  341. package/dist/components/Transition/Transition.const.cjs +1 -1
  342. package/dist/components/Transition/Transition.const.js +12 -6
  343. package/dist/components/Transition/Transition.types.d.ts +1 -1
  344. package/dist/components/index.cjs +1 -1
  345. package/dist/components/index.d.ts +39 -9
  346. package/dist/components/index.js +335 -293
  347. package/dist/constants/generals.const.cjs +1 -1
  348. package/dist/constants/generals.const.d.ts +46 -0
  349. package/dist/constants/generals.const.js +158 -115
  350. package/dist/constants/keys.const.cjs +1 -1
  351. package/dist/constants/keys.const.js +2 -1
  352. package/dist/constants/numbers.const.cjs +1 -1
  353. package/dist/constants/numbers.const.d.ts +10 -0
  354. package/dist/constants/numbers.const.js +64 -53
  355. package/dist/context/BearProvider.cjs +1 -1
  356. package/dist/context/BearProvider.d.ts +19 -44
  357. package/dist/context/BearProvider.js +223 -208
  358. package/dist/context/bearProvider.types.d.ts +4 -0
  359. package/dist/context/index.d.ts +1 -1
  360. package/dist/hooks/index.cjs +1 -1
  361. package/dist/hooks/index.d.ts +2 -0
  362. package/dist/hooks/index.js +6 -4
  363. package/dist/hooks/useFixedAnchorPosition/index.d.ts +1 -1
  364. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.cjs +1 -1
  365. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.d.ts +2 -1
  366. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.js +12 -11
  367. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.types.d.ts +1 -1
  368. package/dist/hooks/useFocusTrap/index.d.ts +2 -0
  369. package/dist/hooks/useFocusTrap/useFocusTrap.cjs +1 -0
  370. package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +3 -0
  371. package/dist/hooks/useFocusTrap/useFocusTrap.js +41 -0
  372. package/dist/hooks/useFocusTrap/useFocusTrap.types.d.ts +8 -0
  373. package/dist/hooks/useFocusTrap/useFocusTrap.utils.cjs +1 -0
  374. package/dist/hooks/useFocusTrap/useFocusTrap.utils.d.ts +1 -0
  375. package/dist/hooks/useFocusTrap/useFocusTrap.utils.js +23 -0
  376. package/dist/index.cjs +1 -1
  377. package/dist/index.js +483 -439
  378. package/dist/styles/_ai-chat.css +487 -0
  379. package/dist/styles/_base.css +2 -0
  380. package/dist/styles/_chart.css +144 -0
  381. package/dist/styles/_effects.css +8 -4
  382. package/dist/styles/_skeleton.css +90 -0
  383. package/dist/styles/main.css +3 -0
  384. package/dist/styles.css +953 -199
  385. package/package.json +1 -1
  386. package/dist/components/FormSkeleton/FormSkeleton.const.cjs +0 -1
  387. package/dist/components/FormSkeleton/FormSkeleton.const.d.ts +0 -5
  388. package/dist/components/FormSkeleton/FormSkeleton.const.js +0 -8
  389. package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.cjs +0 -1
  390. package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.const.cjs +0 -1
  391. package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.const.js +0 -14
  392. package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.js +0 -35
  393. package/dist/node_modules/@forgedevstack/bear-icons/dist/action.cjs +0 -1
  394. package/dist/node_modules/@forgedevstack/bear-icons/dist/action.js +0 -26
  395. package/dist/node_modules/@forgedevstack/bear-icons/dist/cn.utils.cjs +0 -1
  396. package/dist/node_modules/@forgedevstack/bear-icons/dist/cn.utils.js +0 -4
  397. package/dist/node_modules/@forgedevstack/bear-icons/dist/editor.cjs +0 -1
  398. package/dist/node_modules/@forgedevstack/bear-icons/dist/editor.js +0 -130
  399. package/dist/node_modules/@forgedevstack/bear-icons/dist/misc.cjs +0 -1
  400. package/dist/node_modules/@forgedevstack/bear-icons/dist/misc.js +0 -12
  401. package/dist/node_modules/@forgedevstack/bear-icons/dist/navigation.cjs +0 -1
  402. package/dist/node_modules/@forgedevstack/bear-icons/dist/navigation.js +0 -18
  403. package/dist/node_modules/@forgedevstack/bear-icons/dist/status.cjs +0 -1
  404. package/dist/node_modules/@forgedevstack/bear-icons/dist/status.js +0 -6
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),S=require("react"),_=require("../../utils/cn.cjs"),d=require("./Skeleton.const.cjs"),j=require("./Skeleton.utils.cjs"),a=S.forwardRef(({variant:e="text",animation:r="pulse",width:l,height:s,borderRadius:o,count:i=1,gap:u=8,className:n,style:f,testId:k,...N},m)=>{S.useEffect(()=>{r==="wave"&&j.injectStyles()},[r]);const x=c=>{if(c!==void 0)return typeof c=="number"?`${c}px`:c},p={width:x(l),height:x(s)||(e==="text"?d.SKELETON_TEXT_HEIGHT:void 0),borderRadius:o?x(o):void 0,...f},y=_.cn(d.SKELETON_BASE_CLASSES,d.SKELETON_VARIANT_CLASSES[e],d.SKELETON_ANIMATION_CLASSES[r],d.SKELETON_BG_CLASSES,n);return i>1?t.jsx("div",{className:"Bear-Skeleton__group flex flex-col",style:{gap:x(u)},"data-testid":k,children:Array.from({length:i}).map((c,g)=>t.jsx("div",{ref:g===0?m:void 0,className:y,style:p,...N},g))}):t.jsx("div",{ref:m,className:y,style:p,"data-testid":k,...N})});a.displayName="Skeleton";const E=S.forwardRef(({lines:e=3,lastLineWidth:r="80%",gap:l=8,animation:s="pulse",...o},i)=>{S.useEffect(()=>{s==="wave"&&j.injectStyles()},[s]);const u=n=>{if(n!==void 0)return typeof n=="number"?`${n}px`:n};return t.jsx("div",{ref:i,className:"Bear-SkeletonText flex flex-col",style:{gap:u(l)},children:Array.from({length:e}).map((n,f)=>t.jsx(a,{variant:"text",animation:s,width:f===e-1?r:"100%",...o},f))})});E.displayName="SkeletonText";const h=S.forwardRef(({size:e="md",animation:r="pulse",...l},s)=>{const o=typeof e=="number"?e:d.SKELETON_AVATAR_SIZES[e];return t.jsx(a,{ref:s,variant:"circular",animation:r,width:o,height:o,...l})});h.displayName="SkeletonAvatar";const A=S.forwardRef(({animation:e="pulse",className:r,...l},s)=>t.jsxs("div",{ref:s,className:_.cn("Bear-SkeletonCard p-4 rounded-lg border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-900",r),...l,children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx(h,{animation:e}),t.jsxs("div",{className:"flex-1",children:[t.jsx(a,{animation:e,width:"60%",height:16,className:"mb-2"}),t.jsx(a,{animation:e,width:"40%",height:12})]})]}),t.jsx(E,{animation:e,lines:3})]}));A.displayName="SkeletonCard";exports.Skeleton=a;exports.SkeletonAvatar=h;exports.SkeletonCard=A;exports.SkeletonText=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),d=require("react"),j=require("../../utils/cn.cjs"),S=require("./Skeleton.const.cjs"),A=require("./Skeleton.utils.cjs"),c=d.forwardRef(({variant:e="text",animation:r="pulse",width:l,height:s,borderRadius:o,count:i=1,gap:u=8,className:n,style:f,testId:p,...N},y)=>{d.useEffect(()=>{r==="wave"&&A.injectStyles()},[r]);const x=a=>{if(a!==void 0)return typeof a=="number"?`${a}px`:a},E={width:x(l),height:x(s)||(e==="text"?S.SKELETON_TEXT_HEIGHT:void 0),borderRadius:o?x(o):void 0,...f},g=j.cn(S.SKELETON_BASE_CLASSES,S.SKELETON_VARIANT_CLASSES[e],r==="pulse"&&"Bear-Skeleton--pulse",S.SKELETON_ANIMATION_CLASSES[r],n);return i>1?t.jsx("div",{className:"Bear-Skeleton__group flex flex-col",style:{gap:x(u)},"data-testid":p,children:Array.from({length:i}).map((a,m)=>t.jsx("div",{ref:m===0?y:void 0,className:g,style:E,...N},m))}):t.jsx("div",{ref:y,className:g,style:E,"data-testid":p,...N})});c.displayName="Skeleton";const k=d.forwardRef(({lines:e=3,lastLineWidth:r="80%",gap:l=8,animation:s="pulse",...o},i)=>{d.useEffect(()=>{s==="wave"&&A.injectStyles()},[s]);const u=n=>{if(n!==void 0)return typeof n=="number"?`${n}px`:n};return t.jsx("div",{ref:i,className:"Bear-SkeletonText flex flex-col",style:{gap:u(l)},children:Array.from({length:e}).map((n,f)=>t.jsx(c,{variant:"text",animation:s,width:f===e-1?r:"100%",...o},f))})});k.displayName="SkeletonText";const h=d.forwardRef(({size:e="md",animation:r="pulse",...l},s)=>{const o=typeof e=="number"?e:S.SKELETON_AVATAR_SIZES[e];return t.jsx(c,{ref:s,variant:"circular",animation:r,width:o,height:o,...l})});h.displayName="SkeletonAvatar";const T=d.forwardRef(({animation:e="pulse",className:r,...l},s)=>t.jsxs("div",{ref:s,className:j.cn("Bear-SkeletonCard p-4 rounded-lg border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-900",r),...l,children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx(h,{animation:e}),t.jsxs("div",{className:"flex-1",children:[t.jsx(c,{animation:e,width:"60%",height:16,className:"mb-2"}),t.jsx(c,{animation:e,width:"40%",height:12})]})]}),t.jsx(k,{animation:e,lines:3})]}));T.displayName="SkeletonCard";exports.Skeleton=c;exports.SkeletonAvatar=h;exports.SkeletonCard=T;exports.SkeletonText=k;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Bear-Skeleton relative overflow-hidden",n={text:"rounded",circular:"rounded-full",rectangular:"rounded-none",rounded:"rounded-lg"},a={pulse:"animate-pulse",wave:"Bear-Skeleton--wave",none:""},r="bg-gray-200 dark:bg-zinc-700",S=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Bear-Skeleton relative overflow-hidden",n={text:"rounded",circular:"rounded-full",rectangular:"rounded-none",rounded:"rounded-lg"},a={pulse:"animate-pulse",wave:"Bear-Skeleton--wave",none:""},r=`
2
2
  @keyframes Bear-Skeleton-wave {
3
3
  0% {
4
4
  transform: translateX(-100%);
@@ -33,4 +33,4 @@
33
33
  transparent
34
34
  );
35
35
  }
36
- `,t="1em",E={sm:32,md:40,lg:56};exports.SKELETON_ANIMATION_CLASSES=a;exports.SKELETON_AVATAR_SIZES=E;exports.SKELETON_BASE_CLASSES=e;exports.SKELETON_BG_CLASSES=r;exports.SKELETON_TEXT_HEIGHT=t;exports.SKELETON_VARIANT_CLASSES=n;exports.SKELETON_WAVE_STYLES=S;
36
+ `,t="1em",S={sm:32,md:40,lg:56};exports.SKELETON_ANIMATION_CLASSES=a;exports.SKELETON_AVATAR_SIZES=S;exports.SKELETON_BASE_CLASSES=e;exports.SKELETON_TEXT_HEIGHT=t;exports.SKELETON_VARIANT_CLASSES=n;exports.SKELETON_WAVE_STYLES=r;
@@ -7,7 +7,7 @@ const e = "Bear-Skeleton relative overflow-hidden", n = {
7
7
  pulse: "animate-pulse",
8
8
  wave: "Bear-Skeleton--wave",
9
9
  none: ""
10
- }, r = "bg-gray-200 dark:bg-zinc-700", t = `
10
+ }, r = `
11
11
  @keyframes Bear-Skeleton-wave {
12
12
  0% {
13
13
  transform: translateX(-100%);
@@ -42,17 +42,16 @@ const e = "Bear-Skeleton relative overflow-hidden", n = {
42
42
  transparent
43
43
  );
44
44
  }
45
- `, o = "1em", S = {
45
+ `, t = "1em", o = {
46
46
  sm: 32,
47
47
  md: 40,
48
48
  lg: 56
49
49
  };
50
50
  export {
51
51
  a as SKELETON_ANIMATION_CLASSES,
52
- S as SKELETON_AVATAR_SIZES,
52
+ o as SKELETON_AVATAR_SIZES,
53
53
  e as SKELETON_BASE_CLASSES,
54
- r as SKELETON_BG_CLASSES,
55
- o as SKELETON_TEXT_HEIGHT,
54
+ t as SKELETON_TEXT_HEIGHT,
56
55
  n as SKELETON_VARIANT_CLASSES,
57
- t as SKELETON_WAVE_STYLES
56
+ r as SKELETON_WAVE_STYLES
58
57
  };
@@ -1,88 +1,88 @@
1
- import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
- import { forwardRef as m, useEffect as _ } from "react";
3
- import { cn as k } from "../../utils/cn.js";
4
- import { SKELETON_BG_CLASSES as v, SKELETON_ANIMATION_CLASSES as b, SKELETON_VARIANT_CLASSES as L, SKELETON_BASE_CLASSES as w, SKELETON_TEXT_HEIGHT as C, SKELETON_AVATAR_SIZES as O } from "./Skeleton.const.js";
5
- import { injectStyles as x } from "./Skeleton.utils.js";
6
- const S = m(
1
+ import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
+ import { forwardRef as m, useEffect as u } from "react";
3
+ import { cn as x } from "../../utils/cn.js";
4
+ import { SKELETON_ANIMATION_CLASSES as v, SKELETON_VARIANT_CLASSES as b, SKELETON_BASE_CLASSES as w, SKELETON_TEXT_HEIGHT as L, SKELETON_AVATAR_SIZES as C } from "./Skeleton.const.js";
5
+ import { injectStyles as A } from "./Skeleton.utils.js";
6
+ const a = m(
7
7
  ({
8
8
  variant: e = "text",
9
- animation: r = "pulse",
9
+ animation: t = "pulse",
10
10
  width: s,
11
11
  height: l,
12
12
  borderRadius: o,
13
- count: a = 1,
14
- gap: p = 8,
13
+ count: S = 1,
14
+ gap: f = 8,
15
15
  className: d,
16
16
  style: n,
17
17
  testId: h,
18
- ...E
19
- }, N) => {
20
- _(() => {
21
- r === "wave" && x();
22
- }, [r]);
18
+ ...N
19
+ }, E) => {
20
+ u(() => {
21
+ t === "wave" && A();
22
+ }, [t]);
23
23
  const c = (i) => {
24
24
  if (i !== void 0)
25
25
  return typeof i == "number" ? `${i}px` : i;
26
26
  }, g = {
27
27
  width: c(s),
28
- height: c(l) || (e === "text" ? C : void 0),
28
+ height: c(l) || (e === "text" ? L : void 0),
29
29
  borderRadius: o ? c(o) : void 0,
30
30
  ...n
31
- }, y = k(
31
+ }, k = x(
32
32
  w,
33
- L[e],
34
- b[r],
35
- v,
33
+ b[e],
34
+ t === "pulse" && "Bear-Skeleton--pulse",
35
+ v[t],
36
36
  d
37
37
  );
38
- return a > 1 ? /* @__PURE__ */ t(
38
+ return S > 1 ? /* @__PURE__ */ r(
39
39
  "div",
40
40
  {
41
41
  className: "Bear-Skeleton__group flex flex-col",
42
- style: { gap: c(p) },
42
+ style: { gap: c(f) },
43
43
  "data-testid": h,
44
- children: Array.from({ length: a }).map((i, A) => /* @__PURE__ */ t(
44
+ children: Array.from({ length: S }).map((i, y) => /* @__PURE__ */ r(
45
45
  "div",
46
46
  {
47
- ref: A === 0 ? N : void 0,
48
- className: y,
47
+ ref: y === 0 ? E : void 0,
48
+ className: k,
49
49
  style: g,
50
- ...E
50
+ ...N
51
51
  },
52
- A
52
+ y
53
53
  ))
54
54
  }
55
- ) : /* @__PURE__ */ t(
55
+ ) : /* @__PURE__ */ r(
56
56
  "div",
57
57
  {
58
- ref: N,
59
- className: y,
58
+ ref: E,
59
+ className: k,
60
60
  style: g,
61
61
  "data-testid": h,
62
- ...E
62
+ ...N
63
63
  }
64
64
  );
65
65
  }
66
66
  );
67
- S.displayName = "Skeleton";
67
+ a.displayName = "Skeleton";
68
68
  const T = m(
69
- ({ lines: e = 3, lastLineWidth: r = "80%", gap: s = 8, animation: l = "pulse", ...o }, a) => (_(() => {
70
- l === "wave" && x();
71
- }, [l]), /* @__PURE__ */ t(
69
+ ({ lines: e = 3, lastLineWidth: t = "80%", gap: s = 8, animation: l = "pulse", ...o }, S) => (u(() => {
70
+ l === "wave" && A();
71
+ }, [l]), /* @__PURE__ */ r(
72
72
  "div",
73
73
  {
74
- ref: a,
74
+ ref: S,
75
75
  className: "Bear-SkeletonText flex flex-col",
76
76
  style: { gap: ((d) => {
77
77
  if (d !== void 0)
78
78
  return typeof d == "number" ? `${d}px` : d;
79
79
  })(s) },
80
- children: Array.from({ length: e }).map((d, n) => /* @__PURE__ */ t(
81
- S,
80
+ children: Array.from({ length: e }).map((d, n) => /* @__PURE__ */ r(
81
+ a,
82
82
  {
83
83
  variant: "text",
84
84
  animation: l,
85
- width: n === e - 1 ? r : "100%",
85
+ width: n === e - 1 ? t : "100%",
86
86
  ...o
87
87
  },
88
88
  n
@@ -91,15 +91,15 @@ const T = m(
91
91
  ))
92
92
  );
93
93
  T.displayName = "SkeletonText";
94
- const u = m(
95
- ({ size: e = "md", animation: r = "pulse", ...s }, l) => {
96
- const o = typeof e == "number" ? e : O[e];
97
- return /* @__PURE__ */ t(
98
- S,
94
+ const _ = m(
95
+ ({ size: e = "md", animation: t = "pulse", ...s }, l) => {
96
+ const o = typeof e == "number" ? e : C[e];
97
+ return /* @__PURE__ */ r(
98
+ a,
99
99
  {
100
100
  ref: l,
101
101
  variant: "circular",
102
- animation: r,
102
+ animation: t,
103
103
  width: o,
104
104
  height: o,
105
105
  ...s
@@ -107,34 +107,34 @@ const u = m(
107
107
  );
108
108
  }
109
109
  );
110
- u.displayName = "SkeletonAvatar";
111
- const K = m(
112
- ({ animation: e = "pulse", className: r, ...s }, l) => /* @__PURE__ */ f(
110
+ _.displayName = "SkeletonAvatar";
111
+ const O = m(
112
+ ({ animation: e = "pulse", className: t, ...s }, l) => /* @__PURE__ */ p(
113
113
  "div",
114
114
  {
115
115
  ref: l,
116
- className: k(
116
+ className: x(
117
117
  "Bear-SkeletonCard p-4 rounded-lg border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-900",
118
- r
118
+ t
119
119
  ),
120
120
  ...s,
121
121
  children: [
122
- /* @__PURE__ */ f("div", { className: "flex items-center gap-3 mb-4", children: [
123
- /* @__PURE__ */ t(u, { animation: e }),
124
- /* @__PURE__ */ f("div", { className: "flex-1", children: [
125
- /* @__PURE__ */ t(S, { animation: e, width: "60%", height: 16, className: "mb-2" }),
126
- /* @__PURE__ */ t(S, { animation: e, width: "40%", height: 12 })
122
+ /* @__PURE__ */ p("div", { className: "flex items-center gap-3 mb-4", children: [
123
+ /* @__PURE__ */ r(_, { animation: e }),
124
+ /* @__PURE__ */ p("div", { className: "flex-1", children: [
125
+ /* @__PURE__ */ r(a, { animation: e, width: "60%", height: 16, className: "mb-2" }),
126
+ /* @__PURE__ */ r(a, { animation: e, width: "40%", height: 12 })
127
127
  ] })
128
128
  ] }),
129
- /* @__PURE__ */ t(T, { animation: e, lines: 3 })
129
+ /* @__PURE__ */ r(T, { animation: e, lines: 3 })
130
130
  ]
131
131
  }
132
132
  )
133
133
  );
134
- K.displayName = "SkeletonCard";
134
+ O.displayName = "SkeletonCard";
135
135
  export {
136
- S as Skeleton,
137
- u as SkeletonAvatar,
138
- K as SkeletonCard,
136
+ a as Skeleton,
137
+ _ as SkeletonAvatar,
138
+ O as SkeletonCard,
139
139
  T as SkeletonText
140
140
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),D=require("../../utils/cn.cjs");require("react");const o=require("../../utils/generateBearId.utils.cjs"),R=require("../../utils/useBearId.cjs"),e=require("./StatCard.const.cjs"),L=({title:_,value:a,color:s=e.DEFAULT_STAT_CARD_COLOR,icon:T,onClick:t,className:S,id:d,testId:n,...i})=>{const u=R.useBearId("StatCard"),C=o.resolveBearId(d,u),c=`linear-gradient(135deg, ${s}${e.STAT_CARD_GRADIENT_START_ALPHA}, ${s}${e.STAT_CARD_GRADIENT_END_ALPHA})`;return A.jsxs("div",{id:C,"data-testid":n,role:t?"button":void 0,tabIndex:t?0:void 0,className:D.cn(e.STAT_CARD_ROOT_CLASS,e.STAT_CARD_BASE_CLASSES,S),style:{background:c},onClick:t,onKeyDown:r=>{t&&(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),t())},...i,children:[A.jsx("div",{className:e.STAT_CARD_DECORATION_CLASS,"aria-hidden":!0}),A.jsxs("div",{className:e.STAT_CARD_BODY_CLASS,children:[A.jsx("p",{className:e.STAT_CARD_TITLE_CLASS,children:_}),A.jsx("p",{className:e.STAT_CARD_VALUE_CLASS,children:a}),t&&A.jsxs("button",{type:"button",className:e.STAT_CARD_ACTION_CLASS,children:[T,e.DEFAULT_STAT_CARD_ACTION_LABEL]})]})]})};exports.StatCard=L;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),y=require("../../utils/cn.cjs");require("react");const B=require("../../utils/generateBearId.utils.cjs"),g=require("../../utils/useBearId.cjs"),h=require("../Button/Button.cjs"),o=require("../Typography/Typography.cjs"),a=require("./StatCard.const.cjs"),m=require("./StatCard.utils.cjs"),p=n=>{const{title:d,value:i,color:s=a.DEFAULT_STAT_CARD_COLOR,icon:c,onClick:e,className:l,id:_,testId:u,...C}=n,A=g.useBearId("StatCard"),S=B.resolveBearId(_,A),T=`linear-gradient(135deg, ${s}${a.STAT_CARD_GRADIENT_START_ALPHA}, ${s}${a.STAT_CARD_GRADIENT_END_ALPHA})`;return t.jsxs("div",{id:S,"data-testid":u,role:e?"button":void 0,tabIndex:e?0:void 0,className:y.cn("Bear-StatCard",l),style:{background:T},onClick:e,onKeyDown:r=>m.handleStatCardKeyDown(r,e),...C,children:[t.jsx("div",{className:"Bear-StatCard__decoration","aria-hidden":!0}),t.jsxs("div",{className:"Bear-StatCard__body",children:[t.jsx(o.Typography,{className:"Bear-StatCard__title",children:d}),t.jsx(o.Typography,{className:"Bear-StatCard__value",children:i}),e&&t.jsx(h.Button,{type:"button",size:"sm",variant:"ghost",className:"Bear-StatCard__action",icon:c,onClick:r=>{r.stopPropagation(),e()},children:a.DEFAULT_STAT_CARD_ACTION_LABEL})]})]})};exports.StatCard=p;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Bear-StatCard",A="bear-relative bear-overflow-hidden bear-rounded-2xl bear-p-6 bear-transition-transform hover:bear-scale-105 bear-cursor-pointer bear-border bear-border-[var(--bear-border-default)]",r="Bear-StatCard__decoration bear-absolute bear-top-0 bear-right-0 bear-w-32 bear-h-32 -bear-mr-8 -bear-mt-8 bear-rounded-full bear-opacity-20 bear-bg-white",_="Bear-StatCard__body bear-relative bear-z-10",a="Bear-StatCard__title bear-text-white/80 bear-text-sm bear-font-medium bear-mb-1",t="Bear-StatCard__value bear-text-white bear-text-3xl bear-font-bold bear-mb-4",T="Bear-StatCard__action bear-flex bear-items-center bear-gap-2 bear-px-4 bear-py-1.5 bear-bg-white/20 hover:bear-bg-white/30 bear-rounded-full bear-text-white bear-text-sm bear-font-medium bear-transition-colors bear-border-0",S="#6366f1",b="dd",C="99",o="View All";exports.DEFAULT_STAT_CARD_ACTION_LABEL=o;exports.DEFAULT_STAT_CARD_COLOR=S;exports.STAT_CARD_ACTION_CLASS=T;exports.STAT_CARD_BASE_CLASSES=A;exports.STAT_CARD_BODY_CLASS=_;exports.STAT_CARD_DECORATION_CLASS=r;exports.STAT_CARD_GRADIENT_END_ALPHA=C;exports.STAT_CARD_GRADIENT_START_ALPHA=b;exports.STAT_CARD_ROOT_CLASS=e;exports.STAT_CARD_TITLE_CLASS=a;exports.STAT_CARD_VALUE_CLASS=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A="#6366f1",T="dd",_="99",D="View All";exports.DEFAULT_STAT_CARD_ACTION_LABEL=D;exports.DEFAULT_STAT_CARD_COLOR=A;exports.STAT_CARD_GRADIENT_END_ALPHA=_;exports.STAT_CARD_GRADIENT_START_ALPHA=T;
@@ -1,10 +1,3 @@
1
- export declare const STAT_CARD_ROOT_CLASS = "Bear-StatCard";
2
- export declare const STAT_CARD_BASE_CLASSES = "bear-relative bear-overflow-hidden bear-rounded-2xl bear-p-6 bear-transition-transform hover:bear-scale-105 bear-cursor-pointer bear-border bear-border-[var(--bear-border-default)]";
3
- export declare const STAT_CARD_DECORATION_CLASS = "Bear-StatCard__decoration bear-absolute bear-top-0 bear-right-0 bear-w-32 bear-h-32 -bear-mr-8 -bear-mt-8 bear-rounded-full bear-opacity-20 bear-bg-white";
4
- export declare const STAT_CARD_BODY_CLASS = "Bear-StatCard__body bear-relative bear-z-10";
5
- export declare const STAT_CARD_TITLE_CLASS = "Bear-StatCard__title bear-text-white/80 bear-text-sm bear-font-medium bear-mb-1";
6
- export declare const STAT_CARD_VALUE_CLASS = "Bear-StatCard__value bear-text-white bear-text-3xl bear-font-bold bear-mb-4";
7
- export declare const STAT_CARD_ACTION_CLASS = "Bear-StatCard__action bear-flex bear-items-center bear-gap-2 bear-px-4 bear-py-1.5 bear-bg-white/20 hover:bear-bg-white/30 bear-rounded-full bear-text-white bear-text-sm bear-font-medium bear-transition-colors bear-border-0";
8
1
  export declare const DEFAULT_STAT_CARD_COLOR = "#6366f1";
9
2
  export declare const STAT_CARD_GRADIENT_START_ALPHA = "dd";
10
3
  export declare const STAT_CARD_GRADIENT_END_ALPHA = "99";
@@ -1,14 +1,7 @@
1
- const e = "Bear-StatCard", r = "bear-relative bear-overflow-hidden bear-rounded-2xl bear-p-6 bear-transition-transform hover:bear-scale-105 bear-cursor-pointer bear-border bear-border-[var(--bear-border-default)]", a = "Bear-StatCard__decoration bear-absolute bear-top-0 bear-right-0 bear-w-32 bear-h-32 -bear-mr-8 -bear-mt-8 bear-rounded-full bear-opacity-20 bear-bg-white", t = "Bear-StatCard__body bear-relative bear-z-10", b = "Bear-StatCard__title bear-text-white/80 bear-text-sm bear-font-medium bear-mb-1", _ = "Bear-StatCard__value bear-text-white bear-text-3xl bear-font-bold bear-mb-4", A = "Bear-StatCard__action bear-flex bear-items-center bear-gap-2 bear-px-4 bear-py-1.5 bear-bg-white/20 hover:bear-bg-white/30 bear-rounded-full bear-text-white bear-text-sm bear-font-medium bear-transition-colors bear-border-0", o = "#6366f1", S = "dd", T = "99", C = "View All";
1
+ const A = "#6366f1", T = "dd", _ = "99", D = "View All";
2
2
  export {
3
- C as DEFAULT_STAT_CARD_ACTION_LABEL,
4
- o as DEFAULT_STAT_CARD_COLOR,
5
- A as STAT_CARD_ACTION_CLASS,
6
- r as STAT_CARD_BASE_CLASSES,
7
- t as STAT_CARD_BODY_CLASS,
8
- a as STAT_CARD_DECORATION_CLASS,
9
- T as STAT_CARD_GRADIENT_END_ALPHA,
10
- S as STAT_CARD_GRADIENT_START_ALPHA,
11
- e as STAT_CARD_ROOT_CLASS,
12
- b as STAT_CARD_TITLE_CLASS,
13
- _ as STAT_CARD_VALUE_CLASS
3
+ D as DEFAULT_STAT_CARD_ACTION_LABEL,
4
+ A as DEFAULT_STAT_CARD_COLOR,
5
+ _ as STAT_CARD_GRADIENT_END_ALPHA,
6
+ T as STAT_CARD_GRADIENT_START_ALPHA
14
7
  };
@@ -1,3 +1,2 @@
1
- import { FC } from 'react';
2
1
  import { StatCardProps } from './StatCard.types';
3
- export declare const StatCard: FC<StatCardProps>;
2
+ export declare const StatCard: (props: StatCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,49 +1,60 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { cn as n } from "../../utils/cn.js";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
+ import { cn as S } from "../../utils/cn.js";
3
3
  import "react";
4
- import { resolveBearId as R } from "../../utils/generateBearId.utils.js";
5
- import { useBearId as L } from "../../utils/useBearId.js";
6
- import { DEFAULT_STAT_CARD_COLOR as E, STAT_CARD_GRADIENT_START_ALPHA as N, STAT_CARD_GRADIENT_END_ALPHA as c, STAT_CARD_DECORATION_CLASS as p, STAT_CARD_BODY_CLASS as I, STAT_CARD_TITLE_CLASS as l, STAT_CARD_VALUE_CLASS as u, DEFAULT_STAT_CARD_ACTION_LABEL as O, STAT_CARD_ACTION_CLASS as f, STAT_CARD_BASE_CLASSES as h, STAT_CARD_ROOT_CLASS as b } from "./StatCard.const.js";
7
- const U = ({
8
- title: t,
9
- value: S,
10
- color: T = E,
11
- icon: a,
12
- onClick: A,
13
- className: d,
14
- id: s,
15
- testId: o,
16
- ...D
17
- }) => {
18
- const i = L("StatCard"), C = R(s, i), m = `linear-gradient(135deg, ${T}${N}, ${T}${c})`;
4
+ import { resolveBearId as D } from "../../utils/generateBearId.utils.js";
5
+ import { useBearId as N } from "../../utils/useBearId.js";
6
+ import { Button as h } from "../Button/Button.js";
7
+ import { Typography as d } from "../Typography/Typography.js";
8
+ import { DEFAULT_STAT_CARD_COLOR as B, STAT_CARD_GRADIENT_START_ALPHA as u, STAT_CARD_GRADIENT_END_ALPHA as v, DEFAULT_STAT_CARD_ACTION_LABEL as I } from "./StatCard.const.js";
9
+ import { handleStatCardKeyDown as f } from "./StatCard.utils.js";
10
+ const k = (i) => {
11
+ const {
12
+ title: n,
13
+ value: s,
14
+ color: o = B,
15
+ icon: m,
16
+ onClick: t,
17
+ className: c,
18
+ id: l,
19
+ testId: _,
20
+ ...A
21
+ } = i, C = N("StatCard"), p = D(l, C), T = `linear-gradient(135deg, ${o}${u}, ${o}${v})`;
19
22
  return /* @__PURE__ */ e(
20
23
  "div",
21
24
  {
22
- id: C,
23
- "data-testid": o,
24
- role: A ? "button" : void 0,
25
- tabIndex: A ? 0 : void 0,
26
- className: n(b, h, d),
27
- style: { background: m },
28
- onClick: A,
29
- onKeyDown: (_) => {
30
- A && (_.key === "Enter" || _.key === " ") && (_.preventDefault(), A());
31
- },
32
- ...D,
25
+ id: p,
26
+ "data-testid": _,
27
+ role: t ? "button" : void 0,
28
+ tabIndex: t ? 0 : void 0,
29
+ className: S("Bear-StatCard", c),
30
+ style: { background: T },
31
+ onClick: t,
32
+ onKeyDown: (r) => f(r, t),
33
+ ...A,
33
34
  children: [
34
- /* @__PURE__ */ r("div", { className: p, "aria-hidden": !0 }),
35
- /* @__PURE__ */ e("div", { className: I, children: [
36
- /* @__PURE__ */ r("p", { className: l, children: t }),
37
- /* @__PURE__ */ r("p", { className: u, children: S }),
38
- A && /* @__PURE__ */ e("button", { type: "button", className: f, children: [
39
- a,
40
- O
41
- ] })
35
+ /* @__PURE__ */ a("div", { className: "Bear-StatCard__decoration", "aria-hidden": !0 }),
36
+ /* @__PURE__ */ e("div", { className: "Bear-StatCard__body", children: [
37
+ /* @__PURE__ */ a(d, { className: "Bear-StatCard__title", children: n }),
38
+ /* @__PURE__ */ a(d, { className: "Bear-StatCard__value", children: s }),
39
+ t && /* @__PURE__ */ a(
40
+ h,
41
+ {
42
+ type: "button",
43
+ size: "sm",
44
+ variant: "ghost",
45
+ className: "Bear-StatCard__action",
46
+ icon: m,
47
+ onClick: (r) => {
48
+ r.stopPropagation(), t();
49
+ },
50
+ children: I
51
+ }
52
+ )
42
53
  ] })
43
54
  ]
44
55
  }
45
56
  );
46
57
  };
47
58
  export {
48
- U as StatCard
59
+ k as StatCard
49
60
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../constants/keys.const.cjs"),a=(e,t)=>{t&&(e.key!==r.KEY_ENTER&&e.key!==r.KEY_SPACE||(e.preventDefault(),t()))};exports.handleStatCardKeyDown=a;
@@ -0,0 +1,2 @@
1
+ import { KeyboardEvent } from 'react';
2
+ export declare const handleStatCardKeyDown: (event: KeyboardEvent<HTMLDivElement>, onClick?: () => void) => void;
@@ -0,0 +1,7 @@
1
+ import { KEY_ENTER as e, KEY_SPACE as E } from "../../constants/keys.const.js";
2
+ const f = (r, t) => {
3
+ t && (r.key !== e && r.key !== E || (r.preventDefault(), t()));
4
+ };
5
+ export {
6
+ f as handleStatCardKeyDown
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../constants/generals.const.cjs"),N=require("../../utils/cn.cjs");require("react");const m=require("../../utils/generateBearId.utils.cjs"),I=require("../../utils/useBearId.cjs"),B=require("../../utils/liveRegion.utils.cjs"),n=require("../Box/Box.cjs"),i=require("../Typography/Typography.cjs"),s=require("./StreamingMessage.const.cjs"),p=o=>{const{id:c,testId:S,content:r,isStreaming:t=s.STREAMING_MESSAGE_DEFAULT_STREAMING,sender:g=s.STREAMING_MESSAGE_DEFAULT_SENDER,live:E=s.STREAMING_MESSAGE_DEFAULT_LIVE,translations:_,className:d}=o,l=I.useBearId(a.COMPONENT_NAME_STREAMING_MESSAGE),u=m.resolveBearId(c,l),M={...s.STREAMING_MESSAGE_DEFAULT_TRANSLATIONS,..._},A=E&&t?B.getBearLiveRegionProps("info"):{},T=typeof r=="string"?r:void 0;return e.jsxs(n.Box,{id:u,"data-testid":S,className:N.cn("Bear-StreamingMessage",`Bear-StreamingMessage--${g}`,d),...A,children:[e.jsxs(i.Typography,{variant:"body2",children:[r,t&&e.jsx(n.Box,{as:"span",className:"Bear-StreamingMessage__cursor","aria-hidden":a.BOOLEAN_FALSE})]}),t&&T&&e.jsx(i.Typography,{variant:"caption",className:"Bear-StreamingMessage__status",children:M.streamingLabel})]})};exports.StreamingMessage=p;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../../constants/generals.const.cjs"),S={streamingLabel:"Streaming"},A="assistant",_=E.BOOLEAN_FALSE,T=E.BOOLEAN_TRUE;exports.STREAMING_MESSAGE_DEFAULT_LIVE=T;exports.STREAMING_MESSAGE_DEFAULT_SENDER=A;exports.STREAMING_MESSAGE_DEFAULT_STREAMING=_;exports.STREAMING_MESSAGE_DEFAULT_TRANSLATIONS=S;
@@ -0,0 +1,5 @@
1
+ import { StreamingMessageSender, StreamingMessageTranslations } from './StreamingMessage.types';
2
+ export declare const STREAMING_MESSAGE_DEFAULT_TRANSLATIONS: StreamingMessageTranslations;
3
+ export declare const STREAMING_MESSAGE_DEFAULT_SENDER: StreamingMessageSender;
4
+ export declare const STREAMING_MESSAGE_DEFAULT_STREAMING = false;
5
+ export declare const STREAMING_MESSAGE_DEFAULT_LIVE = true;
@@ -0,0 +1,10 @@
1
+ import { BOOLEAN_FALSE as E, BOOLEAN_TRUE as A } from "../../constants/generals.const.js";
2
+ const _ = {
3
+ streamingLabel: "Streaming"
4
+ }, T = "assistant", t = E, L = A;
5
+ export {
6
+ L as STREAMING_MESSAGE_DEFAULT_LIVE,
7
+ T as STREAMING_MESSAGE_DEFAULT_SENDER,
8
+ t as STREAMING_MESSAGE_DEFAULT_STREAMING,
9
+ _ as STREAMING_MESSAGE_DEFAULT_TRANSLATIONS
10
+ };
@@ -0,0 +1,2 @@
1
+ import { StreamingMessageProps } from './StreamingMessage.types';
2
+ export declare const StreamingMessage: (props: StreamingMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,48 @@
1
+ import { jsxs as t, jsx as s } from "react/jsx-runtime";
2
+ import { COMPONENT_NAME_STREAMING_MESSAGE as N, BOOLEAN_FALSE as T } from "../../constants/generals.const.js";
3
+ import { cn as l } from "../../utils/cn.js";
4
+ import "react";
5
+ import { resolveBearId as I } from "../../utils/generateBearId.utils.js";
6
+ import { useBearId as f } from "../../utils/useBearId.js";
7
+ import { getBearLiveRegionProps as G } from "../../utils/liveRegion.utils.js";
8
+ import { Box as a } from "../Box/Box.js";
9
+ import { Typography as o } from "../Typography/Typography.js";
10
+ import { STREAMING_MESSAGE_DEFAULT_STREAMING as L, STREAMING_MESSAGE_DEFAULT_SENDER as B, STREAMING_MESSAGE_DEFAULT_LIVE as R, STREAMING_MESSAGE_DEFAULT_TRANSLATIONS as v } from "./StreamingMessage.const.js";
11
+ const j = (i) => {
12
+ const {
13
+ id: n,
14
+ testId: m,
15
+ content: e,
16
+ isStreaming: r = L,
17
+ sender: E = B,
18
+ live: S = R,
19
+ translations: A,
20
+ className: _
21
+ } = i, c = f(N), d = I(n, c), p = { ...v, ...A }, M = S && r ? G("info") : {}, g = typeof e == "string" ? e : void 0;
22
+ return /* @__PURE__ */ t(
23
+ a,
24
+ {
25
+ id: d,
26
+ "data-testid": m,
27
+ className: l("Bear-StreamingMessage", `Bear-StreamingMessage--${E}`, _),
28
+ ...M,
29
+ children: [
30
+ /* @__PURE__ */ t(o, { variant: "body2", children: [
31
+ e,
32
+ r && /* @__PURE__ */ s(
33
+ a,
34
+ {
35
+ as: "span",
36
+ className: "Bear-StreamingMessage__cursor",
37
+ "aria-hidden": T
38
+ }
39
+ )
40
+ ] }),
41
+ r && g && /* @__PURE__ */ s(o, { variant: "caption", className: "Bear-StreamingMessage__status", children: p.streamingLabel })
42
+ ]
43
+ }
44
+ );
45
+ };
46
+ export {
47
+ j as StreamingMessage
48
+ };
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export type StreamingMessageSender = 'user' | 'assistant' | 'bot' | 'system';
3
+ export interface StreamingMessageTranslations {
4
+ streamingLabel: string;
5
+ }
6
+ export interface StreamingMessageProps {
7
+ id?: string;
8
+ testId?: string;
9
+ content: ReactNode;
10
+ isStreaming?: boolean;
11
+ sender?: StreamingMessageSender;
12
+ live?: boolean;
13
+ translations?: Partial<StreamingMessageTranslations>;
14
+ className?: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ export { StreamingMessage } from './StreamingMessage';
2
+ export type { StreamingMessageProps, StreamingMessageSender, StreamingMessageTranslations, } from './StreamingMessage.types';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),I=require("../../constants/generals.const.cjs"),_=require("../../utils/cn.cjs");require("react");const q=require("../../utils/generateBearId.utils.cjs"),v=require("../../utils/useBearId.cjs"),B=require("../../context/BearProvider.cjs"),g=require("../Button/Button.cjs"),N=require("../Flex/Flex.cjs"),c=require("./ThemeSwitcher.const.cjs"),C=n=>{const{id:a,testId:o,value:t,onChange:r,translations:i,className:l}=n,u=v.useBearId(I.COMPONENT_NAME_THEME_SWITCHER),d=q.resolveBearId(a,u),{colorScheme:T,setColorScheme:S}=B.useBear(),h=t??T,m={...c.THEME_SWITCHER_DEFAULT_TRANSLATIONS,...i},E=e=>{t===void 0&&S(e),r==null||r(e)};return s.jsx(N.Flex,{id:d,testId:o,className:_.cn("Bear-ThemeSwitcher",l),align:"center",gap:1,children:c.THEME_SWITCHER_OPTIONS.map(e=>s.jsx(g.Button,{type:"button",size:"sm",variant:h===e.value?"primary":"ghost",onClick:()=>E(e.value),children:m[e.labelKey]},e.value))})};exports.ThemeSwitcher=C;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../../constants/generals.const.cjs"),e={lightLabel:E.LABEL_THEME_LIGHT,darkLabel:E.LABEL_THEME_DARK,systemLabel:E.LABEL_THEME_SYSTEM},T=[{value:E.COLOR_SCHEME_LIGHT,labelKey:"lightLabel"},{value:E.COLOR_SCHEME_DARK,labelKey:"darkLabel"},{value:E.COLOR_SCHEME_SYSTEM,labelKey:"systemLabel"}];exports.THEME_SWITCHER_DEFAULT_TRANSLATIONS=e;exports.THEME_SWITCHER_OPTIONS=T;
@@ -0,0 +1,7 @@
1
+ import { BearColorScheme } from '../../context/bearProvider.types';
2
+ import { ThemeSwitcherTranslations } from './ThemeSwitcher.types';
3
+ export declare const THEME_SWITCHER_DEFAULT_TRANSLATIONS: ThemeSwitcherTranslations;
4
+ export declare const THEME_SWITCHER_OPTIONS: {
5
+ value: BearColorScheme;
6
+ labelKey: keyof ThemeSwitcherTranslations;
7
+ }[];
@@ -0,0 +1,14 @@
1
+ import { COLOR_SCHEME_LIGHT as E, COLOR_SCHEME_DARK as L, COLOR_SCHEME_SYSTEM as e, LABEL_THEME_SYSTEM as l, LABEL_THEME_DARK as _, LABEL_THEME_LIGHT as T } from "../../constants/generals.const.js";
2
+ const H = {
3
+ lightLabel: T,
4
+ darkLabel: _,
5
+ systemLabel: l
6
+ }, S = [
7
+ { value: E, labelKey: "lightLabel" },
8
+ { value: L, labelKey: "darkLabel" },
9
+ { value: e, labelKey: "systemLabel" }
10
+ ];
11
+ export {
12
+ H as THEME_SWITCHER_DEFAULT_TRANSLATIONS,
13
+ S as THEME_SWITCHER_OPTIONS
14
+ };
@@ -0,0 +1,2 @@
1
+ import { ThemeSwitcherProps } from './ThemeSwitcher.types';
2
+ export declare const ThemeSwitcher: (props: ThemeSwitcherProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,39 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { COMPONENT_NAME_THEME_SWITCHER as I } from "../../constants/generals.const.js";
3
+ import { cn as S } from "../../utils/cn.js";
4
+ import "react";
5
+ import { resolveBearId as h } from "../../utils/generateBearId.utils.js";
6
+ import { useBearId as u } from "../../utils/useBearId.js";
7
+ import { useBear as N } from "../../context/BearProvider.js";
8
+ import { Button as _ } from "../Button/Button.js";
9
+ import { Flex as v } from "../Flex/Flex.js";
10
+ import { THEME_SWITCHER_OPTIONS as C, THEME_SWITCHER_DEFAULT_TRANSLATIONS as H } from "./ThemeSwitcher.const.js";
11
+ const w = (m) => {
12
+ const { id: a, testId: s, value: t, onChange: r, translations: i, className: l } = m, c = u(I), n = h(a, c), { colorScheme: d, setColorScheme: T } = N(), p = t ?? d, E = { ...H, ...i }, f = (e) => {
13
+ t === void 0 && T(e), r == null || r(e);
14
+ };
15
+ return /* @__PURE__ */ o(
16
+ v,
17
+ {
18
+ id: n,
19
+ testId: s,
20
+ className: S("Bear-ThemeSwitcher", l),
21
+ align: "center",
22
+ gap: 1,
23
+ children: C.map((e) => /* @__PURE__ */ o(
24
+ _,
25
+ {
26
+ type: "button",
27
+ size: "sm",
28
+ variant: p === e.value ? "primary" : "ghost",
29
+ onClick: () => f(e.value),
30
+ children: E[e.labelKey]
31
+ },
32
+ e.value
33
+ ))
34
+ }
35
+ );
36
+ };
37
+ export {
38
+ w as ThemeSwitcher
39
+ };
@@ -0,0 +1,14 @@
1
+ import { BearColorScheme } from '../../context/bearProvider.types';
2
+ export interface ThemeSwitcherTranslations {
3
+ lightLabel: string;
4
+ darkLabel: string;
5
+ systemLabel: string;
6
+ }
7
+ export interface ThemeSwitcherProps {
8
+ id?: string;
9
+ testId?: string;
10
+ value?: BearColorScheme;
11
+ onChange?: (scheme: BearColorScheme) => void;
12
+ translations?: Partial<ThemeSwitcherTranslations>;
13
+ className?: string;
14
+ }