@candy.thieves/ui-kit-lumos 0.0.25 → 0.0.27

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 (600) hide show
  1. package/dist/index.css +2 -0
  2. package/dist/index.js +4676 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/types/assets/icons/ArrowBackOutline.d.ts +3 -0
  5. package/dist/types/assets/icons/ArrowForwardOutline.d.ts +3 -0
  6. package/dist/types/assets/icons/ArrowIosBack.d.ts +3 -0
  7. package/dist/types/assets/icons/ArrowIosBackOutline.d.ts +3 -0
  8. package/dist/types/assets/icons/ArrowIosDownOutline.d.ts +3 -0
  9. package/dist/types/assets/icons/ArrowIosForward.d.ts +3 -0
  10. package/dist/types/assets/icons/ArrowIosForwardOutline.d.ts +3 -0
  11. package/dist/types/assets/icons/ArrowIosUp.d.ts +3 -0
  12. package/dist/types/assets/icons/Block.d.ts +3 -0
  13. package/dist/types/assets/icons/BlockOutline.d.ts +3 -0
  14. package/dist/types/assets/icons/Bookmark.d.ts +3 -0
  15. package/dist/types/assets/icons/BookmarkOutline.d.ts +3 -0
  16. package/dist/types/assets/icons/Brave.d.ts +3 -0
  17. package/dist/types/assets/icons/Calendar.d.ts +3 -0
  18. package/dist/types/assets/icons/CalendarOutline.d.ts +3 -0
  19. package/dist/types/assets/icons/CheckmarkOutline.d.ts +3 -0
  20. package/dist/types/assets/icons/Close.d.ts +3 -0
  21. package/dist/types/assets/icons/CloseOutline.d.ts +3 -0
  22. package/dist/types/assets/icons/ColorPaletteOutline.d.ts +3 -0
  23. package/dist/types/assets/icons/Copy.d.ts +3 -0
  24. package/dist/types/assets/icons/CopyOutline.d.ts +3 -0
  25. package/dist/types/assets/icons/CreditCard.d.ts +3 -0
  26. package/dist/types/assets/icons/CreditCardOutline.d.ts +3 -0
  27. package/dist/types/assets/icons/DoneAllOutline.d.ts +3 -0
  28. package/dist/types/assets/icons/Edit.d.ts +3 -0
  29. package/dist/types/assets/icons/EditOutline.d.ts +3 -0
  30. package/dist/types/assets/icons/Email.d.ts +3 -0
  31. package/dist/types/assets/icons/EmailOutline.d.ts +3 -0
  32. package/dist/types/assets/icons/ErrorIcon.d.ts +3 -0
  33. package/dist/types/assets/icons/Expand.d.ts +3 -0
  34. package/dist/types/assets/icons/ExpandOutline.d.ts +3 -0
  35. package/dist/types/assets/icons/Explorer.d.ts +3 -0
  36. package/dist/types/assets/icons/Eye.d.ts +3 -0
  37. package/dist/types/assets/icons/EyeOff.d.ts +3 -0
  38. package/dist/types/assets/icons/EyeOffOutline.d.ts +3 -0
  39. package/dist/types/assets/icons/EyeOutline.d.ts +3 -0
  40. package/dist/types/assets/icons/Facebook.d.ts +3 -0
  41. package/dist/types/assets/icons/FileIcon.d.ts +3 -0
  42. package/dist/types/assets/icons/FillBell.d.ts +3 -0
  43. package/dist/types/assets/icons/Firefox.d.ts +3 -0
  44. package/dist/types/assets/icons/FlagEng.d.ts +3 -0
  45. package/dist/types/assets/icons/FlagRus.d.ts +3 -0
  46. package/dist/types/assets/icons/GithubRepo.d.ts +3 -0
  47. package/dist/types/assets/icons/Google.d.ts +3 -0
  48. package/dist/types/assets/icons/Heart.d.ts +3 -0
  49. package/dist/types/assets/icons/HeartOutline.d.ts +3 -0
  50. package/dist/types/assets/icons/Home.d.ts +3 -0
  51. package/dist/types/assets/icons/HomeOutline.d.ts +3 -0
  52. package/dist/types/assets/icons/Image.d.ts +3 -0
  53. package/dist/types/assets/icons/ImageOutline.d.ts +3 -0
  54. package/dist/types/assets/icons/Layers.d.ts +3 -0
  55. package/dist/types/assets/icons/LayersOutline.d.ts +3 -0
  56. package/dist/types/assets/icons/LogOut.d.ts +3 -0
  57. package/dist/types/assets/icons/LogOutOutline.d.ts +3 -0
  58. package/dist/types/assets/icons/Maximize.d.ts +3 -0
  59. package/dist/types/assets/icons/MaximizeOutline.d.ts +3 -0
  60. package/dist/types/assets/icons/MenuOutline.d.ts +3 -0
  61. package/dist/types/assets/icons/MessageCircle.d.ts +3 -0
  62. package/dist/types/assets/icons/MessageCircleOutline.d.ts +3 -0
  63. package/dist/types/assets/icons/Mic.d.ts +3 -0
  64. package/dist/types/assets/icons/MicOutline.d.ts +3 -0
  65. package/dist/types/assets/icons/MicrosoftEdge.d.ts +3 -0
  66. package/dist/types/assets/icons/MoreHorizontal.d.ts +3 -0
  67. package/dist/types/assets/icons/MoreHorizontalOutline.d.ts +3 -0
  68. package/dist/types/assets/icons/Opera.d.ts +3 -0
  69. package/dist/types/assets/icons/OutlineBell.d.ts +8 -0
  70. package/dist/types/assets/icons/Paid.d.ts +3 -0
  71. package/dist/types/assets/icons/PaperPlane.d.ts +3 -0
  72. package/dist/types/assets/icons/PaperPlaneOutline.d.ts +3 -0
  73. package/dist/types/assets/icons/PauseCircle.d.ts +3 -0
  74. package/dist/types/assets/icons/PauseCircleOutline.d.ts +3 -0
  75. package/dist/types/assets/icons/Paypal.d.ts +3 -0
  76. package/dist/types/assets/icons/Person.d.ts +3 -0
  77. package/dist/types/assets/icons/PersonAdd.d.ts +3 -0
  78. package/dist/types/assets/icons/PersonAddOutline.d.ts +3 -0
  79. package/dist/types/assets/icons/PersonOutline.d.ts +3 -0
  80. package/dist/types/assets/icons/PersonRemove.d.ts +3 -0
  81. package/dist/types/assets/icons/PersonRemoveOutline.d.ts +3 -0
  82. package/dist/types/assets/icons/Pin.d.ts +3 -0
  83. package/dist/types/assets/icons/PinOutline.d.ts +3 -0
  84. package/dist/types/assets/icons/PlayCircle.d.ts +3 -0
  85. package/dist/types/assets/icons/PlayCircleOutline.d.ts +3 -0
  86. package/dist/types/assets/icons/PlusCircle.d.ts +3 -0
  87. package/dist/types/assets/icons/PlusCircleOutline.d.ts +3 -0
  88. package/dist/types/assets/icons/PlusSquare.d.ts +3 -0
  89. package/dist/types/assets/icons/PlusSquareOutline.d.ts +3 -0
  90. package/dist/types/assets/icons/RadioButtonChecked.d.ts +3 -0
  91. package/dist/types/assets/icons/RadioButtonUnchecked.d.ts +3 -0
  92. package/dist/types/assets/icons/RecaptchaLogo.d.ts +3 -0
  93. package/dist/types/assets/icons/Safari.d.ts +3 -0
  94. package/dist/types/assets/icons/Search.d.ts +3 -0
  95. package/dist/types/assets/icons/SearchOutline.d.ts +3 -0
  96. package/dist/types/assets/icons/Sending.d.ts +3 -0
  97. package/dist/types/assets/icons/Settings.d.ts +3 -0
  98. package/dist/types/assets/icons/SettingsOutline.d.ts +3 -0
  99. package/dist/types/assets/icons/Stripe.d.ts +3 -0
  100. package/dist/types/assets/icons/Trash.d.ts +3 -0
  101. package/dist/types/assets/icons/TrashOutline.d.ts +3 -0
  102. package/dist/types/assets/icons/TrendingUp.d.ts +3 -0
  103. package/dist/types/assets/icons/TrendingUpOutline.d.ts +3 -0
  104. package/dist/types/assets/icons/UcBrowser.d.ts +3 -0
  105. package/dist/types/assets/icons/Yandex.d.ts +3 -0
  106. package/dist/types/assets/index.d.ts +103 -0
  107. package/dist/types/assets/logo/Logo.d.ts +10 -0
  108. package/dist/types/components/Alert/Alert.d.ts +14 -0
  109. package/dist/types/components/Alert/index.d.ts +1 -0
  110. package/dist/types/components/AudioPlayer/AudioPlayer.d.ts +6 -0
  111. package/dist/types/components/AudioPlayer/index.d.ts +1 -0
  112. package/dist/types/components/Avatar/Avatar.d.ts +17 -0
  113. package/dist/types/components/Avatar/AvatarBlock.d.ts +15 -0
  114. package/dist/types/components/Avatar/MainAvatar.d.ts +20 -0
  115. package/dist/types/components/Avatar/index.d.ts +3 -0
  116. package/dist/types/components/Button/Button.d.ts +19 -0
  117. package/dist/types/components/Button/ButtonLegacy.d.ts +41 -0
  118. package/dist/types/components/Button/index.d.ts +2 -0
  119. package/dist/types/components/Cards/Cards.d.ts +7 -0
  120. package/dist/types/components/Cards/index.d.ts +1 -0
  121. package/dist/types/components/Carousel/Carousel.d.ts +5 -0
  122. package/dist/types/components/Carousel/index.d.ts +1 -0
  123. package/dist/types/components/Checkbox/Checkbox.d.ts +10 -0
  124. package/dist/types/components/Checkbox/index.d.ts +1 -0
  125. package/dist/types/components/CircularProgress/CircularProgress.d.ts +10 -0
  126. package/dist/types/components/CircularProgress/index.d.ts +1 -0
  127. package/dist/types/components/Input/Input.d.ts +13 -0
  128. package/dist/types/components/Input/index.d.ts +1 -0
  129. package/dist/types/components/LinearProgress/LinearProgress.d.ts +14 -0
  130. package/dist/types/components/LinearProgress/index.d.ts +1 -0
  131. package/dist/types/components/Menu/Menu.d.ts +14 -0
  132. package/dist/types/components/Menu/index.d.ts +1 -0
  133. package/dist/types/components/Message/AttachmentItem.d.ts +2 -0
  134. package/dist/types/components/Message/Message.d.ts +2 -0
  135. package/dist/types/components/Message/MessageStatus.d.ts +2 -0
  136. package/dist/types/components/Message/ReplyPreview.d.ts +2 -0
  137. package/dist/types/components/Message/index.d.ts +2 -0
  138. package/dist/types/components/Message/types.d.ts +40 -0
  139. package/dist/types/components/Modal/Modal.d.ts +25 -0
  140. package/dist/types/components/Modal/index.d.ts +1 -0
  141. package/dist/types/components/PasswordInput/PasswordInput.d.ts +6 -0
  142. package/dist/types/components/PasswordInput/index.d.ts +1 -0
  143. package/dist/types/components/RadioGroup/RadioGroup.d.ts +15 -0
  144. package/dist/types/components/RadioGroup/index.d.ts +1 -0
  145. package/dist/types/components/ReadMore/ReadMore.d.ts +8 -0
  146. package/dist/types/components/ReadMore/index.d.ts +1 -0
  147. package/dist/types/components/Scroll/Scroll.d.ts +6 -0
  148. package/dist/types/components/Scroll/index.d.ts +1 -0
  149. package/dist/types/components/SearchInput/SearchInput.d.ts +3 -0
  150. package/dist/types/components/SearchInput/index.d.ts +1 -0
  151. package/dist/types/components/Select/Select.d.ts +66 -0
  152. package/dist/types/components/Select/index.d.ts +1 -0
  153. package/dist/types/components/Sidebar/Sidebar.d.ts +18 -0
  154. package/dist/types/components/Sidebar/index.d.ts +1 -0
  155. package/dist/types/components/Slider/Slider.d.ts +4 -0
  156. package/dist/types/components/Slider/index.d.ts +1 -0
  157. package/dist/types/components/Table/Table.d.ts +6 -0
  158. package/dist/types/components/Table/index.d.ts +1 -0
  159. package/dist/types/components/Tabs/Tabs.d.ts +18 -0
  160. package/dist/types/components/Tabs/index.d.ts +1 -0
  161. package/dist/types/components/TextArea/TextArea.d.ts +11 -0
  162. package/dist/types/components/TextArea/index.d.ts +1 -0
  163. package/dist/types/components/Tooltip/Tooltip.d.ts +12 -0
  164. package/dist/types/components/Tooltip/index.d.ts +1 -0
  165. package/dist/types/components/Typography/Typography.d.ts +25 -0
  166. package/dist/types/components/Typography/index.d.ts +1 -0
  167. package/dist/types/components/index.d.ts +26 -0
  168. package/{src/components/types/index.ts → dist/types/components/types/index.d.ts} +1 -1
  169. package/dist/types/components/types/scroll.types.d.ts +10 -0
  170. package/dist/types/constants/constants.d.ts +7 -0
  171. package/dist/types/constants/index.d.ts +1 -0
  172. package/dist/types/demo/TestMixins/TestMixins.d.ts +1 -0
  173. package/dist/types/demo/index.d.ts +1 -0
  174. package/dist/types/hooks/index.d.ts +2 -0
  175. package/dist/types/hooks/useScrollThumbs.d.ts +9 -0
  176. package/dist/types/hooks/useThumbDrag.d.ts +9 -0
  177. package/dist/types/index.d.ts +8 -0
  178. package/dist/types/types/index.d.ts +1 -0
  179. package/dist/types/types/types.d.ts +5 -0
  180. package/dist/types/utils/ColorIconBase.d.ts +7 -0
  181. package/dist/types/utils/ColorIconBaseSmall.d.ts +7 -0
  182. package/dist/types/utils/IconBase.d.ts +12 -0
  183. package/dist/types/utils/formatTime.d.ts +1 -0
  184. package/dist/types/utils/getFirstLetterCapitalized.d.ts +1 -0
  185. package/dist/types/utils/getHorizontalMetrics.d.ts +2 -0
  186. package/dist/types/utils/getNavItemClickHandler.d.ts +5 -0
  187. package/dist/types/utils/getVerticalMetrics.d.ts +2 -0
  188. package/dist/types/utils/index.d.ts +8 -0
  189. package/dist/types/utils/isAudioAttachment.d.ts +2 -0
  190. package/dist/types/utils/isThemeColor.d.ts +2 -0
  191. package/dist/types/utils/truncateText.d.ts +1 -0
  192. package/package.json +9 -17
  193. package/.github/pull_request_template.md +0 -31
  194. package/.github/workflows/deploy-storybook.yml +0 -19
  195. package/.github/workflows/publish.yml +0 -33
  196. package/.husky/commit-msg +0 -1
  197. package/.husky/pre-commit +0 -3
  198. package/.husky/pre-push +0 -2
  199. package/.husky/prepare-commit-msg +0 -9
  200. package/.prettierignore +0 -5
  201. package/.prettierrc.cjs +0 -4
  202. package/.storybook/main.d.ts +0 -3
  203. package/.storybook/main.ts +0 -26
  204. package/.storybook/manager.ts +0 -6
  205. package/.storybook/preview.d.ts +0 -6
  206. package/.storybook/preview.tsx +0 -28
  207. package/.storybook/theme.ts +0 -17
  208. package/.stylelintrc.cjs +0 -3
  209. package/AGENTS.md +0 -80
  210. package/agent-docs/architecture.md +0 -31
  211. package/agent-docs/execplans.md +0 -33
  212. package/agent-docs/frontend.md +0 -99
  213. package/commitlint.config.js +0 -63
  214. package/eslint.config.js +0 -101
  215. package/index.html +0 -13
  216. package/pnpm-workspace.yaml +0 -4
  217. package/src/assets/icons/ArrowBackOutline.tsx +0 -33
  218. package/src/assets/icons/ArrowForwardOutline.tsx +0 -32
  219. package/src/assets/icons/ArrowIosBack.tsx +0 -32
  220. package/src/assets/icons/ArrowIosBackOutline.tsx +0 -32
  221. package/src/assets/icons/ArrowIosDownOutline.tsx +0 -34
  222. package/src/assets/icons/ArrowIosForward.tsx +0 -32
  223. package/src/assets/icons/ArrowIosForwardOutline.tsx +0 -32
  224. package/src/assets/icons/ArrowIosUp.tsx +0 -35
  225. package/src/assets/icons/Block.tsx +0 -31
  226. package/src/assets/icons/BlockOutline.tsx +0 -37
  227. package/src/assets/icons/Bookmark.tsx +0 -32
  228. package/src/assets/icons/BookmarkOutline.tsx +0 -32
  229. package/src/assets/icons/Brave.tsx +0 -26
  230. package/src/assets/icons/Calendar.tsx +0 -32
  231. package/src/assets/icons/CalendarOutline.tsx +0 -32
  232. package/src/assets/icons/CheckmarkOutline.tsx +0 -27
  233. package/src/assets/icons/Close.tsx +0 -27
  234. package/src/assets/icons/CloseOutline.tsx +0 -27
  235. package/src/assets/icons/ColorPaletteOutline.tsx +0 -36
  236. package/src/assets/icons/Copy.tsx +0 -32
  237. package/src/assets/icons/CopyOutline.tsx +0 -36
  238. package/src/assets/icons/CreditCard.tsx +0 -32
  239. package/src/assets/icons/CreditCardOutline.tsx +0 -32
  240. package/src/assets/icons/DoneAllOutline.tsx +0 -32
  241. package/src/assets/icons/Edit.tsx +0 -31
  242. package/src/assets/icons/EditOutline.tsx +0 -31
  243. package/src/assets/icons/Email.tsx +0 -32
  244. package/src/assets/icons/EmailOutline.tsx +0 -32
  245. package/src/assets/icons/ErrorIcon.tsx +0 -39
  246. package/src/assets/icons/Expand.tsx +0 -31
  247. package/src/assets/icons/ExpandOutline.tsx +0 -31
  248. package/src/assets/icons/Explorer.tsx +0 -26
  249. package/src/assets/icons/Eye.tsx +0 -32
  250. package/src/assets/icons/EyeOff.tsx +0 -36
  251. package/src/assets/icons/EyeOffOutline.tsx +0 -36
  252. package/src/assets/icons/EyeOutline.tsx +0 -34
  253. package/src/assets/icons/Facebook.tsx +0 -32
  254. package/src/assets/icons/FileIcon.tsx +0 -36
  255. package/src/assets/icons/FillBell.tsx +0 -48
  256. package/src/assets/icons/Firefox.tsx +0 -33
  257. package/src/assets/icons/FlagEng.tsx +0 -33
  258. package/src/assets/icons/FlagRus.tsx +0 -33
  259. package/src/assets/icons/GithubRepo.tsx +0 -32
  260. package/src/assets/icons/Google.tsx +0 -45
  261. package/src/assets/icons/Heart.tsx +0 -32
  262. package/src/assets/icons/HeartOutline.tsx +0 -32
  263. package/src/assets/icons/Home.tsx +0 -33
  264. package/src/assets/icons/HomeOutline.tsx +0 -27
  265. package/src/assets/icons/Image.tsx +0 -32
  266. package/src/assets/icons/ImageOutline.tsx +0 -32
  267. package/src/assets/icons/Layers.tsx +0 -41
  268. package/src/assets/icons/LayersOutline.tsx +0 -32
  269. package/src/assets/icons/LogOut.tsx +0 -31
  270. package/src/assets/icons/LogOutOutline.tsx +0 -31
  271. package/src/assets/icons/Maximize.tsx +0 -32
  272. package/src/assets/icons/MaximizeOutline.tsx +0 -34
  273. package/src/assets/icons/MenuOutline.tsx +0 -31
  274. package/src/assets/icons/MessageCircle.tsx +0 -32
  275. package/src/assets/icons/MessageCircleOutline.tsx +0 -36
  276. package/src/assets/icons/Mic.tsx +0 -32
  277. package/src/assets/icons/MicOutline.tsx +0 -36
  278. package/src/assets/icons/MicrosoftEdge.tsx +0 -112
  279. package/src/assets/icons/MoreHorizontal.tsx +0 -31
  280. package/src/assets/icons/MoreHorizontalOutline.tsx +0 -31
  281. package/src/assets/icons/Opera.tsx +0 -33
  282. package/src/assets/icons/OutlineBell.tsx +0 -72
  283. package/src/assets/icons/Paid.tsx +0 -37
  284. package/src/assets/icons/PaperPlane.tsx +0 -32
  285. package/src/assets/icons/PaperPlaneOutline.tsx +0 -32
  286. package/src/assets/icons/PauseCircle.tsx +0 -32
  287. package/src/assets/icons/PauseCircleOutline.tsx +0 -34
  288. package/src/assets/icons/Paypal.tsx +0 -72
  289. package/src/assets/icons/Person.tsx +0 -29
  290. package/src/assets/icons/PersonAdd.tsx +0 -31
  291. package/src/assets/icons/PersonAddOutline.tsx +0 -31
  292. package/src/assets/icons/PersonOutline.tsx +0 -31
  293. package/src/assets/icons/PersonRemove.tsx +0 -31
  294. package/src/assets/icons/PersonRemoveOutline.tsx +0 -31
  295. package/src/assets/icons/Pin.tsx +0 -32
  296. package/src/assets/icons/PinOutline.tsx +0 -34
  297. package/src/assets/icons/PlayCircle.tsx +0 -32
  298. package/src/assets/icons/PlayCircleOutline.tsx +0 -32
  299. package/src/assets/icons/PlusCircle.tsx +0 -32
  300. package/src/assets/icons/PlusCircleOutline.tsx +0 -30
  301. package/src/assets/icons/PlusSquare.tsx +0 -32
  302. package/src/assets/icons/PlusSquareOutline.tsx +0 -34
  303. package/src/assets/icons/RadioButtonChecked.tsx +0 -32
  304. package/src/assets/icons/RadioButtonUnchecked.tsx +0 -30
  305. package/src/assets/icons/RecaptchaLogo.tsx +0 -42
  306. package/src/assets/icons/Safari.tsx +0 -37
  307. package/src/assets/icons/Search.tsx +0 -32
  308. package/src/assets/icons/SearchOutline.tsx +0 -32
  309. package/src/assets/icons/Sending.tsx +0 -28
  310. package/src/assets/icons/Settings.tsx +0 -32
  311. package/src/assets/icons/SettingsOutline.tsx +0 -34
  312. package/src/assets/icons/Stripe.tsx +0 -40
  313. package/src/assets/icons/Trash.tsx +0 -32
  314. package/src/assets/icons/TrashOutline.tsx +0 -32
  315. package/src/assets/icons/TrendingUp.tsx +0 -32
  316. package/src/assets/icons/TrendingUpOutline.tsx +0 -32
  317. package/src/assets/icons/UcBrowser.tsx +0 -78
  318. package/src/assets/icons/Yandex.tsx +0 -36
  319. package/src/assets/index.ts +0 -104
  320. package/src/assets/logo/Logo.tsx +0 -55
  321. package/src/components/Alert/Alert.module.scss +0 -61
  322. package/src/components/Alert/Alert.tsx +0 -79
  323. package/src/components/Alert/index.ts +0 -1
  324. package/src/components/AudioPlayer/AudioPlayer.module.scss +0 -74
  325. package/src/components/AudioPlayer/AudioPlayer.tsx +0 -119
  326. package/src/components/AudioPlayer/index.ts +0 -1
  327. package/src/components/Avatar/Avatar.module.scss +0 -151
  328. package/src/components/Avatar/Avatar.tsx +0 -36
  329. package/src/components/Avatar/AvatarBlock.tsx +0 -43
  330. package/src/components/Avatar/MainAvatar.tsx +0 -65
  331. package/src/components/Avatar/index.ts +0 -3
  332. package/src/components/Button/Button.module.scss +0 -143
  333. package/src/components/Button/Button.tsx +0 -48
  334. package/src/components/Button/ButtonLegacy.tsx +0 -94
  335. package/src/components/Button/index.ts +0 -2
  336. package/src/components/Cards/Cards.module.scss +0 -11
  337. package/src/components/Cards/Cards.tsx +0 -21
  338. package/src/components/Cards/index.ts +0 -1
  339. package/src/components/Carousel/Carousel.module.scss +0 -97
  340. package/src/components/Carousel/Carousel.tsx +0 -64
  341. package/src/components/Carousel/index.ts +0 -1
  342. package/src/components/Checkbox/Checkbox.module.scss +0 -76
  343. package/src/components/Checkbox/Checkbox.tsx +0 -48
  344. package/src/components/Checkbox/index.ts +0 -1
  345. package/src/components/CircularProgress/CircularProgress.module.scss +0 -33
  346. package/src/components/CircularProgress/CircularProgress.tsx +0 -33
  347. package/src/components/CircularProgress/index.ts +0 -1
  348. package/src/components/Input/Input.module.scss +0 -105
  349. package/src/components/Input/Input.tsx +0 -79
  350. package/src/components/Input/index.ts +0 -1
  351. package/src/components/LinearProgress/LinearProgress.module.scss +0 -62
  352. package/src/components/LinearProgress/LinearProgress.tsx +0 -49
  353. package/src/components/LinearProgress/index.ts +0 -1
  354. package/src/components/Menu/Menu.module.scss +0 -48
  355. package/src/components/Menu/Menu.tsx +0 -51
  356. package/src/components/Menu/index.ts +0 -1
  357. package/src/components/Message/AttachmentItem.tsx +0 -19
  358. package/src/components/Message/Message.module.scss +0 -123
  359. package/src/components/Message/Message.tsx +0 -54
  360. package/src/components/Message/MessageStatus.tsx +0 -19
  361. package/src/components/Message/ReplyPreview.tsx +0 -19
  362. package/src/components/Message/index.ts +0 -2
  363. package/src/components/Message/types.ts +0 -49
  364. package/src/components/Modal/Modal.module.scss +0 -118
  365. package/src/components/Modal/Modal.tsx +0 -82
  366. package/src/components/Modal/index.ts +0 -1
  367. package/src/components/PasswordInput/PasswordInput.module.scss +0 -13
  368. package/src/components/PasswordInput/PasswordInput.tsx +0 -36
  369. package/src/components/PasswordInput/index.ts +0 -1
  370. package/src/components/RadioGroup/RadioGroup.module.scss +0 -95
  371. package/src/components/RadioGroup/RadioGroup.tsx +0 -64
  372. package/src/components/RadioGroup/index.ts +0 -1
  373. package/src/components/ReadMore/ReadMore.module.scss +0 -8
  374. package/src/components/ReadMore/ReadMore.tsx +0 -49
  375. package/src/components/ReadMore/index.ts +0 -1
  376. package/src/components/Recaptcha/Recaptcha.module.scss +0 -10
  377. package/src/components/Recaptcha/Recaptcha.tsx +0 -58
  378. package/src/components/Recaptcha/index.ts +0 -1
  379. package/src/components/Scroll/Scroll.module.scss +0 -58
  380. package/src/components/Scroll/Scroll.tsx +0 -47
  381. package/src/components/Scroll/index.ts +0 -1
  382. package/src/components/SearchInput/SearchInput.tsx +0 -17
  383. package/src/components/SearchInput/index.ts +0 -1
  384. package/src/components/Select/Select.module.scss +0 -160
  385. package/src/components/Select/Select.tsx +0 -262
  386. package/src/components/Select/index.ts +0 -1
  387. package/src/components/Sidebar/Sidebar.module.scss +0 -100
  388. package/src/components/Sidebar/Sidebar.tsx +0 -74
  389. package/src/components/Sidebar/index.ts +0 -1
  390. package/src/components/Slider/Slider.module.scss +0 -64
  391. package/src/components/Slider/Slider.tsx +0 -26
  392. package/src/components/Slider/index.ts +0 -1
  393. package/src/components/Table/Table.module.scss +0 -23
  394. package/src/components/Table/Table.tsx +0 -57
  395. package/src/components/Table/index.ts +0 -1
  396. package/src/components/Tabs/Tabs.module.scss +0 -78
  397. package/src/components/Tabs/Tabs.tsx +0 -57
  398. package/src/components/Tabs/index.ts +0 -1
  399. package/src/components/TextArea/TextArea.module.scss +0 -107
  400. package/src/components/TextArea/TextArea.tsx +0 -57
  401. package/src/components/TextArea/index.ts +0 -1
  402. package/src/components/Tooltip/Tooltip.module.scss +0 -11
  403. package/src/components/Tooltip/Tooltip.tsx +0 -43
  404. package/src/components/Tooltip/index.ts +0 -1
  405. package/src/components/Typography/Typography.module.scss +0 -29
  406. package/src/components/Typography/Typography.tsx +0 -135
  407. package/src/components/Typography/index.ts +0 -1
  408. package/src/components/index.ts +0 -27
  409. package/src/components/types/scroll.types.ts +0 -11
  410. package/src/constants/constants.ts +0 -22
  411. package/src/constants/index.ts +0 -1
  412. package/src/demo/TestMixins/TestMixins.module.scss +0 -457
  413. package/src/demo/TestMixins/TestMixins.tsx +0 -107
  414. package/src/demo/index.ts +0 -1
  415. package/src/hooks/index.ts +0 -2
  416. package/src/hooks/useScrollThumbs.ts +0 -65
  417. package/src/hooks/useThumbDrag.ts +0 -90
  418. package/src/index.ts +0 -9
  419. package/src/stories/Configure.mdx +0 -183
  420. package/src/stories/assets/icons/ArrowBackOutline.stories.ts +0 -40
  421. package/src/stories/assets/icons/ArrowForwardOutline.stories.ts +0 -40
  422. package/src/stories/assets/icons/ArrowIosBack.stories.ts +0 -40
  423. package/src/stories/assets/icons/ArrowIosBackOutline.stories.ts +0 -40
  424. package/src/stories/assets/icons/ArrowIosDownOutline.stories.ts +0 -40
  425. package/src/stories/assets/icons/ArrowIosForward.stories.ts +0 -40
  426. package/src/stories/assets/icons/ArrowIosForwardOutline.stories.ts +0 -40
  427. package/src/stories/assets/icons/ArrowIosUp.stories.ts +0 -38
  428. package/src/stories/assets/icons/Block.stories.ts +0 -39
  429. package/src/stories/assets/icons/BlockOutline.stories.ts +0 -39
  430. package/src/stories/assets/icons/Bookmark.stories.ts +0 -39
  431. package/src/stories/assets/icons/BookmarkOutline.stories.ts +0 -40
  432. package/src/stories/assets/icons/Brave.stories.ts +0 -48
  433. package/src/stories/assets/icons/Calendar.stories.ts +0 -40
  434. package/src/stories/assets/icons/CalendarOutline.stories.ts +0 -39
  435. package/src/stories/assets/icons/CheckmarkOutline.stories.ts +0 -40
  436. package/src/stories/assets/icons/Close.stories.ts +0 -40
  437. package/src/stories/assets/icons/CloseOutline.stories.ts +0 -40
  438. package/src/stories/assets/icons/ColorPaletteOutline.stories.ts +0 -39
  439. package/src/stories/assets/icons/Copy.stories.ts +0 -38
  440. package/src/stories/assets/icons/CopyOutline.stories.ts +0 -39
  441. package/src/stories/assets/icons/CreditCard.stories.ts +0 -38
  442. package/src/stories/assets/icons/CreditCardOutline.stories.ts +0 -39
  443. package/src/stories/assets/icons/DoneAllOutline.stories.ts +0 -38
  444. package/src/stories/assets/icons/Edit.stories.ts +0 -39
  445. package/src/stories/assets/icons/EditOutline.stories.ts +0 -38
  446. package/src/stories/assets/icons/Email.stories.ts +0 -39
  447. package/src/stories/assets/icons/EmailOutline.stories.ts +0 -38
  448. package/src/stories/assets/icons/ErrorIcon.stories.ts +0 -40
  449. package/src/stories/assets/icons/Expand.stories.ts +0 -39
  450. package/src/stories/assets/icons/ExpandOutline.stories.ts +0 -38
  451. package/src/stories/assets/icons/Explorer.stories.ts +0 -47
  452. package/src/stories/assets/icons/Eye.stories.ts +0 -39
  453. package/src/stories/assets/icons/EyeOff.stories.ts +0 -38
  454. package/src/stories/assets/icons/EyeOffOutline.stories.ts +0 -39
  455. package/src/stories/assets/icons/EyeOutline.stories.ts +0 -38
  456. package/src/stories/assets/icons/Facebook.stories.ts +0 -37
  457. package/src/stories/assets/icons/FileIcon.stories.ts +0 -40
  458. package/src/stories/assets/icons/FillBell.stories.ts +0 -40
  459. package/src/stories/assets/icons/Firefox.stories.ts +0 -48
  460. package/src/stories/assets/icons/FlagEng.stories.ts +0 -37
  461. package/src/stories/assets/icons/FlagRus.stories.ts +0 -37
  462. package/src/stories/assets/icons/GithubRepo.stories.ts +0 -38
  463. package/src/stories/assets/icons/Google.stories.ts +0 -38
  464. package/src/stories/assets/icons/Heart.stories.ts +0 -39
  465. package/src/stories/assets/icons/HeartOutline.stories.ts +0 -38
  466. package/src/stories/assets/icons/Home.stories.ts +0 -40
  467. package/src/stories/assets/icons/HomeOutline.stories.ts +0 -40
  468. package/src/stories/assets/icons/Icon.module.scss +0 -4
  469. package/src/stories/assets/icons/ImageIcon.stories.ts +0 -39
  470. package/src/stories/assets/icons/ImageOutline.stories.ts +0 -38
  471. package/src/stories/assets/icons/Layers.stories.ts +0 -39
  472. package/src/stories/assets/icons/LayersOutline.stories.ts +0 -38
  473. package/src/stories/assets/icons/LogOut.stories.ts +0 -40
  474. package/src/stories/assets/icons/LogOutOutline.stories.ts +0 -40
  475. package/src/stories/assets/icons/Maximize.stories.ts +0 -39
  476. package/src/stories/assets/icons/MaximizeOutline.stories.ts +0 -39
  477. package/src/stories/assets/icons/MenuOutline.stories.ts +0 -39
  478. package/src/stories/assets/icons/MessageCircle.stories.ts +0 -38
  479. package/src/stories/assets/icons/MessageCircleOutline.stories.ts +0 -39
  480. package/src/stories/assets/icons/Mic.stories.ts +0 -38
  481. package/src/stories/assets/icons/MicOutline.stories.ts +0 -39
  482. package/src/stories/assets/icons/MicrosoftEdge.stories.ts +0 -47
  483. package/src/stories/assets/icons/MoreHorizontal.stories.ts +0 -40
  484. package/src/stories/assets/icons/MoreHorizontalOutline.stories.ts +0 -38
  485. package/src/stories/assets/icons/Opera.stories.ts +0 -47
  486. package/src/stories/assets/icons/OutlineBell.stories.ts +0 -58
  487. package/src/stories/assets/icons/Paid.stories.ts +0 -38
  488. package/src/stories/assets/icons/PaperPlane.stories.ts +0 -40
  489. package/src/stories/assets/icons/PaperPlaneOutline.stories.ts +0 -38
  490. package/src/stories/assets/icons/PauseCircle.stories.ts +0 -39
  491. package/src/stories/assets/icons/PauseCircleOutline.stories.ts +0 -38
  492. package/src/stories/assets/icons/Paypal.stories.ts +0 -16
  493. package/src/stories/assets/icons/Person.stories.ts +0 -39
  494. package/src/stories/assets/icons/PersonAdd.stories.ts +0 -38
  495. package/src/stories/assets/icons/PersonAddOutline.stories.ts +0 -39
  496. package/src/stories/assets/icons/PersonOutline.stories.ts +0 -39
  497. package/src/stories/assets/icons/PersonRemove.stories.ts +0 -38
  498. package/src/stories/assets/icons/PersonRemoveOutline.stories.ts +0 -39
  499. package/src/stories/assets/icons/Pin.stories.ts +0 -38
  500. package/src/stories/assets/icons/PinOutline.stories.ts +0 -39
  501. package/src/stories/assets/icons/PlayCircle.stories.ts +0 -38
  502. package/src/stories/assets/icons/PlayCircleOutline.stories.ts +0 -39
  503. package/src/stories/assets/icons/PlusCircle.stories.ts +0 -38
  504. package/src/stories/assets/icons/PlusCircleOutline.stories.ts +0 -39
  505. package/src/stories/assets/icons/PlusSquare.stories.ts +0 -38
  506. package/src/stories/assets/icons/PlusSquareOutline.stories.ts +0 -39
  507. package/src/stories/assets/icons/RadioButtonChecked.stories.ts +0 -38
  508. package/src/stories/assets/icons/RadioButtonUnchecked.stories.ts +0 -39
  509. package/src/stories/assets/icons/RecaptchaLogo.stories.ts +0 -36
  510. package/src/stories/assets/icons/Safari.stories.ts +0 -47
  511. package/src/stories/assets/icons/Search.stories.ts +0 -39
  512. package/src/stories/assets/icons/SearchOutline.stories.ts +0 -40
  513. package/src/stories/assets/icons/Sending.stories.ts +0 -40
  514. package/src/stories/assets/icons/Settings.stories.ts +0 -39
  515. package/src/stories/assets/icons/SettingsOutline.stories.ts +0 -40
  516. package/src/stories/assets/icons/Stripe.stories.ts +0 -38
  517. package/src/stories/assets/icons/Trash.stories.ts +0 -39
  518. package/src/stories/assets/icons/TrashOutline.stories.ts +0 -38
  519. package/src/stories/assets/icons/TrendingUp.stories.ts +0 -39
  520. package/src/stories/assets/icons/TrendingUpOutline.stories.ts +0 -38
  521. package/src/stories/assets/icons/UcBrowser.stories.ts +0 -48
  522. package/src/stories/assets/icons/Yandex.stories.ts +0 -47
  523. package/src/stories/assets/logo/Logo.stories.ts +0 -22
  524. package/src/stories/components/Alert/Alert.stories.tsx +0 -94
  525. package/src/stories/components/Avatar/Avatar.stories.tsx +0 -151
  526. package/src/stories/components/Avatar/AvatarBlock.stories.tsx +0 -301
  527. package/src/stories/components/Avatar/MainAvatar.stories.tsx +0 -200
  528. package/src/stories/components/Button/Button.stories.tsx +0 -99
  529. package/src/stories/components/Button/ButtonLegacy.stories.tsx +0 -99
  530. package/src/stories/components/Cards/Cards.stories.tsx +0 -185
  531. package/src/stories/components/Carousel/Carousel.stories.tsx +0 -89
  532. package/src/stories/components/Carousel/CarouselWrapper.module.scss +0 -7
  533. package/src/stories/components/CheckBox/CheckBox.stories.tsx +0 -92
  534. package/src/stories/components/CircularProgress/CircularProgress.stories.tsx +0 -66
  535. package/src/stories/components/Input/Input.stories.tsx +0 -88
  536. package/src/stories/components/LinearProgress/LinearProgress.stories.tsx +0 -137
  537. package/src/stories/components/Menu/Menu.stories.tsx +0 -100
  538. package/src/stories/components/Message/Message.stories.tsx +0 -311
  539. package/src/stories/components/Modal/Modal.stories.module.scss +0 -157
  540. package/src/stories/components/Modal/Modal.stories.tsx +0 -514
  541. package/src/stories/components/PasswordInput/PasswordInput.stories.tsx +0 -71
  542. package/src/stories/components/RadioGroup/RadioGroup.stories.tsx +0 -141
  543. package/src/stories/components/ReadMore/ReadMore.stories.tsx +0 -42
  544. package/src/stories/components/Recaptcha/Recaptcha.stories.tsx +0 -29
  545. package/src/stories/components/Scroll/Scroll.stories.tsx +0 -128
  546. package/src/stories/components/SearchInput/SearchInput.stories.tsx +0 -76
  547. package/src/stories/components/Select/Select.stories.module.scss +0 -6
  548. package/src/stories/components/Select/Select.stories.tsx +0 -147
  549. package/src/stories/components/Sidebar/Sidebar.stories.tsx +0 -126
  550. package/src/stories/components/Slider/Slider.stories.tsx +0 -58
  551. package/src/stories/components/Table/Table.stories.tsx +0 -108
  552. package/src/stories/components/Tabs/Tabs.stories.tsx +0 -75
  553. package/src/stories/components/TestMixins/TestMixins.stories.tsx +0 -16
  554. package/src/stories/components/TextArea/TextArea.stories.tsx +0 -100
  555. package/src/stories/components/Tooltip/Tooltip.stories.tsx +0 -54
  556. package/src/stories/components/Typography/Typography.stories.tsx +0 -314
  557. package/src/stories/constants.ts +0 -45
  558. package/src/stories/palette/ColorPalette.module.scss +0 -61
  559. package/src/stories/palette/ColorPalette.stories.tsx +0 -76
  560. package/src/storybook-utils/assets/coloredIconMeta.ts +0 -31
  561. package/src/storybook-utils/assets/iconMeta.ts +0 -40
  562. package/src/storybook-utils/assets/logoMeta.ts +0 -33
  563. package/src/storybook-utils/components/ButtonMeta.ts +0 -33
  564. package/src/storybook-utils/index.ts +0 -4
  565. package/src/styles/_boilerplate.scss +0 -37
  566. package/src/styles/_colors.scss +0 -46
  567. package/src/styles/_mixins.scss +0 -154
  568. package/src/styles/_typography.scss +0 -152
  569. package/src/styles/index.scss +0 -4
  570. package/src/types/index.ts +0 -1
  571. package/src/types/types.ts +0 -5
  572. package/src/utils/ColorIconBase.tsx +0 -26
  573. package/src/utils/ColorIconBaseSmall.tsx +0 -30
  574. package/src/utils/IconBase.tsx +0 -43
  575. package/src/utils/formatTime.ts +0 -6
  576. package/src/utils/getFirstLetterCapitalized.ts +0 -2
  577. package/src/utils/getHorizontalMetrics.ts +0 -12
  578. package/src/utils/getNavItemClickHandler.ts +0 -17
  579. package/src/utils/getVerticalMetrics.ts +0 -12
  580. package/src/utils/index.ts +0 -8
  581. package/src/utils/isAudioAttachment.ts +0 -7
  582. package/src/utils/isThemeColor.ts +0 -4
  583. package/src/utils/truncateText.ts +0 -15
  584. package/tsconfig.app.json +0 -32
  585. package/tsconfig.build.json +0 -16
  586. package/tsconfig.json +0 -7
  587. package/tsconfig.node.json +0 -23
  588. package/vite-env.d.ts +0 -20
  589. package/vite.config.ts +0 -67
  590. package/vitest.shims.d.ts +0 -1
  591. /package/{public → dist}/favicon-dark-108.svg +0 -0
  592. /package/{public → dist}/favicon-dark-16.svg +0 -0
  593. /package/{public → dist}/favicon-dark-24.svg +0 -0
  594. /package/{public → dist}/favicon-dark-48.svg +0 -0
  595. /package/{public → dist}/favicon-dark-72.svg +0 -0
  596. /package/{public → dist}/favicon-light-108.svg +0 -0
  597. /package/{public → dist}/favicon-light-16.svg +0 -0
  598. /package/{public → dist}/favicon-light-24.svg +0 -0
  599. /package/{public → dist}/favicon-light-48.svg +0 -0
  600. /package/{public → dist}/favicon-light-72.svg +0 -0
@@ -1,262 +0,0 @@
1
- 'use client'
2
-
3
- import type { ComponentPropsWithoutRef, ReactNode } from 'react'
4
- import clsx from 'clsx'
5
- import { Select as SelectPrimitive } from 'radix-ui'
6
- import { forwardRef, useId, useState } from 'react'
7
- import s from './Select.module.scss'
8
-
9
- export type SelectOption = {
10
- disabled?: boolean
11
- icon?: ReactNode
12
- itemIndicator?: ReactNode
13
- itemIndicatorProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.ItemIndicator>
14
- itemProps?: Omit<
15
- ComponentPropsWithoutRef<typeof SelectPrimitive.Item>,
16
- 'children' | 'disabled' | 'textValue' | 'value'
17
- >
18
- itemTextProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.ItemText>
19
- label: ReactNode
20
- textValue?: string
21
- type?: 'item'
22
- value: string
23
- }
24
-
25
- export type SelectOptionGroup = {
26
- groupProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Group>
27
- label: ReactNode
28
- labelProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
29
- options: SelectOption[]
30
- type: 'group'
31
- }
32
-
33
- export type SelectOptionSeparator = {
34
- separatorProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
35
- type: 'separator'
36
- }
37
-
38
- export type SelectItem = SelectOption | SelectOptionGroup | SelectOptionSeparator
39
-
40
- export type SelectProps = Omit<
41
- ComponentPropsWithoutRef<typeof SelectPrimitive.Root>,
42
- 'children'
43
- > & {
44
- className?: string
45
- contentProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
46
- contentClassName?: string
47
- groupLabelClassName?: string
48
- iconProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Icon>
49
- itemClassName?: string
50
- label?: ReactNode
51
- labelProps?: ComponentPropsWithoutRef<'label'>
52
- options: SelectItem[]
53
- placeholder?: ReactNode
54
- portalProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Portal>
55
- separatorClassName?: string
56
- triggerIcon?: ReactNode
57
- triggerProps?: Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>, 'children'>
58
- valueProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Value>
59
- viewportProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Viewport>
60
- }
61
-
62
- const getOptions = (items: SelectItem[]) =>
63
- items.flatMap(item => {
64
- if (item.type === 'group') {
65
- return item.options
66
- }
67
-
68
- if (item.type === 'separator') {
69
- return []
70
- }
71
-
72
- return item
73
- })
74
-
75
- export const Select = forwardRef<HTMLButtonElement, SelectProps>(
76
- (
77
- {
78
- className,
79
- contentClassName,
80
- contentProps,
81
- defaultValue,
82
- groupLabelClassName,
83
- iconProps,
84
- itemClassName,
85
- label,
86
- labelProps,
87
- onValueChange,
88
- options,
89
- placeholder = 'Select-box',
90
- portalProps,
91
- separatorClassName,
92
- triggerIcon,
93
- triggerProps,
94
- valueProps,
95
- value,
96
- viewportProps,
97
- ...props
98
- },
99
- ref
100
- ) => {
101
- const generatedId = useId()
102
- const [internalValue, setInternalValue] = useState(defaultValue)
103
- const selectedValue = value ?? internalValue
104
- const flatOptions = getOptions(options)
105
- const selectedOption = flatOptions.find(option => option.value === selectedValue)
106
- const triggerId = triggerProps?.id ?? `select-${generatedId}`
107
-
108
- const handleValueChange = (nextValue: string) => {
109
- setInternalValue(nextValue)
110
- onValueChange?.(nextValue)
111
- }
112
-
113
- const { className: triggerClassName, ...restTriggerProps } = triggerProps ?? {}
114
- const { className: labelClassName, ...restLabelProps } = labelProps ?? {}
115
- const { children: iconChildren, className: iconClassName, ...restIconProps } = iconProps ?? {}
116
- const {
117
- className: contentPropsClassName,
118
- position = 'popper',
119
- sideOffset = -1,
120
- ...restContentProps
121
- } = contentProps ?? {}
122
- const { className: viewportClassName, ...restViewportProps } = viewportProps ?? {}
123
-
124
- const renderOption = (option: SelectOption) => {
125
- const { className: optionClassName, ...restItemProps } = option.itemProps ?? {}
126
-
127
- return (
128
- <SelectPrimitive.Item
129
- key={option.value}
130
- value={option.value}
131
- disabled={option.disabled}
132
- textValue={option.textValue}
133
- className={clsx(s.item, 'typography-subtitle1', itemClassName, optionClassName)}
134
- {...restItemProps}
135
- >
136
- {option.icon && (
137
- <span className={s.itemIcon} aria-hidden>
138
- {option.icon}
139
- </span>
140
- )}
141
- <SelectPrimitive.ItemText {...option.itemTextProps}>
142
- {option.label}
143
- </SelectPrimitive.ItemText>
144
- {option.itemIndicator && (
145
- <SelectPrimitive.ItemIndicator
146
- className={s.itemIndicator}
147
- {...option.itemIndicatorProps}
148
- >
149
- {option.itemIndicator}
150
- </SelectPrimitive.ItemIndicator>
151
- )}
152
- </SelectPrimitive.Item>
153
- )
154
- }
155
-
156
- return (
157
- <SelectPrimitive.Root
158
- {...props}
159
- defaultValue={defaultValue}
160
- value={value}
161
- onValueChange={handleValueChange}
162
- >
163
- {label && (
164
- <label
165
- htmlFor={triggerId}
166
- className={clsx(s.label, 'typography-body1', labelClassName)}
167
- {...restLabelProps}
168
- >
169
- {label}
170
- </label>
171
- )}
172
-
173
- <SelectPrimitive.Trigger
174
- ref={ref}
175
- id={triggerId}
176
- className={clsx(
177
- s.trigger,
178
- 'typography-subtitle1',
179
- label && s.hasLabel,
180
- className,
181
- triggerClassName
182
- )}
183
- {...restTriggerProps}
184
- >
185
- <span className={s.textBlock}>
186
- <span className={s.valueRow}>
187
- {selectedOption?.icon && (
188
- <span className={s.startIcon} aria-hidden>
189
- {selectedOption.icon}
190
- </span>
191
- )}
192
- <SelectPrimitive.Value placeholder={placeholder} {...valueProps} />
193
- </span>
194
- </span>
195
-
196
- <SelectPrimitive.Icon
197
- className={clsx(s.icon, iconClassName)}
198
- aria-hidden
199
- {...restIconProps}
200
- >
201
- {triggerIcon ?? iconChildren ?? <span />}
202
- </SelectPrimitive.Icon>
203
- </SelectPrimitive.Trigger>
204
-
205
- <SelectPrimitive.Portal {...portalProps}>
206
- <SelectPrimitive.Content
207
- className={clsx(s.content, contentClassName, contentPropsClassName)}
208
- position={position}
209
- sideOffset={sideOffset}
210
- {...restContentProps}
211
- >
212
- <SelectPrimitive.Viewport
213
- className={clsx(s.viewport, viewportClassName)}
214
- {...restViewportProps}
215
- >
216
- {options.map((option, index) => {
217
- if (option.type === 'separator') {
218
- const { className: separatorPropsClassName, ...restSeparatorProps } =
219
- option.separatorProps ?? {}
220
-
221
- return (
222
- <SelectPrimitive.Separator
223
- key={`separator-${index}`}
224
- className={clsx(s.separator, separatorClassName, separatorPropsClassName)}
225
- {...restSeparatorProps}
226
- />
227
- )
228
- }
229
-
230
- if (option.type === 'group') {
231
- const { className: groupLabelPropsClassName, ...restGroupLabelProps } =
232
- option.labelProps ?? {}
233
-
234
- return (
235
- <SelectPrimitive.Group key={`group-${index}`} {...option.groupProps}>
236
- <SelectPrimitive.Label
237
- className={clsx(
238
- s.groupLabel,
239
- 'typography-body1',
240
- groupLabelClassName,
241
- groupLabelPropsClassName
242
- )}
243
- {...restGroupLabelProps}
244
- >
245
- {option.label}
246
- </SelectPrimitive.Label>
247
- {option.options.map(renderOption)}
248
- </SelectPrimitive.Group>
249
- )
250
- }
251
-
252
- return renderOption(option)
253
- })}
254
- </SelectPrimitive.Viewport>
255
- </SelectPrimitive.Content>
256
- </SelectPrimitive.Portal>
257
- </SelectPrimitive.Root>
258
- )
259
- }
260
- )
261
-
262
- Select.displayName = 'Select'
@@ -1 +0,0 @@
1
- export * from './Select'
@@ -1,100 +0,0 @@
1
- @use '@/styles/mixins' as *;
2
-
3
- .navBar {
4
- @include flex(flex, none, none);
5
- @include width-height(13.75rem, 100%);
6
-
7
- position: relative;
8
- flex-direction: column;
9
- padding-top: 4.5rem;
10
- padding-bottom: 2.25rem;
11
- }
12
-
13
- .navBar > ul {
14
- @include flex(flex, none, none);
15
-
16
- flex-direction: column;
17
- gap: 0.25rem;
18
-
19
- margin: 0;
20
- padding: 0;
21
-
22
- list-style: none;
23
- }
24
-
25
- .navBar > ul > li {
26
- display: block;
27
- width: 100%;
28
- }
29
-
30
- .navBar > ul > li:nth-child(6) {
31
- margin-top: 3.5rem;
32
- }
33
-
34
- %nav-button-base {
35
- @include flex(flex, none, center);
36
- @include transition-basic(color, border-color);
37
-
38
- cursor: pointer;
39
-
40
- gap: 0.75rem;
41
-
42
- padding: 0.2rem 0.5rem;
43
- border: 2px solid transparent;
44
- border-radius: 4px;
45
-
46
- font: inherit;
47
- color: var(--color-light-100);
48
- text-align: left;
49
- text-decoration: none;
50
-
51
- background: none;
52
-
53
- &:hover {
54
- color: var(--color-accent-100);
55
- }
56
-
57
- &:focus-visible {
58
- border-color: var(--color-accent-300);
59
- outline: none;
60
- }
61
- }
62
-
63
- .navItem {
64
- @extend %nav-button-base;
65
-
66
- width: fit-content;
67
- margin-left: -0.5rem;
68
- }
69
-
70
- .activeItem {
71
- color: var(--color-accent-300);
72
-
73
- &:hover {
74
- color: var(--color-accent-300);
75
- }
76
- }
77
-
78
- .logOutBtn {
79
- @extend %nav-button-base;
80
-
81
- width: fit-content;
82
- margin-top: auto;
83
- margin-left: -0.5rem;
84
- }
85
-
86
- .disabled {
87
- pointer-events: none;
88
- cursor: not-allowed;
89
- color: var(--color-light-900);
90
- }
91
-
92
- .line {
93
- position: absolute;
94
-
95
- @include top-right(0);
96
-
97
- bottom: 0;
98
- width: 1px;
99
- background-color: var(--color-dark-300);
100
- }
@@ -1,74 +0,0 @@
1
- 'use client'
2
-
3
- import type { ReactNode } from 'react'
4
- import clsx from 'clsx'
5
- import { Button, Typography } from '@/components'
6
- import { TAB_INDEX } from '@/constants'
7
- import { getNavItemClickHandler } from '@/utils/getNavItemClickHandler'
8
- import s from './Sidebar.module.scss'
9
-
10
- export type SidebarItem = {
11
- activeIcon?: ReactNode
12
- disabled?: boolean
13
- href?: string
14
- icon: ReactNode
15
- id: string
16
- label: string
17
- }
18
-
19
- type SidebarProps = {
20
- activeId: string
21
- items: SidebarItem[]
22
- logOutIcon: ReactNode
23
- onLogout: () => void
24
- onValueChange?: (id: string) => void
25
- }
26
-
27
- export const Sidebar = ({ items, activeId, onValueChange, onLogout, logOutIcon }: SidebarProps) => {
28
- return (
29
- <nav className={s.navBar}>
30
- <ul>
31
- {items.map(item => {
32
- const isActive = activeId === item.id
33
- const isDisabled = Boolean(item.disabled)
34
- const { handleClick: baseHandleClick, resolvedHref } = getNavItemClickHandler(
35
- item.href,
36
- () => onValueChange?.(item.id)
37
- )
38
-
39
- const handleClick = (event: React.MouseEvent<HTMLAnchorElement>) => {
40
- if (isDisabled) {
41
- event.preventDefault()
42
-
43
- return
44
- }
45
-
46
- baseHandleClick(event)
47
- }
48
-
49
- return (
50
- <li key={item.id}>
51
- <Button
52
- as={'a'}
53
- href={isDisabled ? undefined : resolvedHref}
54
- className={clsx(s.navItem, isActive && s.activeItem, isDisabled && s.disabled)}
55
- onClick={handleClick}
56
- tabIndex={isDisabled ? TAB_INDEX.DISABLED : TAB_INDEX.ENABLED}
57
- aria-disabled={isDisabled}
58
- >
59
- {isActive && item.activeIcon ? item.activeIcon : item.icon}
60
- <Typography variant={'body2'}>{item.label}</Typography>
61
- </Button>
62
- </li>
63
- )
64
- })}
65
- </ul>
66
-
67
- <Button type={'button'} className={s.logOutBtn} onClick={onLogout}>
68
- {logOutIcon}
69
- <Typography variant={'body2'}>{'Log Out'}</Typography>
70
- </Button>
71
- <div className={s.line}></div>
72
- </nav>
73
- )
74
- }
@@ -1 +0,0 @@
1
- export * from './Sidebar'
@@ -1,64 +0,0 @@
1
- @use '@/styles/mixins' as *;
2
-
3
- .root {
4
- @include flex(flex, none, center);
5
- @include width-height(100%, 2.25rem);
6
-
7
- user-select: none;
8
-
9
- position: relative;
10
-
11
- padding: 0.75rem;
12
- border-radius: 0.3rem;
13
-
14
- background-color: color-mix(in srgb, var(--color-dark-500) 80%, transparent);
15
-
16
- &[data-disabled] {
17
- pointer-events: none;
18
- cursor: not-allowed;
19
- opacity: 0.5;
20
- }
21
- }
22
-
23
- .track {
24
- position: relative;
25
-
26
- flex-grow: 1;
27
-
28
- height: 0.125rem;
29
- border-radius: 100rem;
30
-
31
- background: var(--color-light-100);
32
- }
33
-
34
- .range {
35
- position: absolute;
36
- height: 100%;
37
- border-radius: 100rem;
38
- background: var(--color-accent-500);
39
- }
40
-
41
- .thumb {
42
- @include flex(flex, center, center);
43
- @include width-height(0.75rem);
44
- @include transition-basic(outline-offset);
45
-
46
- cursor: pointer;
47
- position: relative;
48
- border-radius: 50%;
49
- background: var(--color-accent-500);
50
-
51
- &::after {
52
- content: '';
53
-
54
- @include width-height(0.35rem);
55
-
56
- border-radius: 50%;
57
- background: var(--color-light-100);
58
- }
59
-
60
- &:focus-visible {
61
- outline: 2px solid var(--color-accent-100);
62
- outline-offset: 2px;
63
- }
64
- }
@@ -1,26 +0,0 @@
1
- 'use client'
2
-
3
- import type { ComponentPropsWithoutRef, ComponentRef } from 'react'
4
- import * as SliderPrimitive from '@radix-ui/react-slider'
5
- import clsx from 'clsx'
6
- import { forwardRef } from 'react'
7
- import s from './Slider.module.scss'
8
-
9
- export type SliderProps = Omit<
10
- ComponentPropsWithoutRef<typeof SliderPrimitive.Root>,
11
- 'children' | 'orientation'
12
- >
13
- type SliderElement = ComponentRef<typeof SliderPrimitive.Root>
14
-
15
- export const Slider = forwardRef<SliderElement, SliderProps>(({ className, ...props }, ref) => {
16
- return (
17
- <SliderPrimitive.Root ref={ref} className={clsx(s.root, className)} {...props}>
18
- <SliderPrimitive.Track className={s.track}>
19
- <SliderPrimitive.Range className={s.range} />
20
- </SliderPrimitive.Track>
21
- <SliderPrimitive.Thumb className={s.thumb} />
22
- </SliderPrimitive.Root>
23
- )
24
- })
25
-
26
- Slider.displayName = 'Slider'
@@ -1 +0,0 @@
1
- export * from './Slider'
@@ -1,23 +0,0 @@
1
- .table {
2
- border-collapse: collapse;
3
- width: 100%;
4
- }
5
-
6
- .head {
7
- background-color: var(--color-dark-500);
8
- }
9
-
10
- .row {
11
- border-bottom: 1px solid var(--color-dark-500);
12
-
13
- &:last-child {
14
- border-bottom: none;
15
- }
16
- }
17
-
18
- .headerCell,
19
- .cell {
20
- padding: 0.75rem 1.5rem;
21
- text-align: left;
22
- vertical-align: middle;
23
- }
@@ -1,57 +0,0 @@
1
- 'use client'
2
-
3
- import type { ComponentPropsWithoutRef } from 'react'
4
- import clsx from 'clsx'
5
- import { forwardRef } from 'react'
6
- import { Typography } from '@/components'
7
- import s from './Table.module.scss'
8
-
9
- export const Table = forwardRef<HTMLTableElement, ComponentPropsWithoutRef<'table'>>(
10
- ({ className, ...props }, ref) => (
11
- <table ref={ref} className={clsx(s.table, className)} {...props} />
12
- )
13
- )
14
-
15
- Table.displayName = 'Table'
16
-
17
- export const TableHead = forwardRef<HTMLTableSectionElement, ComponentPropsWithoutRef<'thead'>>(
18
- ({ className, ...props }, ref) => (
19
- <thead ref={ref} className={clsx(s.head, className)} {...props} />
20
- )
21
- )
22
-
23
- TableHead.displayName = 'TableHead'
24
-
25
- export const TableBody = forwardRef<HTMLTableSectionElement, ComponentPropsWithoutRef<'tbody'>>(
26
- ({ className, ...props }, ref) => (
27
- <tbody ref={ref} className={clsx(s.body, className)} {...props} />
28
- )
29
- )
30
-
31
- TableBody.displayName = 'TableBody'
32
-
33
- export const TableRow = forwardRef<HTMLTableRowElement, ComponentPropsWithoutRef<'tr'>>(
34
- ({ className, ...props }, ref) => <tr ref={ref} className={clsx(s.row, className)} {...props} />
35
- )
36
-
37
- TableRow.displayName = 'TableRow'
38
-
39
- export const TableHeaderCell = forwardRef<HTMLTableCellElement, ComponentPropsWithoutRef<'th'>>(
40
- ({ className, children, ...props }, ref) => (
41
- <th ref={ref} className={clsx(s.headerCell, className)} {...props}>
42
- <Typography variant={'body3'}>{children}</Typography>
43
- </th>
44
- )
45
- )
46
-
47
- TableHeaderCell.displayName = 'TableHeaderCell'
48
-
49
- export const TableCell = forwardRef<HTMLTableCellElement, ComponentPropsWithoutRef<'td'>>(
50
- ({ className, children, ...props }, ref) => (
51
- <td ref={ref} className={clsx(s.cell, className)} {...props}>
52
- <Typography variant={'body1'}>{children}</Typography>
53
- </td>
54
- )
55
- )
56
-
57
- TableCell.displayName = 'TableCell'
@@ -1 +0,0 @@
1
- export * from './Table'
@@ -1,78 +0,0 @@
1
- @use '@/styles/mixins' as *;
2
-
3
- .list {
4
- @include flex(flex);
5
-
6
- width: 100%;
7
- border-bottom: 2px solid var(--color-dark-100);
8
- }
9
-
10
- .trigger {
11
- all: unset;
12
-
13
- cursor: pointer;
14
- user-select: none;
15
-
16
- position: relative;
17
-
18
- flex: 1;
19
-
20
- box-sizing: border-box;
21
- height: 36px;
22
- padding: 0 1rem;
23
- border-radius: 2px;
24
-
25
- color: var(--color-dark-100);
26
-
27
- &::after {
28
- content: '';
29
-
30
- position: absolute;
31
- right: 0;
32
- bottom: -2px;
33
- left: 0;
34
-
35
- height: 2px;
36
-
37
- background: transparent;
38
-
39
- @include transition-basic(background-color);
40
- }
41
-
42
- &:hover:not(:disabled) {
43
- background: var(--color-dark-500);
44
- }
45
-
46
- &:focus-visible {
47
- z-index: 2;
48
- outline: none;
49
- box-shadow: 0 0 0 2px var(--color-accent-500);
50
- }
51
-
52
- &:disabled {
53
- cursor: default;
54
- color: var(--color-dark-100);
55
- opacity: 0.5;
56
- }
57
-
58
- &:active:not(:disabled) {
59
- background: var(--color-dark-300);
60
- }
61
-
62
- &[data-state='active'] {
63
- color: var(--color-accent-500);
64
- background: transparent;
65
- }
66
-
67
- &[data-state='active']::after {
68
- background: var(--color-accent-500);
69
- }
70
-
71
- &:disabled::after {
72
- background: transparent;
73
- }
74
-
75
- @include flex(flex, center, center);
76
-
77
- @include transition-basic(background-color, color);
78
- }