@forgedevstack/bear 1.1.3 → 1.1.8

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 (356) hide show
  1. package/README.md +19 -0
  2. package/dist/components/ActionIcon/ActionIcon.cjs +1 -0
  3. package/dist/components/ActionIcon/ActionIcon.const.cjs +1 -0
  4. package/dist/components/ActionIcon/ActionIcon.const.d.ts +7 -0
  5. package/dist/components/ActionIcon/ActionIcon.const.js +68 -0
  6. package/dist/components/ActionIcon/ActionIcon.d.ts +4 -0
  7. package/dist/components/ActionIcon/ActionIcon.js +42 -0
  8. package/dist/components/ActionIcon/ActionIcon.types.d.ts +11 -0
  9. package/dist/components/ActionIcon/index.d.ts +2 -0
  10. package/dist/components/Affix/Affix.cjs +1 -0
  11. package/dist/components/Affix/Affix.const.cjs +1 -0
  12. package/dist/components/Affix/Affix.const.d.ts +6 -0
  13. package/dist/components/Affix/Affix.const.js +9 -0
  14. package/dist/components/Affix/Affix.d.ts +4 -0
  15. package/dist/components/Affix/Affix.js +69 -0
  16. package/dist/components/Affix/Affix.types.d.ts +10 -0
  17. package/dist/components/Affix/index.d.ts +2 -0
  18. package/dist/components/Anchor/Anchor.cjs +1 -0
  19. package/dist/components/Anchor/Anchor.const.cjs +1 -0
  20. package/dist/components/Anchor/Anchor.const.d.ts +9 -0
  21. package/dist/components/Anchor/Anchor.const.js +11 -0
  22. package/dist/components/Anchor/Anchor.d.ts +4 -0
  23. package/dist/components/Anchor/Anchor.js +83 -0
  24. package/dist/components/Anchor/Anchor.types.d.ts +16 -0
  25. package/dist/components/Anchor/Anchor.utils.cjs +1 -0
  26. package/dist/components/Anchor/Anchor.utils.d.ts +2 -0
  27. package/dist/components/Anchor/Anchor.utils.js +12 -0
  28. package/dist/components/Anchor/index.d.ts +2 -0
  29. package/dist/components/Autocomplete/Autocomplete.cjs +1 -1
  30. package/dist/components/Autocomplete/Autocomplete.js +60 -67
  31. package/dist/components/Autocomplete/Autocomplete.utils.cjs +1 -0
  32. package/dist/components/Autocomplete/Autocomplete.utils.d.ts +2 -0
  33. package/dist/components/Autocomplete/Autocomplete.utils.js +12 -0
  34. package/dist/components/BackTop/BackTop.cjs +1 -1
  35. package/dist/components/BackTop/BackTop.js +10 -11
  36. package/dist/components/Blockquote/Blockquote.cjs +1 -0
  37. package/dist/components/Blockquote/Blockquote.const.cjs +1 -0
  38. package/dist/components/Blockquote/Blockquote.const.d.ts +5 -0
  39. package/dist/components/Blockquote/Blockquote.const.js +19 -0
  40. package/dist/components/Blockquote/Blockquote.d.ts +4 -0
  41. package/dist/components/Blockquote/Blockquote.js +56 -0
  42. package/dist/components/Blockquote/Blockquote.types.d.ts +9 -0
  43. package/dist/components/Blockquote/index.d.ts +2 -0
  44. package/dist/components/Button/Button.cjs +1 -1
  45. package/dist/components/Button/Button.constants.cjs +2 -2
  46. package/dist/components/Button/Button.constants.d.ts +1 -0
  47. package/dist/components/Button/Button.constants.js +12 -5
  48. package/dist/components/Button/Button.d.ts +0 -27
  49. package/dist/components/Button/Button.js +93 -105
  50. package/dist/components/Button/Button.types.d.ts +1 -0
  51. package/dist/components/Button/Button.utils.cjs +1 -0
  52. package/dist/components/Button/Button.utils.d.ts +2 -0
  53. package/dist/components/Button/Button.utils.js +5 -0
  54. package/dist/components/Button/useSpotlight.cjs +1 -0
  55. package/dist/components/Button/useSpotlight.d.ts +21 -0
  56. package/dist/components/Button/useSpotlight.js +28 -0
  57. package/dist/components/Chart/Chart.cjs +1 -1
  58. package/dist/components/Chart/Chart.const.cjs +1 -0
  59. package/dist/components/Chart/Chart.const.js +21 -0
  60. package/dist/components/Chart/Chart.js +55 -71
  61. package/dist/components/Chart/Chart.utils.cjs +1 -0
  62. package/dist/components/Chart/Chart.utils.js +5 -0
  63. package/dist/components/CheckboxCard/CheckboxCard.cjs +1 -0
  64. package/dist/components/CheckboxCard/CheckboxCard.const.cjs +1 -0
  65. package/dist/components/CheckboxCard/CheckboxCard.const.d.ts +7 -0
  66. package/dist/components/CheckboxCard/CheckboxCard.const.js +22 -0
  67. package/dist/components/CheckboxCard/CheckboxCard.d.ts +5 -0
  68. package/dist/components/CheckboxCard/CheckboxCard.js +132 -0
  69. package/dist/components/CheckboxCard/CheckboxCard.types.d.ts +21 -0
  70. package/dist/components/CheckboxCard/index.d.ts +2 -0
  71. package/dist/components/ColorPicker/ColorPicker.cjs +1 -1
  72. package/dist/components/ColorPicker/ColorPicker.const.cjs +1 -0
  73. package/dist/components/ColorPicker/ColorPicker.const.d.ts +26 -0
  74. package/dist/components/ColorPicker/ColorPicker.const.js +38 -0
  75. package/dist/components/ColorPicker/ColorPicker.js +61 -78
  76. package/dist/components/ColorSwatch/ColorSwatch.cjs +1 -0
  77. package/dist/components/ColorSwatch/ColorSwatch.const.cjs +1 -0
  78. package/dist/components/ColorSwatch/ColorSwatch.const.d.ts +16 -0
  79. package/dist/components/ColorSwatch/ColorSwatch.const.js +19 -0
  80. package/dist/components/ColorSwatch/ColorSwatch.d.ts +5 -0
  81. package/dist/components/ColorSwatch/ColorSwatch.js +92 -0
  82. package/dist/components/ColorSwatch/ColorSwatch.types.d.ts +23 -0
  83. package/dist/components/ColorSwatch/ColorSwatch.utils.cjs +1 -0
  84. package/dist/components/ColorSwatch/ColorSwatch.utils.d.ts +6 -0
  85. package/dist/components/ColorSwatch/ColorSwatch.utils.js +14 -0
  86. package/dist/components/ColorSwatch/index.d.ts +2 -0
  87. package/dist/components/Confetti/Confetti.cjs +1 -1
  88. package/dist/components/Confetti/Confetti.js +37 -34
  89. package/dist/components/ContextMenu/ContextMenu.cjs +1 -0
  90. package/dist/components/ContextMenu/ContextMenu.const.cjs +1 -0
  91. package/dist/components/ContextMenu/ContextMenu.const.d.ts +9 -0
  92. package/dist/components/ContextMenu/ContextMenu.const.js +12 -0
  93. package/dist/components/ContextMenu/ContextMenu.d.ts +4 -0
  94. package/dist/components/ContextMenu/ContextMenu.js +65 -0
  95. package/dist/components/ContextMenu/ContextMenu.types.d.ts +23 -0
  96. package/dist/components/ContextMenu/ContextMenu.utils.cjs +1 -0
  97. package/dist/components/ContextMenu/ContextMenu.utils.d.ts +5 -0
  98. package/dist/components/ContextMenu/ContextMenu.utils.js +4 -0
  99. package/dist/components/ContextMenu/index.d.ts +2 -0
  100. package/dist/components/CountdownTimer/CountdownTimer.cjs +1 -1
  101. package/dist/components/CountdownTimer/CountdownTimer.js +62 -71
  102. package/dist/components/CountdownTimer/CountdownTimer.utils.cjs +1 -0
  103. package/dist/components/CountdownTimer/CountdownTimer.utils.d.ts +3 -0
  104. package/dist/components/CountdownTimer/CountdownTimer.utils.js +16 -0
  105. package/dist/components/DateRangePicker/DateRangePicker.cjs +1 -0
  106. package/dist/components/DateRangePicker/DateRangePicker.const.cjs +1 -0
  107. package/dist/components/DateRangePicker/DateRangePicker.const.d.ts +27 -0
  108. package/dist/components/DateRangePicker/DateRangePicker.const.js +74 -0
  109. package/dist/components/DateRangePicker/DateRangePicker.d.ts +4 -0
  110. package/dist/components/DateRangePicker/DateRangePicker.js +115 -0
  111. package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +26 -0
  112. package/dist/components/DateRangePicker/DateRangePicker.utils.cjs +1 -0
  113. package/dist/components/DateRangePicker/DateRangePicker.utils.d.ts +4 -0
  114. package/dist/components/DateRangePicker/DateRangePicker.utils.js +22 -0
  115. package/dist/components/DateRangePicker/index.d.ts +2 -0
  116. package/dist/components/Descriptions/Descriptions.cjs +1 -0
  117. package/dist/components/Descriptions/Descriptions.const.cjs +1 -0
  118. package/dist/components/Descriptions/Descriptions.const.d.ts +24 -0
  119. package/dist/components/Descriptions/Descriptions.const.js +27 -0
  120. package/dist/components/Descriptions/Descriptions.d.ts +4 -0
  121. package/dist/components/Descriptions/Descriptions.js +65 -0
  122. package/dist/components/Descriptions/Descriptions.types.d.ts +16 -0
  123. package/dist/components/Descriptions/index.d.ts +2 -0
  124. package/dist/components/Dock/Dock.cjs +1 -1
  125. package/dist/components/Dock/Dock.js +38 -43
  126. package/dist/components/Dock/Dock.utils.cjs +1 -0
  127. package/dist/components/Dock/Dock.utils.d.ts +1 -0
  128. package/dist/components/Dock/Dock.utils.js +10 -0
  129. package/dist/components/Dropdown/Dropdown.cjs +1 -1
  130. package/dist/components/Dropdown/Dropdown.js +59 -60
  131. package/dist/components/Fieldset/Fieldset.cjs +1 -0
  132. package/dist/components/Fieldset/Fieldset.const.cjs +1 -0
  133. package/dist/components/Fieldset/Fieldset.const.d.ts +5 -0
  134. package/dist/components/Fieldset/Fieldset.const.js +16 -0
  135. package/dist/components/Fieldset/Fieldset.d.ts +4 -0
  136. package/dist/components/Fieldset/Fieldset.js +47 -0
  137. package/dist/components/Fieldset/Fieldset.types.d.ts +10 -0
  138. package/dist/components/Fieldset/index.d.ts +2 -0
  139. package/dist/components/FileTree/FileTree.cjs +1 -1
  140. package/dist/components/FileTree/FileTree.js +20 -32
  141. package/dist/components/FileTree/FileTree.utils.cjs +1 -0
  142. package/dist/components/FileTree/FileTree.utils.d.ts +4 -0
  143. package/dist/components/FileTree/FileTree.utils.js +15 -0
  144. package/dist/components/GradientText/GradientText.cjs +1 -1
  145. package/dist/components/GradientText/GradientText.js +27 -29
  146. package/dist/components/Icon/icons/bear.cjs +1 -0
  147. package/dist/components/Icon/icons/bear.d.ts +12 -0
  148. package/dist/components/Icon/icons/bear.js +47 -0
  149. package/dist/components/Icon/index.cjs +1 -1
  150. package/dist/components/Icon/index.d.ts +18 -0
  151. package/dist/components/Icon/index.js +17 -15
  152. package/dist/components/ImageGallery/ImageGallery.cjs +1 -0
  153. package/dist/components/ImageGallery/ImageGallery.const.cjs +1 -0
  154. package/dist/components/ImageGallery/ImageGallery.const.d.ts +13 -0
  155. package/dist/components/ImageGallery/ImageGallery.const.js +16 -0
  156. package/dist/components/ImageGallery/ImageGallery.d.ts +4 -0
  157. package/dist/components/ImageGallery/ImageGallery.js +61 -0
  158. package/dist/components/ImageGallery/ImageGallery.types.d.ts +22 -0
  159. package/dist/components/ImageGallery/index.d.ts +2 -0
  160. package/dist/components/Indicator/Indicator.cjs +1 -0
  161. package/dist/components/Indicator/Indicator.const.cjs +1 -0
  162. package/dist/components/Indicator/Indicator.const.d.ts +15 -0
  163. package/dist/components/Indicator/Indicator.const.js +26 -0
  164. package/dist/components/Indicator/Indicator.d.ts +4 -0
  165. package/dist/components/Indicator/Indicator.js +56 -0
  166. package/dist/components/Indicator/Indicator.types.d.ts +16 -0
  167. package/dist/components/Indicator/index.d.ts +2 -0
  168. package/dist/components/InfiniteScroll/InfiniteScroll.cjs +1 -0
  169. package/dist/components/InfiniteScroll/InfiniteScroll.const.cjs +1 -0
  170. package/dist/components/InfiniteScroll/InfiniteScroll.const.d.ts +7 -0
  171. package/dist/components/InfiniteScroll/InfiniteScroll.const.js +9 -0
  172. package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +4 -0
  173. package/dist/components/InfiniteScroll/InfiniteScroll.js +51 -0
  174. package/dist/components/InfiniteScroll/InfiniteScroll.types.d.ts +13 -0
  175. package/dist/components/InfiniteScroll/index.d.ts +2 -0
  176. package/dist/components/Input/Input.cjs +1 -1
  177. package/dist/components/Input/Input.js +99 -66
  178. package/dist/components/Input/Input.types.d.ts +10 -0
  179. package/dist/components/Input/Input.utils.cjs +1 -0
  180. package/dist/components/Input/Input.utils.d.ts +2 -0
  181. package/dist/components/Input/Input.utils.js +15 -0
  182. package/dist/components/Input/index.d.ts +1 -1
  183. package/dist/components/LoadingOverlay/LoadingOverlay.cjs +1 -0
  184. package/dist/components/LoadingOverlay/LoadingOverlay.const.cjs +1 -0
  185. package/dist/components/LoadingOverlay/LoadingOverlay.const.d.ts +6 -0
  186. package/dist/components/LoadingOverlay/LoadingOverlay.const.js +9 -0
  187. package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +4 -0
  188. package/dist/components/LoadingOverlay/LoadingOverlay.js +42 -0
  189. package/dist/components/LoadingOverlay/LoadingOverlay.types.d.ts +11 -0
  190. package/dist/components/LoadingOverlay/index.d.ts +2 -0
  191. package/dist/components/MentionsInput/MentionsInput.cjs +1 -1
  192. package/dist/components/MentionsInput/MentionsInput.js +64 -68
  193. package/dist/components/MentionsInput/MentionsInput.utils.cjs +1 -0
  194. package/dist/components/MentionsInput/MentionsInput.utils.d.ts +2 -0
  195. package/dist/components/MentionsInput/MentionsInput.utils.js +9 -0
  196. package/dist/components/NumberFormatter/NumberFormatter.cjs +1 -0
  197. package/dist/components/NumberFormatter/NumberFormatter.const.cjs +1 -0
  198. package/dist/components/NumberFormatter/NumberFormatter.const.d.ts +5 -0
  199. package/dist/components/NumberFormatter/NumberFormatter.const.js +8 -0
  200. package/dist/components/NumberFormatter/NumberFormatter.d.ts +4 -0
  201. package/dist/components/NumberFormatter/NumberFormatter.js +53 -0
  202. package/dist/components/NumberFormatter/NumberFormatter.types.d.ts +20 -0
  203. package/dist/components/NumberFormatter/NumberFormatter.utils.cjs +1 -0
  204. package/dist/components/NumberFormatter/NumberFormatter.utils.d.ts +2 -0
  205. package/dist/components/NumberFormatter/NumberFormatter.utils.js +19 -0
  206. package/dist/components/NumberFormatter/index.d.ts +2 -0
  207. package/dist/components/PageNav/PageNav.cjs +1 -0
  208. package/dist/components/PageNav/PageNav.const.cjs +1 -0
  209. package/dist/components/PageNav/PageNav.const.d.ts +22 -0
  210. package/dist/components/PageNav/PageNav.const.js +42 -0
  211. package/dist/components/PageNav/PageNav.d.ts +3 -0
  212. package/dist/components/PageNav/PageNav.js +81 -0
  213. package/dist/components/PageNav/PageNav.types.d.ts +17 -0
  214. package/dist/components/PageNav/index.d.ts +2 -0
  215. package/dist/components/Popconfirm/Popconfirm.cjs +1 -0
  216. package/dist/components/Popconfirm/Popconfirm.const.cjs +1 -0
  217. package/dist/components/Popconfirm/Popconfirm.const.d.ts +13 -0
  218. package/dist/components/Popconfirm/Popconfirm.const.js +20 -0
  219. package/dist/components/Popconfirm/Popconfirm.d.ts +4 -0
  220. package/dist/components/Popconfirm/Popconfirm.js +65 -0
  221. package/dist/components/Popconfirm/Popconfirm.types.d.ts +16 -0
  222. package/dist/components/Popconfirm/index.d.ts +2 -0
  223. package/dist/components/Progress/Progress.cjs +1 -1
  224. package/dist/components/Progress/Progress.js +6 -6
  225. package/dist/components/PropsPlayground/PropsPlayground.cjs +1 -0
  226. package/dist/components/PropsPlayground/PropsPlayground.const.cjs +1 -0
  227. package/dist/components/PropsPlayground/PropsPlayground.const.d.ts +11 -0
  228. package/dist/components/PropsPlayground/PropsPlayground.const.js +23 -0
  229. package/dist/components/PropsPlayground/PropsPlayground.d.ts +3 -0
  230. package/dist/components/PropsPlayground/PropsPlayground.js +221 -0
  231. package/dist/components/PropsPlayground/PropsPlayground.types.d.ts +29 -0
  232. package/dist/components/PropsPlayground/PropsPlayground.utils.cjs +1 -0
  233. package/dist/components/PropsPlayground/PropsPlayground.utils.d.ts +2 -0
  234. package/dist/components/PropsPlayground/PropsPlayground.utils.js +9 -0
  235. package/dist/components/PropsPlayground/index.d.ts +2 -0
  236. package/dist/components/RadioCard/RadioCard.cjs +1 -0
  237. package/dist/components/RadioCard/RadioCard.const.cjs +1 -0
  238. package/dist/components/RadioCard/RadioCard.const.d.ts +7 -0
  239. package/dist/components/RadioCard/RadioCard.const.js +22 -0
  240. package/dist/components/RadioCard/RadioCard.d.ts +5 -0
  241. package/dist/components/RadioCard/RadioCard.js +111 -0
  242. package/dist/components/RadioCard/RadioCard.types.d.ts +22 -0
  243. package/dist/components/RadioCard/index.d.ts +2 -0
  244. package/dist/components/Result/Result.cjs +1 -0
  245. package/dist/components/Result/Result.const.cjs +1 -0
  246. package/dist/components/Result/Result.const.d.ts +10 -0
  247. package/dist/components/Result/Result.const.js +20 -0
  248. package/dist/components/Result/Result.d.ts +4 -0
  249. package/dist/components/Result/Result.icons.cjs +1 -0
  250. package/dist/components/Result/Result.icons.d.ts +3 -0
  251. package/dist/components/Result/Result.icons.js +31 -0
  252. package/dist/components/Result/Result.js +35 -0
  253. package/dist/components/Result/Result.types.d.ts +10 -0
  254. package/dist/components/Result/index.d.ts +2 -0
  255. package/dist/components/RingProgress/RingProgress.cjs +1 -0
  256. package/dist/components/RingProgress/RingProgress.const.cjs +1 -0
  257. package/dist/components/RingProgress/RingProgress.const.d.ts +4 -0
  258. package/dist/components/RingProgress/RingProgress.const.js +7 -0
  259. package/dist/components/RingProgress/RingProgress.d.ts +4 -0
  260. package/dist/components/RingProgress/RingProgress.js +67 -0
  261. package/dist/components/RingProgress/RingProgress.types.d.ts +15 -0
  262. package/dist/components/RingProgress/index.d.ts +2 -0
  263. package/dist/components/Select/Select.cjs +1 -1
  264. package/dist/components/Select/Select.js +28 -30
  265. package/dist/components/SignPad/SignPad.cjs +1 -1
  266. package/dist/components/SignPad/SignPad.const.cjs +1 -1
  267. package/dist/components/SignPad/SignPad.const.js +10 -11
  268. package/dist/components/SignPad/SignPad.d.ts +4 -6
  269. package/dist/components/SignPad/SignPad.js +114 -122
  270. package/dist/components/SignPad/SignPad.types.d.ts +2 -2
  271. package/dist/components/Skeleton/Skeleton.cjs +1 -1
  272. package/dist/components/Skeleton/Skeleton.js +89 -94
  273. package/dist/components/Skeleton/Skeleton.utils.cjs +1 -0
  274. package/dist/components/Skeleton/Skeleton.utils.d.ts +1 -0
  275. package/dist/components/Skeleton/Skeleton.utils.js +10 -0
  276. package/dist/components/SliderRange/SliderRange.cjs +1 -1
  277. package/dist/components/SliderRange/SliderRange.js +61 -63
  278. package/dist/components/SliderRange/SliderRange.utils.cjs +1 -0
  279. package/dist/components/SliderRange/SliderRange.utils.d.ts +1 -0
  280. package/dist/components/SliderRange/SliderRange.utils.js +7 -0
  281. package/dist/components/SplitButton/SplitButton.cjs +1 -0
  282. package/dist/components/SplitButton/SplitButton.const.cjs +1 -0
  283. package/dist/components/SplitButton/SplitButton.const.d.ts +25 -0
  284. package/dist/components/SplitButton/SplitButton.const.js +27 -0
  285. package/dist/components/SplitButton/SplitButton.d.ts +4 -0
  286. package/dist/components/SplitButton/SplitButton.js +73 -0
  287. package/dist/components/SplitButton/SplitButton.types.d.ts +21 -0
  288. package/dist/components/SplitButton/index.d.ts +2 -0
  289. package/dist/components/Spoiler/Spoiler.cjs +1 -0
  290. package/dist/components/Spoiler/Spoiler.const.cjs +1 -0
  291. package/dist/components/Spoiler/Spoiler.const.d.ts +6 -0
  292. package/dist/components/Spoiler/Spoiler.const.js +9 -0
  293. package/dist/components/Spoiler/Spoiler.d.ts +4 -0
  294. package/dist/components/Spoiler/Spoiler.js +59 -0
  295. package/dist/components/Spoiler/Spoiler.types.d.ts +10 -0
  296. package/dist/components/Spoiler/index.d.ts +2 -0
  297. package/dist/components/Spotlight/Spotlight.cjs +1 -1
  298. package/dist/components/Spotlight/Spotlight.js +62 -73
  299. package/dist/components/Spotlight/Spotlight.utils.cjs +1 -0
  300. package/dist/components/Spotlight/Spotlight.utils.d.ts +3 -0
  301. package/dist/components/Spotlight/Spotlight.utils.js +18 -0
  302. package/dist/components/Tabs/Tabs.cjs +1 -1
  303. package/dist/components/Tabs/Tabs.js +39 -38
  304. package/dist/components/Tabs/Tabs.types.d.ts +3 -1
  305. package/dist/components/TimePicker/components/TimePickerDialDropdown/TimePickerDialDropdown.cjs +1 -1
  306. package/dist/components/TimePicker/components/TimePickerDialDropdown/TimePickerDialDropdown.js +63 -57
  307. package/dist/components/TimePicker/helpers/ClockFaceSvg.cjs +1 -1
  308. package/dist/components/TimePicker/helpers/ClockFaceSvg.d.ts +0 -7
  309. package/dist/components/TimePicker/helpers/ClockFaceSvg.js +32 -31
  310. package/dist/components/Toast/Toast.cjs +1 -1
  311. package/dist/components/Toast/Toast.js +18 -17
  312. package/dist/components/Toast/Toast.utils.cjs +1 -0
  313. package/dist/components/Toast/Toast.utils.d.ts +1 -0
  314. package/dist/components/Toast/Toast.utils.js +4 -0
  315. package/dist/components/Tooltip/Tooltip.cjs +1 -1
  316. package/dist/components/Tooltip/Tooltip.js +10 -11
  317. package/dist/components/Tour/Tour.cjs +1 -1
  318. package/dist/components/Tour/Tour.js +1 -2
  319. package/dist/components/TreeSelect/TreeSelect.cjs +1 -0
  320. package/dist/components/TreeSelect/TreeSelect.const.cjs +1 -0
  321. package/dist/components/TreeSelect/TreeSelect.const.d.ts +19 -0
  322. package/dist/components/TreeSelect/TreeSelect.const.js +22 -0
  323. package/dist/components/TreeSelect/TreeSelect.d.ts +4 -0
  324. package/dist/components/TreeSelect/TreeSelect.js +128 -0
  325. package/dist/components/TreeSelect/TreeSelect.types.d.ts +25 -0
  326. package/dist/components/TreeSelect/TreeSelect.utils.cjs +1 -0
  327. package/dist/components/TreeSelect/TreeSelect.utils.d.ts +5 -0
  328. package/dist/components/TreeSelect/TreeSelect.utils.js +25 -0
  329. package/dist/components/TreeSelect/index.d.ts +2 -0
  330. package/dist/components/VirtualList/VirtualList.cjs +1 -1
  331. package/dist/components/VirtualList/VirtualList.js +38 -43
  332. package/dist/components/index.cjs +1 -1
  333. package/dist/components/index.d.ts +48 -0
  334. package/dist/components/index.js +351 -300
  335. package/dist/hooks/index.cjs +1 -1
  336. package/dist/hooks/index.d.ts +2 -0
  337. package/dist/hooks/index.js +60 -58
  338. package/dist/hooks/useResizeObserver/index.d.ts +2 -0
  339. package/dist/hooks/useResizeObserver/useResizeObserver.cjs +1 -0
  340. package/dist/hooks/useResizeObserver/useResizeObserver.d.ts +3 -0
  341. package/dist/hooks/useResizeObserver/useResizeObserver.js +20 -0
  342. package/dist/hooks/useResizeObserver/useResizeObserver.types.d.ts +8 -0
  343. package/dist/icons.cjs +1 -0
  344. package/dist/icons.d.ts +2 -0
  345. package/dist/icons.js +6 -0
  346. package/dist/index.cjs +1 -1
  347. package/dist/index.js +443 -390
  348. package/dist/postcss/bear-plugin.cjs +86 -0
  349. package/dist/styles/_alerts.css +14 -0
  350. package/dist/styles/_base.css +60 -0
  351. package/dist/styles/_buttons.css +108 -0
  352. package/dist/styles/_effects.css +90 -0
  353. package/dist/styles/_marquee.css +25 -0
  354. package/dist/styles/main.css +5 -0
  355. package/dist/styles.css +1 -1
  356. package/package.json +15 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),s=require("react"),b=require("../../utils/cn.cjs"),e=require("./GradientText.const.cjs"),I=c=>{const{children:d,preset:i="primary",colors:t,direction:a="to-r",animate:r=!1,animationSpeed:l=e.DEFAULT_ANIMATION_SPEED,as:T="span",weight:u="bold",className:E,style:g,testId:m}=c,n=s.useMemo(()=>t&&t.length>0?t:e.GRADIENT_PRESETS[i]??e.GRADIENT_PRESETS.primary,[t,i]),A=s.useMemo(()=>{const o=e.DIRECTION_MAP[a]??"to right";if(!r)return`linear-gradient(${o}, ${n.join(", ")})`;const S=Array.from({length:e.COLOR_REPEAT_COUNT},()=>n).flat();return`linear-gradient(${o}, ${S.join(", ")})`},[n,a,r]);return _.jsx(T,{className:b.cn("Bear-GradientText","bear-inline-block",r&&"Bear-GradientText--animated",E),style:{background:A,backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontWeight:e.WEIGHT_MAP[u]??e.DEFAULT_WEIGHT,...r&&{backgroundSize:e.ANIMATED_BG_SIZE,animation:`bear-gradient-shift ${l}s ease infinite`},...g},"data-testid":m,children:d})};exports.GradientText=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),s=require("react"),b=require("../../utils/cn.cjs"),e=require("./GradientText.const.cjs"),I=c=>{const{children:d,preset:a="primary",colors:t,direction:i="to-r",animate:r=!1,animationSpeed:l=e.DEFAULT_ANIMATION_SPEED,as:T="span",weight:u="bold",className:E,style:g,testId:m}=c,n=s.useMemo(()=>t&&t.length>0?t:e.GRADIENT_PRESETS[a]??e.GRADIENT_PRESETS.primary,[t,a]),A=s.useMemo(()=>{const o=e.DIRECTION_MAP[i]??"to right";if(!r)return`linear-gradient(${o}, ${n.join(", ")})`;const S=Array.from({length:e.COLOR_REPEAT_COUNT},()=>n).flat();return`linear-gradient(${o}, ${S.join(", ")})`},[n,i,r]);return _.jsx(T,{className:b.cn("Bear-GradientText","bear-inline-block","bear-bg-clip-text bear-text-transparent",r&&"Bear-GradientText--animated",E),style:{background:A,fontWeight:e.WEIGHT_MAP[u]??e.DEFAULT_WEIGHT,...r&&{backgroundSize:e.ANIMATED_BG_SIZE,animation:`bear-gradient-shift ${l}s ease infinite`},...g},"data-testid":m,children:d})};exports.GradientText=I;
@@ -1,52 +1,50 @@
1
- import { jsx as A } from "react/jsx-runtime";
1
+ import { jsx as I } from "react/jsx-runtime";
2
2
  import { useMemo as o } from "react";
3
- import { cn as I } from "../../utils/cn.js";
4
- import { DEFAULT_ANIMATION_SPEED as _, GRADIENT_PRESETS as s, DIRECTION_MAP as b, COLOR_REPEAT_COUNT as x, ANIMATED_BG_SIZE as C, WEIGHT_MAP as N, DEFAULT_WEIGHT as S } from "./GradientText.const.js";
5
- const y = (l) => {
3
+ import { cn as _ } from "../../utils/cn.js";
4
+ import { DEFAULT_ANIMATION_SPEED as b, GRADIENT_PRESETS as s, DIRECTION_MAP as u, COLOR_REPEAT_COUNT as N, ANIMATED_BG_SIZE as S, WEIGHT_MAP as h, DEFAULT_WEIGHT as x } from "./GradientText.const.js";
5
+ const M = (d) => {
6
6
  const {
7
- children: d,
8
- preset: i = "primary",
7
+ children: m,
8
+ preset: a = "primary",
9
9
  colors: t,
10
10
  direction: n = "to-r",
11
11
  animate: e = !1,
12
- animationSpeed: c = _,
13
- as: m = "span",
12
+ animationSpeed: c = b,
13
+ as: l = "span",
14
14
  weight: T = "bold",
15
- className: g,
16
- style: p,
17
- testId: E
18
- } = l, r = o(() => t && t.length > 0 ? t : s[i] ?? s.primary, [t, i]), f = o(() => {
19
- const a = b[n] ?? "to right";
20
- if (!e) return `linear-gradient(${a}, ${r.join(", ")})`;
21
- const u = Array.from({ length: x }, () => r).flat();
22
- return `linear-gradient(${a}, ${u.join(", ")})`;
15
+ className: E,
16
+ style: g,
17
+ testId: p
18
+ } = d, r = o(() => t && t.length > 0 ? t : s[a] ?? s.primary, [t, a]), f = o(() => {
19
+ const i = u[n] ?? "to right";
20
+ if (!e) return `linear-gradient(${i}, ${r.join(", ")})`;
21
+ const A = Array.from({ length: N }, () => r).flat();
22
+ return `linear-gradient(${i}, ${A.join(", ")})`;
23
23
  }, [r, n, e]);
24
- return /* @__PURE__ */ A(
25
- m,
24
+ return /* @__PURE__ */ I(
25
+ l,
26
26
  {
27
- className: I(
27
+ className: _(
28
28
  "Bear-GradientText",
29
29
  "bear-inline-block",
30
+ "bear-bg-clip-text bear-text-transparent",
30
31
  e && "Bear-GradientText--animated",
31
- g
32
+ E
32
33
  ),
33
34
  style: {
34
35
  background: f,
35
- backgroundClip: "text",
36
- WebkitBackgroundClip: "text",
37
- WebkitTextFillColor: "transparent",
38
- fontWeight: N[T] ?? S,
36
+ fontWeight: h[T] ?? x,
39
37
  ...e && {
40
- backgroundSize: C,
38
+ backgroundSize: S,
41
39
  animation: `bear-gradient-shift ${c}s ease infinite`
42
40
  },
43
- ...p
41
+ ...g
44
42
  },
45
- "data-testid": E,
46
- children: d
43
+ "data-testid": p,
44
+ children: m
47
45
  }
48
46
  );
49
47
  };
50
48
  export {
51
- y as GradientText
49
+ M as GradientText
52
50
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),c=require("../Icon.cjs"),h=n=>s.jsxs(c.Icon,{...n,children:[s.jsx("path",{d:"M12 2l2.5 4.3v4.3l2.5 1.5 2.5-1.5V6.3L20 2h-2.5l-2.5 4.3v4.3l-2.5 1.5-2.5-1.5V6.3L6.5 2H4l2.5 4.3v4.3l2.5 1.5 2.5-1.5V6.3L12 2z"}),s.jsx("path",{d:"M4 11l2.5 4.3v4.3l2.5 1.5 2.5-1.5v-4.3L14 11h-2.5l-2.5 4.3v4.3l-2.5 1.5-2.5-1.5v-4.3L4 11z"}),s.jsx("path",{d:"M20 11l-2.5 4.3v4.3l-2.5 1.5-2.5-1.5v-4.3L10 11h2.5l2.5 4.3v4.3l2.5 1.5 2.5-1.5v-4.3L20 11z"}),s.jsx("path",{d:"M12 18l2.5 4.3v4.3l2.5 1.5 2.5-1.5v-4.3L20 18h-2.5l-2.5 4.3v4.3l-2.5 1.5-2.5-1.5v-4.3L12 18z"})]}),o=n=>s.jsxs(c.Icon,{...n,children:[s.jsx("path",{d:"M12 5c-1.2 0-2 1.2-2 2.5s.8 2.5 2 2.5 2-1.2 2-2.5S13.2 5 12 5z"}),s.jsx("path",{d:"M6.5 8.5c-.8 0-1.5 1-1.5 2s.7 2 1.5 2 1.5-1 1.5-2-.7-2-1.5-2z"}),s.jsx("path",{d:"M17.5 8.5c.8 0 1.5 1 1.5 2s-.7 2-1.5 2-1.5-1-1.5-2 .7-2 1.5-2z"}),s.jsx("path",{d:"M4 14c-.6 0-1.2.8-1.2 1.6s.6 1.6 1.2 1.6 1.2-.8 1.2-1.6S4.6 14 4 14z"}),s.jsx("path",{d:"M20 14c.6 0 1.2.8 1.2 1.6s-.6 1.6-1.2 1.6-1.2-.8-1.2-1.6.6-1.6 1.2-1.6z"}),s.jsx("path",{d:"M12 14v5M8 12v3M16 12v3M5 17v1.5M19 17v1.5"})]}),l=n=>s.jsxs(c.Icon,{...n,children:[s.jsx("path",{d:"M12 3L8 9h2v4H6l4 6 4-6h-4V9h2L12 3z"}),s.jsx("path",{d:"M4 21h16M7 21v-5l2.5 3 2.5-3v5M14.5 21v-3l1.5 2 1.5-2v3"}),s.jsx("path",{d:"M2 21h3l1.5-2 1.5 2h3"})]}),t=n=>s.jsxs(c.Icon,{...n,children:[s.jsx("path",{d:"M4 20V10l8-6 8 6v10"}),s.jsx("path",{d:"M4 10h16M9 20V14h6v6"}),s.jsx("path",{d:"M12 10v4"})]}),M=n=>s.jsxs(c.Icon,{...n,children:[s.jsx("path",{d:"M4 12c0-3 2-6 6-6s6 3 6 6-2 6-6 6-6-3-6-6z"}),s.jsx("path",{d:"M10 6v12M7 9l2 2.5-2 2.5M17 9l-2 2.5 2 2.5"}),s.jsx("path",{d:"M6 11c1 .5 2 .5 3 0M6 13c1 .5 2 .5 3 0"})]}),a=n=>s.jsxs(c.Icon,{...n,children:[s.jsx("path",{d:"M12 3c1.5 1.5 3 4 3 6.5a3 3 0 0 1-6 0C9 7 10.5 4.5 12 3z"}),s.jsx("path",{d:"M12 21c-2.5-1.5-5-4-5-7.5 0-1.5.8-3 2-4 1.2 1 2 2.5 2 4 0 3.5-2.5 6-5 7.5z"}),s.jsx("path",{d:"M12 12v2"})]}),d=n=>s.jsxs(c.Icon,{...n,children:[s.jsx("path",{d:"M12 2l1.5 5h-3l1.5 5h-3l1.5 5h-3l1.5-5H8l1.5-5h3L12 2z"}),s.jsx("path",{d:"M12 22v-1.5"})]}),j=n=>s.jsxs(c.Icon,{...n,children:[s.jsx("path",{d:"M4 20L12 4l8 16H4z"}),s.jsx("path",{d:"M8 20l4-8 4 8"})]});exports.CampfireIcon=a;exports.ClawIcon=o;exports.DenIcon=t;exports.ForestIcon=l;exports.HoneycombIcon=h;exports.MountainIcon=j;exports.PineTreeIcon=d;exports.SalmonIcon=M;
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ type IconComponent = FC<Omit<IconProps, 'children'>>;
4
+ export declare const HoneycombIcon: IconComponent;
5
+ export declare const ClawIcon: IconComponent;
6
+ export declare const ForestIcon: IconComponent;
7
+ export declare const DenIcon: IconComponent;
8
+ export declare const SalmonIcon: IconComponent;
9
+ export declare const CampfireIcon: IconComponent;
10
+ export declare const PineTreeIcon: IconComponent;
11
+ export declare const MountainIcon: IconComponent;
12
+ export {};
@@ -0,0 +1,47 @@
1
+ import { jsxs as t, jsx as h } from "react/jsx-runtime";
2
+ import { Icon as M } from "../Icon.js";
3
+ const a = (l) => /* @__PURE__ */ t(M, { ...l, children: [
4
+ /* @__PURE__ */ h("path", { d: "M12 2l2.5 4.3v4.3l2.5 1.5 2.5-1.5V6.3L20 2h-2.5l-2.5 4.3v4.3l-2.5 1.5-2.5-1.5V6.3L6.5 2H4l2.5 4.3v4.3l2.5 1.5 2.5-1.5V6.3L12 2z" }),
5
+ /* @__PURE__ */ h("path", { d: "M4 11l2.5 4.3v4.3l2.5 1.5 2.5-1.5v-4.3L14 11h-2.5l-2.5 4.3v4.3l-2.5 1.5-2.5-1.5v-4.3L4 11z" }),
6
+ /* @__PURE__ */ h("path", { d: "M20 11l-2.5 4.3v4.3l-2.5 1.5-2.5-1.5v-4.3L10 11h2.5l2.5 4.3v4.3l2.5 1.5 2.5-1.5v-4.3L20 11z" }),
7
+ /* @__PURE__ */ h("path", { d: "M12 18l2.5 4.3v4.3l2.5 1.5 2.5-1.5v-4.3L20 18h-2.5l-2.5 4.3v4.3l-2.5 1.5-2.5-1.5v-4.3L12 18z" })
8
+ ] }), n = (l) => /* @__PURE__ */ t(M, { ...l, children: [
9
+ /* @__PURE__ */ h("path", { d: "M12 5c-1.2 0-2 1.2-2 2.5s.8 2.5 2 2.5 2-1.2 2-2.5S13.2 5 12 5z" }),
10
+ /* @__PURE__ */ h("path", { d: "M6.5 8.5c-.8 0-1.5 1-1.5 2s.7 2 1.5 2 1.5-1 1.5-2-.7-2-1.5-2z" }),
11
+ /* @__PURE__ */ h("path", { d: "M17.5 8.5c.8 0 1.5 1 1.5 2s-.7 2-1.5 2-1.5-1-1.5-2 .7-2 1.5-2z" }),
12
+ /* @__PURE__ */ h("path", { d: "M4 14c-.6 0-1.2.8-1.2 1.6s.6 1.6 1.2 1.6 1.2-.8 1.2-1.6S4.6 14 4 14z" }),
13
+ /* @__PURE__ */ h("path", { d: "M20 14c.6 0 1.2.8 1.2 1.6s-.6 1.6-1.2 1.6-1.2-.8-1.2-1.6.6-1.6 1.2-1.6z" }),
14
+ /* @__PURE__ */ h("path", { d: "M12 14v5M8 12v3M16 12v3M5 17v1.5M19 17v1.5" })
15
+ ] }), v = (l) => /* @__PURE__ */ t(M, { ...l, children: [
16
+ /* @__PURE__ */ h("path", { d: "M12 3L8 9h2v4H6l4 6 4-6h-4V9h2L12 3z" }),
17
+ /* @__PURE__ */ h("path", { d: "M4 21h16M7 21v-5l2.5 3 2.5-3v5M14.5 21v-3l1.5 2 1.5-2v3" }),
18
+ /* @__PURE__ */ h("path", { d: "M2 21h3l1.5-2 1.5 2h3" })
19
+ ] }), p = (l) => /* @__PURE__ */ t(M, { ...l, children: [
20
+ /* @__PURE__ */ h("path", { d: "M4 20V10l8-6 8 6v10" }),
21
+ /* @__PURE__ */ h("path", { d: "M4 10h16M9 20V14h6v6" }),
22
+ /* @__PURE__ */ h("path", { d: "M12 10v4" })
23
+ ] }), o = (l) => /* @__PURE__ */ t(M, { ...l, children: [
24
+ /* @__PURE__ */ h("path", { d: "M4 12c0-3 2-6 6-6s6 3 6 6-2 6-6 6-6-3-6-6z" }),
25
+ /* @__PURE__ */ h("path", { d: "M10 6v12M7 9l2 2.5-2 2.5M17 9l-2 2.5 2 2.5" }),
26
+ /* @__PURE__ */ h("path", { d: "M6 11c1 .5 2 .5 3 0M6 13c1 .5 2 .5 3 0" })
27
+ ] }), s = (l) => /* @__PURE__ */ t(M, { ...l, children: [
28
+ /* @__PURE__ */ h("path", { d: "M12 3c1.5 1.5 3 4 3 6.5a3 3 0 0 1-6 0C9 7 10.5 4.5 12 3z" }),
29
+ /* @__PURE__ */ h("path", { d: "M12 21c-2.5-1.5-5-4-5-7.5 0-1.5.8-3 2-4 1.2 1 2 2.5 2 4 0 3.5-2.5 6-5 7.5z" }),
30
+ /* @__PURE__ */ h("path", { d: "M12 12v2" })
31
+ ] }), e = (l) => /* @__PURE__ */ t(M, { ...l, children: [
32
+ /* @__PURE__ */ h("path", { d: "M12 2l1.5 5h-3l1.5 5h-3l1.5 5h-3l1.5-5H8l1.5-5h3L12 2z" }),
33
+ /* @__PURE__ */ h("path", { d: "M12 22v-1.5" })
34
+ ] }), r = (l) => /* @__PURE__ */ t(M, { ...l, children: [
35
+ /* @__PURE__ */ h("path", { d: "M4 20L12 4l8 16H4z" }),
36
+ /* @__PURE__ */ h("path", { d: "M8 20l4-8 4 8" })
37
+ ] });
38
+ export {
39
+ s as CampfireIcon,
40
+ n as ClawIcon,
41
+ p as DenIcon,
42
+ v as ForestIcon,
43
+ a as HoneycombIcon,
44
+ r as MountainIcon,
45
+ e as PineTreeIcon,
46
+ o as SalmonIcon
47
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const n=require("./icons/action.cjs"),o=require("./icons/navigation.cjs"),t=require("./icons/content.cjs"),r=require("./icons/communication.cjs"),e=require("./icons/status.cjs"),i=require("./icons/media.cjs"),s=require("./icons/editor.cjs"),c=require("./icons/misc.cjs"),I=e.CheckIcon,h=o.CloseIcon,C=n.EditIcon,v=o.ChevronDownIcon,u=o.ChevronRightIcon,a=o.ChevronLeftIcon,g=o.ChevronsLeftIcon,q=o.ChevronsRightIcon,d=c.XIcon,f={...n,...o,...t,...r,...e,...i,...s,...c,Action:n,Navigation:o,Content:t,Communication:r,Status:e,Media:i,Editor:s,Misc:c};exports.BearIcons=f;exports.CheckIcon=I;exports.ChevronDownIcon=v;exports.ChevronLeftIcon=a;exports.ChevronRightIcon=u;exports.ChevronsLeftIcon=g;exports.ChevronsRightIcon=q;exports.CloseIcon=h;exports.EditIcon=C;exports.XIcon=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const n=require("./icons/action.cjs"),o=require("./icons/navigation.cjs"),t=require("./icons/content.cjs"),r=require("./icons/communication.cjs"),e=require("./icons/status.cjs"),i=require("./icons/media.cjs"),s=require("./icons/editor.cjs"),c=require("./icons/misc.cjs"),I=require("./icons/bear.cjs"),h=e.CheckIcon,C=o.CloseIcon,u=n.EditIcon,v=o.ChevronDownIcon,a=o.ChevronRightIcon,q=o.ChevronLeftIcon,g=o.ChevronsLeftIcon,d=o.ChevronsRightIcon,f=c.XIcon,m={...n,...o,...t,...r,...e,...i,...s,...c,...I,Action:n,Navigation:o,Content:t,Communication:r,Status:e,Media:i,Editor:s,Misc:c,Bear:I};exports.BearIcons=m;exports.CheckIcon=h;exports.ChevronDownIcon=v;exports.ChevronLeftIcon=q;exports.ChevronRightIcon=a;exports.ChevronsLeftIcon=g;exports.ChevronsRightIcon=d;exports.CloseIcon=C;exports.EditIcon=u;exports.XIcon=f;
@@ -14,6 +14,7 @@ import * as StatusIcons from './icons/status';
14
14
  import * as MediaIcons from './icons/media';
15
15
  import * as EditorIcons from './icons/editor';
16
16
  import * as MiscIcons from './icons/misc';
17
+ import * as BearCategoryIcons from './icons/bear';
17
18
  export declare const CheckIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
18
19
  export declare const CloseIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
19
20
  export declare const EditIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
@@ -40,6 +41,14 @@ export declare const UserPlusIcon: import('react').FunctionComponent<Omit<import
40
41
  export declare const UserMinusIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
41
42
  export declare const UserCheckIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
42
43
  export declare const UserXIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
44
+ export declare const HoneycombIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
45
+ export declare const ClawIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
46
+ export declare const ForestIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
47
+ export declare const DenIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
48
+ export declare const SalmonIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
49
+ export declare const CampfireIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
50
+ export declare const PineTreeIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
51
+ export declare const MountainIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
43
52
  /**
44
53
  * BearIcons - All icons organized by category
45
54
  *
@@ -65,6 +74,15 @@ export declare const BearIcons: {
65
74
  Media: typeof MediaIcons;
66
75
  Editor: typeof EditorIcons;
67
76
  Misc: typeof MiscIcons;
77
+ Bear: typeof BearCategoryIcons;
78
+ HoneycombIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
79
+ ClawIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
80
+ ForestIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
81
+ DenIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
82
+ SalmonIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
83
+ CampfireIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
84
+ PineTreeIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
85
+ MountainIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
68
86
  SunIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
69
87
  MoonIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
70
88
  CloudIcon: import('react').FunctionComponent<Omit<import('./Icon.types').IconProps, "children">>;
@@ -1,18 +1,19 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import * as o from "./icons/action.js";
4
- import { EditIcon as m } from "./icons/action.js";
4
+ import { EditIcon as a } from "./icons/action.js";
5
5
  import * as n from "./icons/navigation.js";
6
- import { CloseIcon as a, ChevronDownIcon as I, ChevronRightIcon as h, ChevronLeftIcon as C, ChevronsLeftIcon as f, ChevronsRightIcon as v } from "./icons/navigation.js";
6
+ import { CloseIcon as I, ChevronDownIcon as h, ChevronRightIcon as C, ChevronLeftIcon as f, ChevronsLeftIcon as v, ChevronsRightIcon as p } from "./icons/navigation.js";
7
7
  import * as t from "./icons/content.js";
8
8
  import * as c from "./icons/communication.js";
9
9
  import * as r from "./icons/status.js";
10
- import { CheckIcon as p } from "./icons/status.js";
10
+ import { CheckIcon as $ } from "./icons/status.js";
11
11
  import * as s from "./icons/media.js";
12
12
  import * as i from "./icons/editor.js";
13
13
  import * as e from "./icons/misc.js";
14
- import { XIcon as $ } from "./icons/misc.js";
15
- const k = p, l = a, w = m, D = I, X = h, M = C, x = f, A = v, B = $, N = {
14
+ import { XIcon as g } from "./icons/misc.js";
15
+ import * as m from "./icons/bear.js";
16
+ const l = $, w = I, D = a, X = h, B = C, M = f, b = v, x = p, A = g, N = {
16
17
  // Flat access to common icons (shortcuts)
17
18
  ...o,
18
19
  ...n,
@@ -22,7 +23,7 @@ const k = p, l = a, w = m, D = I, X = h, M = C, x = f, A = v, B = $, N = {
22
23
  ...s,
23
24
  ...i,
24
25
  ...e,
25
- // Category-based access
26
+ ...m,
26
27
  Action: o,
27
28
  Navigation: n,
28
29
  Content: t,
@@ -30,17 +31,18 @@ const k = p, l = a, w = m, D = I, X = h, M = C, x = f, A = v, B = $, N = {
30
31
  Status: r,
31
32
  Media: s,
32
33
  Editor: i,
33
- Misc: e
34
+ Misc: e,
35
+ Bear: m
34
36
  };
35
37
  export {
36
38
  N as BearIcons,
37
- k as CheckIcon,
38
- D as ChevronDownIcon,
39
+ l as CheckIcon,
40
+ X as ChevronDownIcon,
39
41
  M as ChevronLeftIcon,
40
- X as ChevronRightIcon,
41
- x as ChevronsLeftIcon,
42
- A as ChevronsRightIcon,
43
- l as CloseIcon,
44
- w as EditIcon,
45
- B as XIcon
42
+ B as ChevronRightIcon,
43
+ b as ChevronsLeftIcon,
44
+ x as ChevronsRightIcon,
45
+ w as CloseIcon,
46
+ D as EditIcon,
47
+ A as XIcon
46
48
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),h=require("../../utils/cn.cjs"),l=require("./ImageGallery.const.cjs"),j=({images:S,currentIndex:s,onClose:t,onNavigate:a})=>{const i=S[s],o=S.length;return d.useEffect(()=>{const r=n=>{n.key==="Escape"&&t(),n.key==="ArrowLeft"&&s>0&&a(s-1),n.key==="ArrowRight"&&s<o-1&&a(s+1)};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[s,o,t,a]),e.jsxs("div",{className:l.OVERLAY_CLASSES,onClick:t,role:"dialog","aria-label":"Image lightbox",children:[e.jsx("div",{onClick:r=>r.stopPropagation(),children:e.jsx("img",{src:i.src,alt:i.alt??"",className:l.LIGHTBOX_IMG_CLASSES})}),e.jsx("button",{className:l.CLOSE_BTN_CLASSES,onClick:t,"aria-label":"Close",children:"✕"}),s>0&&e.jsx("button",{className:h.cn(l.NAV_BTN_CLASSES,"bear-left-4"),onClick:()=>a(s-1),"aria-label":"Previous",children:e.jsx("svg",{className:"bear-w-5 bear-h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),s<o-1&&e.jsx("button",{className:h.cn(l.NAV_BTN_CLASSES,"bear-right-4"),onClick:()=>a(s+1),"aria-label":"Next",children:e.jsx("svg",{className:"bear-w-5 bear-h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}),i.caption&&e.jsx("div",{className:l.CAPTION_CLASSES,children:i.caption}),e.jsxs("div",{className:l.COUNTER_CLASSES,children:[s+1," / ",o]})]})},k=S=>{const{images:s,columns:t=l.DEFAULT_COLUMNS,gap:a=l.DEFAULT_GAP,rounded:i=!0,enableLightbox:o=!0,thumbnailHeight:r=l.DEFAULT_THUMB_HEIGHT,className:n,testId:C,...b}=S,[L,m]=d.useState(null),g=d.useCallback(()=>m(null),[]),E=d.useCallback(c=>m(c),[]);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:h.cn(l.ROOT_CLASSES,n),style:{gridTemplateColumns:`repeat(${t}, 1fr)`,gap:a},"data-testid":C,...b,children:s.map((c,u)=>e.jsx("div",{className:h.cn(l.THUMB_CLASSES,i&&l.ROUNDED_CLASSES),style:{height:r},onClick:()=>o&&m(u),children:e.jsx("img",{src:c.thumbnail??c.src,alt:c.alt??"",className:l.THUMB_IMG_CLASSES,loading:"lazy"})},u))}),L!==null&&e.jsx(j,{images:s,currentIndex:L,onClose:g,onNavigate:E})]})};exports.ImageGallery=k;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=3,r=8,a=200,b="Bear-ImageGallery bear-grid",t="bear-overflow-hidden bear-cursor-pointer bear-transition-transform hover:bear-scale-[1.02] bear-bg-gray-100 dark:bear-bg-zinc-800",S="bear-w-full bear-h-full bear-object-cover",o="bear-rounded-lg",n="bear-fixed bear-inset-0 bear-z-[99999] bear-bg-black/90 bear-flex bear-items-center bear-justify-center bear-animate-in",s="bear-max-w-[90vw] bear-max-h-[85vh] bear-object-contain bear-select-none",l="bear-absolute bear-top-1/2 bear--translate-y-1/2 bear-bg-white/10 hover:bear-bg-white/20 bear-text-white bear-rounded-full bear-w-10 bear-h-10 bear-flex bear-items-center bear-justify-center bear-transition-colors bear-backdrop-blur-sm",c="bear-absolute bear-top-4 bear-right-4 bear-text-white bear-bg-white/10 hover:bear-bg-white/20 bear-rounded-full bear-w-8 bear-h-8 bear-flex bear-items-center bear-justify-center bear-transition-colors bear-backdrop-blur-sm",E="bear-absolute bear-bottom-4 bear-left-1/2 bear--translate-x-1/2 bear-text-white bear-text-sm bear-bg-black/50 bear-px-4 bear-py-2 bear-rounded-full bear-backdrop-blur-sm",_="bear-absolute bear-top-4 bear-left-4 bear-text-white/70 bear-text-sm";exports.CAPTION_CLASSES=E;exports.CLOSE_BTN_CLASSES=c;exports.COUNTER_CLASSES=_;exports.DEFAULT_COLUMNS=e;exports.DEFAULT_GAP=r;exports.DEFAULT_THUMB_HEIGHT=a;exports.LIGHTBOX_IMG_CLASSES=s;exports.NAV_BTN_CLASSES=l;exports.OVERLAY_CLASSES=n;exports.ROOT_CLASSES=b;exports.ROUNDED_CLASSES=o;exports.THUMB_CLASSES=t;exports.THUMB_IMG_CLASSES=S;
@@ -0,0 +1,13 @@
1
+ export declare const DEFAULT_COLUMNS = 3;
2
+ export declare const DEFAULT_GAP = 8;
3
+ export declare const DEFAULT_THUMB_HEIGHT = 200;
4
+ export declare const ROOT_CLASSES = "Bear-ImageGallery bear-grid";
5
+ export declare const THUMB_CLASSES = "bear-overflow-hidden bear-cursor-pointer bear-transition-transform hover:bear-scale-[1.02] bear-bg-gray-100 dark:bear-bg-zinc-800";
6
+ export declare const THUMB_IMG_CLASSES = "bear-w-full bear-h-full bear-object-cover";
7
+ export declare const ROUNDED_CLASSES = "bear-rounded-lg";
8
+ export declare const OVERLAY_CLASSES = "bear-fixed bear-inset-0 bear-z-[99999] bear-bg-black/90 bear-flex bear-items-center bear-justify-center bear-animate-in";
9
+ export declare const LIGHTBOX_IMG_CLASSES = "bear-max-w-[90vw] bear-max-h-[85vh] bear-object-contain bear-select-none";
10
+ export declare const NAV_BTN_CLASSES = "bear-absolute bear-top-1/2 bear--translate-y-1/2 bear-bg-white/10 hover:bear-bg-white/20 bear-text-white bear-rounded-full bear-w-10 bear-h-10 bear-flex bear-items-center bear-justify-center bear-transition-colors bear-backdrop-blur-sm";
11
+ export declare const CLOSE_BTN_CLASSES = "bear-absolute bear-top-4 bear-right-4 bear-text-white bear-bg-white/10 hover:bear-bg-white/20 bear-rounded-full bear-w-8 bear-h-8 bear-flex bear-items-center bear-justify-center bear-transition-colors bear-backdrop-blur-sm";
12
+ export declare const CAPTION_CLASSES = "bear-absolute bear-bottom-4 bear-left-1/2 bear--translate-x-1/2 bear-text-white bear-text-sm bear-bg-black/50 bear-px-4 bear-py-2 bear-rounded-full bear-backdrop-blur-sm";
13
+ export declare const COUNTER_CLASSES = "bear-absolute bear-top-4 bear-left-4 bear-text-white/70 bear-text-sm";
@@ -0,0 +1,16 @@
1
+ const e = 3, r = 8, a = 200, b = "Bear-ImageGallery bear-grid", t = "bear-overflow-hidden bear-cursor-pointer bear-transition-transform hover:bear-scale-[1.02] bear-bg-gray-100 dark:bear-bg-zinc-800", o = "bear-w-full bear-h-full bear-object-cover", n = "bear-rounded-lg", s = "bear-fixed bear-inset-0 bear-z-[99999] bear-bg-black/90 bear-flex bear-items-center bear-justify-center bear-animate-in", c = "bear-max-w-[90vw] bear-max-h-[85vh] bear-object-contain bear-select-none", l = "bear-absolute bear-top-1/2 bear--translate-y-1/2 bear-bg-white/10 hover:bear-bg-white/20 bear-text-white bear-rounded-full bear-w-10 bear-h-10 bear-flex bear-items-center bear-justify-center bear-transition-colors bear-backdrop-blur-sm", S = "bear-absolute bear-top-4 bear-right-4 bear-text-white bear-bg-white/10 hover:bear-bg-white/20 bear-rounded-full bear-w-8 bear-h-8 bear-flex bear-items-center bear-justify-center bear-transition-colors bear-backdrop-blur-sm", i = "bear-absolute bear-bottom-4 bear-left-1/2 bear--translate-x-1/2 bear-text-white bear-text-sm bear-bg-black/50 bear-px-4 bear-py-2 bear-rounded-full bear-backdrop-blur-sm", u = "bear-absolute bear-top-4 bear-left-4 bear-text-white/70 bear-text-sm";
2
+ export {
3
+ i as CAPTION_CLASSES,
4
+ S as CLOSE_BTN_CLASSES,
5
+ u as COUNTER_CLASSES,
6
+ e as DEFAULT_COLUMNS,
7
+ r as DEFAULT_GAP,
8
+ a as DEFAULT_THUMB_HEIGHT,
9
+ c as LIGHTBOX_IMG_CLASSES,
10
+ l as NAV_BTN_CLASSES,
11
+ s as OVERLAY_CLASSES,
12
+ b as ROOT_CLASSES,
13
+ n as ROUNDED_CLASSES,
14
+ t as THUMB_CLASSES,
15
+ o as THUMB_IMG_CLASSES
16
+ };
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ImageGalleryProps } from './ImageGallery.types';
3
+ export declare const ImageGallery: FC<ImageGalleryProps>;
4
+ export default ImageGallery;
@@ -0,0 +1,61 @@
1
+ import { jsxs as S, Fragment as N, jsx as l } from "react/jsx-runtime";
2
+ import { useState as p, useCallback as C, useEffect as _ } from "react";
3
+ import { cn as d } from "../../utils/cn.js";
4
+ import { DEFAULT_COLUMNS as u, DEFAULT_GAP as f, DEFAULT_THUMB_HEIGHT as T, THUMB_IMG_CLASSES as v, ROUNDED_CLASSES as w, THUMB_CLASSES as y, ROOT_CLASSES as O, OVERLAY_CLASSES as U, LIGHTBOX_IMG_CLASSES as B, CLOSE_BTN_CLASSES as M, NAV_BTN_CLASSES as b, CAPTION_CLASSES as H, COUNTER_CLASSES as G } from "./ImageGallery.const.js";
5
+ const D = ({ images: c, currentIndex: e, onClose: t, onNavigate: a }) => {
6
+ const o = c[e], i = c.length;
7
+ return _(() => {
8
+ const s = (r) => {
9
+ r.key === "Escape" && t(), r.key === "ArrowLeft" && e > 0 && a(e - 1), r.key === "ArrowRight" && e < i - 1 && a(e + 1);
10
+ };
11
+ return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
12
+ }, [e, i, t, a]), /* @__PURE__ */ S("div", { className: U, onClick: t, role: "dialog", "aria-label": "Image lightbox", children: [
13
+ /* @__PURE__ */ l("div", { onClick: (s) => s.stopPropagation(), children: /* @__PURE__ */ l("img", { src: o.src, alt: o.alt ?? "", className: B }) }),
14
+ /* @__PURE__ */ l("button", { className: M, onClick: t, "aria-label": "Close", children: "✕" }),
15
+ e > 0 && /* @__PURE__ */ l("button", { className: d(b, "bear-left-4"), onClick: () => a(e - 1), "aria-label": "Previous", children: /* @__PURE__ */ l("svg", { className: "bear-w-5 bear-h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 19l-7-7 7-7" }) }) }),
16
+ e < i - 1 && /* @__PURE__ */ l("button", { className: d(b, "bear-right-4"), onClick: () => a(e + 1), "aria-label": "Next", children: /* @__PURE__ */ l("svg", { className: "bear-w-5 bear-h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" }) }) }),
17
+ o.caption && /* @__PURE__ */ l("div", { className: H, children: o.caption }),
18
+ /* @__PURE__ */ S("div", { className: G, children: [
19
+ e + 1,
20
+ " / ",
21
+ i
22
+ ] })
23
+ ] });
24
+ }, P = (c) => {
25
+ const {
26
+ images: e,
27
+ columns: t = u,
28
+ gap: a = f,
29
+ rounded: o = !0,
30
+ enableLightbox: i = !0,
31
+ thumbnailHeight: s = T,
32
+ className: r,
33
+ testId: E,
34
+ ...k
35
+ } = c, [m, h] = p(null), g = C(() => h(null), []), A = C((n) => h(n), []);
36
+ return /* @__PURE__ */ S(N, { children: [
37
+ /* @__PURE__ */ l(
38
+ "div",
39
+ {
40
+ className: d(O, r),
41
+ style: { gridTemplateColumns: `repeat(${t}, 1fr)`, gap: a },
42
+ "data-testid": E,
43
+ ...k,
44
+ children: e.map((n, L) => /* @__PURE__ */ l(
45
+ "div",
46
+ {
47
+ className: d(y, o && w),
48
+ style: { height: s },
49
+ onClick: () => i && h(L),
50
+ children: /* @__PURE__ */ l("img", { src: n.thumbnail ?? n.src, alt: n.alt ?? "", className: v, loading: "lazy" })
51
+ },
52
+ L
53
+ ))
54
+ }
55
+ ),
56
+ m !== null && /* @__PURE__ */ l(D, { images: e, currentIndex: m, onClose: g, onNavigate: A })
57
+ ] });
58
+ };
59
+ export {
60
+ P as ImageGallery
61
+ };
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface GalleryImage {
3
+ src: string;
4
+ alt?: string;
5
+ thumbnail?: string;
6
+ caption?: string;
7
+ }
8
+ export interface ImageGalleryProps extends HTMLAttributes<HTMLDivElement> {
9
+ images: GalleryImage[];
10
+ columns?: number;
11
+ gap?: number;
12
+ rounded?: boolean;
13
+ enableLightbox?: boolean;
14
+ thumbnailHeight?: number;
15
+ testId?: string;
16
+ }
17
+ export interface LightboxProps {
18
+ images: GalleryImage[];
19
+ currentIndex: number;
20
+ onClose: () => void;
21
+ onNavigate: (index: number) => void;
22
+ }
@@ -0,0 +1,2 @@
1
+ export { ImageGallery } from './ImageGallery';
2
+ export type { ImageGalleryProps, GalleryImage, LightboxProps } from './ImageGallery.types';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),a=require("../../utils/cn.cjs");require("react");const g=require("../Typography/Typography.cjs"),t=require("./Indicator.const.cjs"),L=({children:c,label:s,color:e,size:n=t.DEFAULT_SIZE,position:d="top-end",radius:S="full",processing:u=!1,disabled:l=!1,offset:r,withBorder:C=!1,inline:p=!1,className:y,testId:m,...I})=>{const O=t.POSITION_MAP[d],f=t.RADIUS_MAP[S],o=typeof e=="string"&&!e.startsWith("bear-"),h=o?void 0:e??t.DEFAULT_COLOR,A=typeof n=="number"?{width:n,height:n,minWidth:n}:void 0,_=typeof r=="number"?{margin:r}:void 0;return i.jsxs("div",{className:a.cn(t.ROOT_CLASS,p&&t.ROOT_INLINE_CLASS,y),"data-testid":m,...I,children:[c,!l&&i.jsx("span",{className:a.cn(t.INDICATOR_CLASS,O,f,h,C&&t.BORDER_CLASS,u&&t.PROCESSING_CLASS),style:{...A,..._,...o?{backgroundColor:e}:void 0},children:s!=null&&i.jsx(g.Typography,{variant:"caption",className:"bear-text-white dark:bear-text-zinc-100 bear-font-medium",children:s})})]})};exports.Indicator=L;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=10,a="bear-bg-pink-500 dark:bear-bg-pink-400",r={"top-start":"bear-top-0 bear-left-0 bear-translate-x-[-50%] bear-translate-y-[-50%]","top-center":"bear-top-0 bear-left-1/2 bear-translate-x-[-50%] bear-translate-y-[-50%]","top-end":"bear-top-0 bear-right-0 bear-translate-x-[50%] bear-translate-y-[-50%]","middle-start":"bear-top-1/2 bear-left-0 bear-translate-x-[-50%] bear-translate-y-[-50%]","middle-end":"bear-top-1/2 bear-right-0 bear-translate-x-[50%] bear-translate-y-[-50%]","bottom-start":"bear-bottom-0 bear-left-0 bear-translate-x-[-50%] bear-translate-y-[50%]","bottom-center":"bear-bottom-0 bear-left-1/2 bear-translate-x-[-50%] bear-translate-y-[50%]","bottom-end":"bear-bottom-0 bear-right-0 bear-translate-x-[50%] bear-translate-y-[50%]"},t={sm:"bear-rounded-sm",md:"bear-rounded-md",lg:"bear-rounded-lg",full:"bear-rounded-full"},b="Bear-Indicator bear-relative",n="Bear-Indicator bear-relative bear-inline-flex",o="Bear-Indicator__dot bear-absolute bear-flex bear-items-center bear-justify-center bear-pointer-events-none",l="bear-ring-2 bear-ring-white dark:bear-ring-zinc-900",s="bear-animate-pulse";exports.BORDER_CLASS=l;exports.DEFAULT_COLOR=a;exports.DEFAULT_SIZE=e;exports.INDICATOR_CLASS=o;exports.POSITION_MAP=r;exports.PROCESSING_CLASS=s;exports.RADIUS_MAP=t;exports.ROOT_CLASS=b;exports.ROOT_INLINE_CLASS=n;
@@ -0,0 +1,15 @@
1
+ import { IndicatorPosition } from './Indicator.types';
2
+ export declare const DEFAULT_SIZE = 10;
3
+ export declare const DEFAULT_COLOR = "bear-bg-pink-500 dark:bear-bg-pink-400";
4
+ export declare const POSITION_MAP: Record<IndicatorPosition, string>;
5
+ export declare const RADIUS_MAP: {
6
+ readonly sm: "bear-rounded-sm";
7
+ readonly md: "bear-rounded-md";
8
+ readonly lg: "bear-rounded-lg";
9
+ readonly full: "bear-rounded-full";
10
+ };
11
+ export declare const ROOT_CLASS = "Bear-Indicator bear-relative";
12
+ export declare const ROOT_INLINE_CLASS = "Bear-Indicator bear-relative bear-inline-flex";
13
+ export declare const INDICATOR_CLASS = "Bear-Indicator__dot bear-absolute bear-flex bear-items-center bear-justify-center bear-pointer-events-none";
14
+ export declare const BORDER_CLASS = "bear-ring-2 bear-ring-white dark:bear-ring-zinc-900";
15
+ export declare const PROCESSING_CLASS = "bear-animate-pulse";
@@ -0,0 +1,26 @@
1
+ const e = 10, a = "bear-bg-pink-500 dark:bear-bg-pink-400", r = {
2
+ "top-start": "bear-top-0 bear-left-0 bear-translate-x-[-50%] bear-translate-y-[-50%]",
3
+ "top-center": "bear-top-0 bear-left-1/2 bear-translate-x-[-50%] bear-translate-y-[-50%]",
4
+ "top-end": "bear-top-0 bear-right-0 bear-translate-x-[50%] bear-translate-y-[-50%]",
5
+ "middle-start": "bear-top-1/2 bear-left-0 bear-translate-x-[-50%] bear-translate-y-[-50%]",
6
+ "middle-end": "bear-top-1/2 bear-right-0 bear-translate-x-[50%] bear-translate-y-[-50%]",
7
+ "bottom-start": "bear-bottom-0 bear-left-0 bear-translate-x-[-50%] bear-translate-y-[50%]",
8
+ "bottom-center": "bear-bottom-0 bear-left-1/2 bear-translate-x-[-50%] bear-translate-y-[50%]",
9
+ "bottom-end": "bear-bottom-0 bear-right-0 bear-translate-x-[50%] bear-translate-y-[50%]"
10
+ }, t = {
11
+ sm: "bear-rounded-sm",
12
+ md: "bear-rounded-md",
13
+ lg: "bear-rounded-lg",
14
+ full: "bear-rounded-full"
15
+ }, b = "Bear-Indicator bear-relative", n = "Bear-Indicator bear-relative bear-inline-flex", o = "Bear-Indicator__dot bear-absolute bear-flex bear-items-center bear-justify-center bear-pointer-events-none", l = "bear-ring-2 bear-ring-white dark:bear-ring-zinc-900", s = "bear-animate-pulse";
16
+ export {
17
+ l as BORDER_CLASS,
18
+ a as DEFAULT_COLOR,
19
+ e as DEFAULT_SIZE,
20
+ o as INDICATOR_CLASS,
21
+ r as POSITION_MAP,
22
+ s as PROCESSING_CLASS,
23
+ t as RADIUS_MAP,
24
+ b as ROOT_CLASS,
25
+ n as ROOT_INLINE_CLASS
26
+ };
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { IndicatorProps } from './Indicator.types';
3
+ export declare const Indicator: FC<IndicatorProps>;
4
+ export default Indicator;
@@ -0,0 +1,56 @@
1
+ import { jsxs as y, jsx as n } from "react/jsx-runtime";
2
+ import { cn as a } from "../../utils/cn.js";
3
+ import "react";
4
+ import { Typography as L } from "../Typography/Typography.js";
5
+ import { DEFAULT_SIZE as N, PROCESSING_CLASS as R, BORDER_CLASS as g, DEFAULT_COLOR as v, RADIUS_MAP as T, POSITION_MAP as E, INDICATOR_CLASS as x, ROOT_INLINE_CLASS as D, ROOT_CLASS as b } from "./Indicator.const.js";
6
+ const F = ({
7
+ children: e,
8
+ label: t,
9
+ color: s,
10
+ size: o = N,
11
+ position: d = "top-end",
12
+ radius: m = "full",
13
+ processing: S = !1,
14
+ disabled: p = !1,
15
+ offset: i,
16
+ withBorder: c = !1,
17
+ inline: f = !1,
18
+ className: C,
19
+ testId: l,
20
+ ...A
21
+ }) => {
22
+ const O = E[d], h = T[m], r = typeof s == "string" && !s.startsWith("bear-"), I = r ? void 0 : s ?? v, _ = typeof o == "number" ? { width: o, height: o, minWidth: o } : void 0, u = typeof i == "number" ? { margin: i } : void 0;
23
+ return /* @__PURE__ */ y(
24
+ "div",
25
+ {
26
+ className: a(b, f && D, C),
27
+ "data-testid": l,
28
+ ...A,
29
+ children: [
30
+ e,
31
+ !p && /* @__PURE__ */ n(
32
+ "span",
33
+ {
34
+ className: a(
35
+ x,
36
+ O,
37
+ h,
38
+ I,
39
+ c && g,
40
+ S && R
41
+ ),
42
+ style: {
43
+ ..._,
44
+ ...u,
45
+ ...r ? { backgroundColor: s } : void 0
46
+ },
47
+ children: t != null && /* @__PURE__ */ n(L, { variant: "caption", className: "bear-text-white dark:bear-text-zinc-100 bear-font-medium", children: t })
48
+ }
49
+ )
50
+ ]
51
+ }
52
+ );
53
+ };
54
+ export {
55
+ F as Indicator
56
+ };
@@ -0,0 +1,16 @@
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
+ export type IndicatorPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
3
+ export interface IndicatorProps extends HTMLAttributes<HTMLDivElement> {
4
+ children: ReactNode;
5
+ label?: ReactNode;
6
+ color?: string;
7
+ size?: number;
8
+ position?: IndicatorPosition;
9
+ radius?: 'sm' | 'md' | 'lg' | 'full';
10
+ processing?: boolean;
11
+ disabled?: boolean;
12
+ offset?: number;
13
+ withBorder?: boolean;
14
+ inline?: boolean;
15
+ testId?: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ export { Indicator, default } from './Indicator';
2
+ export type { IndicatorProps, IndicatorPosition } from './Indicator.types';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),g=require("../../utils/cn.cjs"),n=require("./InfiniteScroll.const.cjs"),_=x=>{const{onLoadMore:i,hasMore:s,loading:r=!1,threshold:d=n.DEFAULT_THRESHOLD,manual:t=!1,loader:u,endMessage:S,loadMoreLabel:b="Load more",inverse:o=!1,children:v,className:E,testId:j,...R}=x,a=c.useRef(null),f=c.useRef(r);f.current=r;const l=c.useCallback(()=>{f.current||!s||i()},[i,s]);c.useEffect(()=>{if(t||!s)return;const L=a.current;if(!L)return;const m=new IntersectionObserver(M=>{var N;(N=M[0])!=null&&N.isIntersecting&&l()},{threshold:0,rootMargin:`${Math.round(d*100)}px`});return m.observe(L),()=>m.disconnect()},[t,s,l,d]);const h=e.jsx("div",{className:n.LOADER_CLASSES,children:e.jsx("div",{className:n.SPINNER_CLASSES})}),A=e.jsxs(e.Fragment,{children:[o&&s&&!t&&e.jsx("div",{ref:a,className:"bear-h-px"}),o&&r&&(u??h),v,!o&&r&&(u??h),!o&&s&&!t&&e.jsx("div",{ref:a,className:"bear-h-px"}),s&&t&&!r&&e.jsx("button",{type:"button",onClick:l,className:n.MANUAL_BTN_CLASSES,children:b}),!s&&S&&e.jsx("div",{className:n.END_CLASSES,children:S})]});return e.jsx("div",{className:g.cn(n.ROOT_CLASSES,E),"data-testid":j,...R,children:A})};exports.InfiniteScroll=_;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=.8,r="Bear-InfiniteScroll bear-relative",a="bear-flex bear-items-center bear-justify-center bear-py-4",b="bear-text-center bear-py-4 bear-text-sm bear-text-gray-400 dark:bear-text-zinc-500",t="bear-w-full bear-py-2.5 bear-text-sm bear-font-medium bear-text-pink-600 dark:bear-text-pink-400 bear-bg-pink-50 dark:bear-bg-pink-900/20 bear-rounded-lg bear-transition-colors hover:bear-bg-pink-100 dark:hover:bear-bg-pink-900/30 bear-cursor-pointer",S="bear-w-5 bear-h-5 bear-border-2 bear-border-pink-200 bear-border-t-pink-500 bear-rounded-full bear-animate-spin";exports.DEFAULT_THRESHOLD=e;exports.END_CLASSES=b;exports.LOADER_CLASSES=a;exports.MANUAL_BTN_CLASSES=t;exports.ROOT_CLASSES=r;exports.SPINNER_CLASSES=S;
@@ -0,0 +1,7 @@
1
+ export declare const DEFAULT_THRESHOLD = 0.8;
2
+ export declare const SENTINEL_HEIGHT = 1;
3
+ export declare const ROOT_CLASSES = "Bear-InfiniteScroll bear-relative";
4
+ export declare const LOADER_CLASSES = "bear-flex bear-items-center bear-justify-center bear-py-4";
5
+ export declare const END_CLASSES = "bear-text-center bear-py-4 bear-text-sm bear-text-gray-400 dark:bear-text-zinc-500";
6
+ export declare const MANUAL_BTN_CLASSES = "bear-w-full bear-py-2.5 bear-text-sm bear-font-medium bear-text-pink-600 dark:bear-text-pink-400 bear-bg-pink-50 dark:bear-bg-pink-900/20 bear-rounded-lg bear-transition-colors hover:bear-bg-pink-100 dark:hover:bear-bg-pink-900/30 bear-cursor-pointer";
7
+ export declare const SPINNER_CLASSES = "bear-w-5 bear-h-5 bear-border-2 bear-border-pink-200 bear-border-t-pink-500 bear-rounded-full bear-animate-spin";
@@ -0,0 +1,9 @@
1
+ const e = 0.8, r = "Bear-InfiniteScroll bear-relative", a = "bear-flex bear-items-center bear-justify-center bear-py-4", b = "bear-text-center bear-py-4 bear-text-sm bear-text-gray-400 dark:bear-text-zinc-500", t = "bear-w-full bear-py-2.5 bear-text-sm bear-font-medium bear-text-pink-600 dark:bear-text-pink-400 bear-bg-pink-50 dark:bear-bg-pink-900/20 bear-rounded-lg bear-transition-colors hover:bear-bg-pink-100 dark:hover:bear-bg-pink-900/30 bear-cursor-pointer", n = "bear-w-5 bear-h-5 bear-border-2 bear-border-pink-200 bear-border-t-pink-500 bear-rounded-full bear-animate-spin";
2
+ export {
3
+ e as DEFAULT_THRESHOLD,
4
+ b as END_CLASSES,
5
+ a as LOADER_CLASSES,
6
+ t as MANUAL_BTN_CLASSES,
7
+ r as ROOT_CLASSES,
8
+ n as SPINNER_CLASSES
9
+ };
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { InfiniteScrollProps } from './InfiniteScroll.types';
3
+ export declare const InfiniteScroll: FC<InfiniteScrollProps>;
4
+ export default InfiniteScroll;