@modul/mbui 0.0.27-beta-webpack-6d7a3f6c → 0.0.27-beta-fix-pv-53496-60a0aad0

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 (346) hide show
  1. package/dist/1476644af6cec1bd02a8.svg +1 -0
  2. package/dist/2deb3e3ba437d0581b29.svg +1 -0
  3. package/dist/302a770df56183f57b8f.svg +1 -0
  4. package/dist/49544592ad8cdafd48da.svg +1 -0
  5. package/dist/5353644099f4ce1b7bfb.svg +1 -0
  6. package/dist/53d3b89e5caf3efddf2f.svg +1 -0
  7. package/dist/8b4291644fa951602fbf.svg +1 -0
  8. package/dist/BankCardImage/BankCardImage.d.ts +8 -0
  9. package/dist/BankCardImage/index.d.ts +1 -0
  10. package/dist/BankCardImage/index.js +1 -0
  11. package/dist/Calendar/index.js +1 -1
  12. package/dist/DatePicker/index.js +1 -1
  13. package/dist/Input/index.js +1 -1
  14. package/dist/Input-OTP/Input.d.ts +2 -2
  15. package/dist/assets/css/global.css +1 -0
  16. package/{src → dist}/assets/fonts/Roboto-Italic.ttf +0 -0
  17. package/{src → dist}/assets/fonts/Roboto.ttf +0 -0
  18. package/dist/e02563d712f5569fb640.svg +1 -0
  19. package/dist/fa6c9ce5bcdc19d33629.svg +1 -0
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +11 -11
  22. package/package.json +11 -12
  23. package/dist/5df09ceadd47d11f8760.woff2 +0 -0
  24. package/dist/@/config/button.d.ts +0 -78
  25. package/dist/@/config/index.d.ts +0 -223
  26. package/dist/@/config/index.js +0 -1
  27. package/dist/@/config/label.d.ts +0 -90
  28. package/dist/ac50880e253005087d8a.woff2 +0 -0
  29. package/dist/index.css +0 -1
  30. package/src/@/lib/utils.ts +0 -7
  31. package/src/Alert/Alert.tsx +0 -81
  32. package/src/Alert/index.ts +0 -1
  33. package/src/AlertDialog/AlertDialog.tsx +0 -137
  34. package/src/AlertDialog/index.ts +0 -13
  35. package/src/Audio/Audio.styl +0 -115
  36. package/src/Audio/Audio.tsx +0 -359
  37. package/src/Audio/index.ts +0 -4
  38. package/src/Audio/types.ts +0 -40
  39. package/src/Badge/Badge.tsx +0 -58
  40. package/src/Badge/index.ts +0 -1
  41. package/src/Base/Input/Base.tsx +0 -37
  42. package/src/Base/Input/Input.tsx +0 -42
  43. package/src/Base/Input/index.ts +0 -3
  44. package/src/Base/Input/types.ts +0 -11
  45. package/src/Base/Links/TextLink.tsx +0 -16
  46. package/src/Base/Links/index.ts +0 -3
  47. package/src/BottomNavigation/BottomNavigation.tsx +0 -62
  48. package/src/BottomNavigation/index.ts +0 -1
  49. package/src/Button/Button.tsx +0 -124
  50. package/src/Button/ButtonWidget.tsx +0 -67
  51. package/src/Button/index.ts +0 -2
  52. package/src/Calendar/Calendar.tsx +0 -61
  53. package/src/Calendar/index.ts +0 -1
  54. package/src/Chat/MessageTyping.tsx +0 -61
  55. package/src/Chat/index.ts +0 -1
  56. package/src/Checkbox/Checkbox.tsx +0 -28
  57. package/src/Checkbox/index.ts +0 -1
  58. package/src/Chip/Chip.tsx +0 -55
  59. package/src/Chip/index.ts +0 -1
  60. package/src/Collapsible/AccountCollapsible.tsx +0 -79
  61. package/src/Collapsible/Collapsible.tsx +0 -13
  62. package/src/Collapsible/index.ts +0 -8
  63. package/src/DatePicker/DatePicker.tsx +0 -41
  64. package/src/DatePicker/index.ts +0 -1
  65. package/src/DigitKeyPad/DigitKeyPad.tsx +0 -69
  66. package/src/DigitKeyPad/index.ts +0 -1
  67. package/src/Drawer/Drawer.tsx +0 -89
  68. package/src/Drawer/index.ts +0 -7
  69. package/src/FavoritePyments/FavoritePaymentsList.tsx +0 -40
  70. package/src/FavoritePyments/index.ts +0 -1
  71. package/src/Form/Form.tsx +0 -154
  72. package/src/Form/index.ts +0 -1
  73. package/src/Icon/SvgIcon.tsx +0 -32
  74. package/src/Icon/icons/AddList.tsx +0 -19
  75. package/src/Icon/icons/AlertCircle.tsx +0 -18
  76. package/src/Icon/icons/AlertCircleSolid.tsx +0 -18
  77. package/src/Icon/icons/AlertDiamond.tsx +0 -18
  78. package/src/Icon/icons/AlertDiamondSolid.tsx +0 -18
  79. package/src/Icon/icons/AlertShield.tsx +0 -18
  80. package/src/Icon/icons/Android.tsx +0 -18
  81. package/src/Icon/icons/Apple.tsx +0 -18
  82. package/src/Icon/icons/Archive.tsx +0 -18
  83. package/src/Icon/icons/ArrowCircle.tsx +0 -18
  84. package/src/Icon/icons/ArrowDown.tsx +0 -18
  85. package/src/Icon/icons/ArrowLeft.tsx +0 -18
  86. package/src/Icon/icons/ArrowRight.tsx +0 -18
  87. package/src/Icon/icons/ArrowUp.tsx +0 -18
  88. package/src/Icon/icons/ArrowUpCorner.tsx +0 -18
  89. package/src/Icon/icons/ArrowsChange.tsx +0 -18
  90. package/src/Icon/icons/Atm.tsx +0 -18
  91. package/src/Icon/icons/Attach.tsx +0 -18
  92. package/src/Icon/icons/Bank.tsx +0 -18
  93. package/src/Icon/icons/Bold.tsx +0 -18
  94. package/src/Icon/icons/Bonus.tsx +0 -18
  95. package/src/Icon/icons/Building.tsx +0 -18
  96. package/src/Icon/icons/Calendar.tsx +0 -18
  97. package/src/Icon/icons/CalendarCancel.tsx +0 -18
  98. package/src/Icon/icons/Call.tsx +0 -18
  99. package/src/Icon/icons/CallEnd.tsx +0 -18
  100. package/src/Icon/icons/CallMissed.tsx +0 -18
  101. package/src/Icon/icons/Callback.tsx +0 -18
  102. package/src/Icon/icons/Camera.tsx +0 -18
  103. package/src/Icon/icons/Cancel.tsx +0 -18
  104. package/src/Icon/icons/CancelSolid.tsx +0 -18
  105. package/src/Icon/icons/Card.tsx +0 -18
  106. package/src/Icon/icons/CardLock.tsx +0 -18
  107. package/src/Icon/icons/CardRefill.tsx +0 -18
  108. package/src/Icon/icons/CardReissue.tsx +0 -18
  109. package/src/Icon/icons/CardScan.tsx +0 -18
  110. package/src/Icon/icons/CardToCard.tsx +0 -18
  111. package/src/Icon/icons/CardUnlock.tsx +0 -18
  112. package/src/Icon/icons/Change.tsx +0 -18
  113. package/src/Icon/icons/Chart.tsx +0 -18
  114. package/src/Icon/icons/Chat.tsx +0 -18
  115. package/src/Icon/icons/ChatSolid.tsx +0 -18
  116. package/src/Icon/icons/Check.tsx +0 -18
  117. package/src/Icon/icons/CheckCircle.tsx +0 -18
  118. package/src/Icon/icons/CheckCircleSolid.tsx +0 -18
  119. package/src/Icon/icons/CheckShield.tsx +0 -20
  120. package/src/Icon/icons/CheckSmall.tsx +0 -18
  121. package/src/Icon/icons/Checklist.tsx +0 -18
  122. package/src/Icon/icons/Circle.tsx +0 -18
  123. package/src/Icon/icons/Clock.tsx +0 -18
  124. package/src/Icon/icons/ClockSolid.tsx +0 -18
  125. package/src/Icon/icons/Close.tsx +0 -18
  126. package/src/Icon/icons/Coins.tsx +0 -18
  127. package/src/Icon/icons/Collapse.tsx +0 -18
  128. package/src/Icon/icons/Copy.tsx +0 -18
  129. package/src/Icon/icons/Cup.tsx +0 -18
  130. package/src/Icon/icons/CurrencyChange.tsx +0 -18
  131. package/src/Icon/icons/CurrencyTransfer.tsx +0 -18
  132. package/src/Icon/icons/Deposit.tsx +0 -18
  133. package/src/Icon/icons/Diamond.tsx +0 -18
  134. package/src/Icon/icons/Dislike.tsx +0 -18
  135. package/src/Icon/icons/DislikeSolid.tsx +0 -18
  136. package/src/Icon/icons/Doc.tsx +0 -18
  137. package/src/Icon/icons/DocCancel.tsx +0 -18
  138. package/src/Icon/icons/Dollar.tsx +0 -18
  139. package/src/Icon/icons/DoubleArrow.tsx +0 -18
  140. package/src/Icon/icons/DoubleTick.tsx +0 -18
  141. package/src/Icon/icons/Download.tsx +0 -18
  142. package/src/Icon/icons/Dropdown.tsx +0 -18
  143. package/src/Icon/icons/DropdownSmall.tsx +0 -20
  144. package/src/Icon/icons/DropdownSmallOld.tsx +0 -20
  145. package/src/Icon/icons/Dropup.tsx +0 -18
  146. package/src/Icon/icons/Edit.tsx +0 -18
  147. package/src/Icon/icons/Email.tsx +0 -18
  148. package/src/Icon/icons/Erase.tsx +0 -16
  149. package/src/Icon/icons/Excel.tsx +0 -18
  150. package/src/Icon/icons/Expand.tsx +0 -18
  151. package/src/Icon/icons/Eye.tsx +0 -18
  152. package/src/Icon/icons/EyeOff.tsx +0 -18
  153. package/src/Icon/icons/Favorite.tsx +0 -18
  154. package/src/Icon/icons/FavoriteSolid.tsx +0 -18
  155. package/src/Icon/icons/Fb.tsx +0 -18
  156. package/src/Icon/icons/FbCircle.tsx +0 -18
  157. package/src/Icon/icons/File.tsx +0 -18
  158. package/src/Icon/icons/FileAdd.tsx +0 -18
  159. package/src/Icon/icons/Files.tsx +0 -18
  160. package/src/Icon/icons/Filter.tsx +0 -18
  161. package/src/Icon/icons/Folder.tsx +0 -18
  162. package/src/Icon/icons/Geolocation.tsx +0 -18
  163. package/src/Icon/icons/Gift.tsx +0 -18
  164. package/src/Icon/icons/Globe.tsx +0 -18
  165. package/src/Icon/icons/Heart.tsx +0 -18
  166. package/src/Icon/icons/HeartSolid.tsx +0 -18
  167. package/src/Icon/icons/Help.tsx +0 -18
  168. package/src/Icon/icons/Home.tsx +0 -18
  169. package/src/Icon/icons/Housing.tsx +0 -18
  170. package/src/Icon/icons/Ig.tsx +0 -18
  171. package/src/Icon/icons/IgCircle.tsx +0 -18
  172. package/src/Icon/icons/Info.tsx +0 -18
  173. package/src/Icon/icons/InfoBook.tsx +0 -18
  174. package/src/Icon/icons/InfoSolid.tsx +0 -18
  175. package/src/Icon/icons/Italic.tsx +0 -18
  176. package/src/Icon/icons/Key.tsx +0 -18
  177. package/src/Icon/icons/Left.tsx +0 -18
  178. package/src/Icon/icons/Lightbulb.tsx +0 -18
  179. package/src/Icon/icons/Like.tsx +0 -18
  180. package/src/Icon/icons/LikeSolid.tsx +0 -18
  181. package/src/Icon/icons/Link.tsx +0 -18
  182. package/src/Icon/icons/Lock.tsx +0 -18
  183. package/src/Icon/icons/Logout.tsx +0 -18
  184. package/src/Icon/icons/MagicWand.tsx +0 -18
  185. package/src/Icon/icons/Mail.tsx +0 -18
  186. package/src/Icon/icons/MailSend.tsx +0 -18
  187. package/src/Icon/icons/Map.tsx +0 -18
  188. package/src/Icon/icons/MapPin.tsx +0 -18
  189. package/src/Icon/icons/MapPinSolid.tsx +0 -18
  190. package/src/Icon/icons/Menu.tsx +0 -18
  191. package/src/Icon/icons/Mic.tsx +0 -18
  192. package/src/Icon/icons/MicOff.tsx +0 -18
  193. package/src/Icon/icons/Minus.tsx +0 -18
  194. package/src/Icon/icons/MinusCircle.tsx +0 -18
  195. package/src/Icon/icons/MinusShort.tsx +0 -18
  196. package/src/Icon/icons/Moneybox.tsx +0 -18
  197. package/src/Icon/icons/More.tsx +0 -18
  198. package/src/Icon/icons/Move.tsx +0 -18
  199. package/src/Icon/icons/Newbie.tsx +0 -20
  200. package/src/Icon/icons/News.tsx +0 -18
  201. package/src/Icon/icons/Notes.tsx +0 -18
  202. package/src/Icon/icons/Notification.tsx +0 -18
  203. package/src/Icon/icons/Ok.tsx +0 -18
  204. package/src/Icon/icons/OkCircle.tsx +0 -18
  205. package/src/Icon/icons/Order.tsx +0 -18
  206. package/src/Icon/icons/OrderLoad.tsx +0 -18
  207. package/src/Icon/icons/OrderSend.tsx +0 -18
  208. package/src/Icon/icons/Pause.tsx +0 -18
  209. package/src/Icon/icons/PauseCircle.tsx +0 -18
  210. package/src/Icon/icons/Payment.tsx +0 -18
  211. package/src/Icon/icons/PhoneShake.tsx +0 -18
  212. package/src/Icon/icons/Play.tsx +0 -18
  213. package/src/Icon/icons/PlaySolid.tsx +0 -18
  214. package/src/Icon/icons/Plus.tsx +0 -18
  215. package/src/Icon/icons/PlusCircle.tsx +0 -18
  216. package/src/Icon/icons/Pos.tsx +0 -18
  217. package/src/Icon/icons/Print.tsx +0 -18
  218. package/src/Icon/icons/QrPay.tsx +0 -18
  219. package/src/Icon/icons/Redirect.tsx +0 -18
  220. package/src/Icon/icons/Refill.tsx +0 -18
  221. package/src/Icon/icons/Refund.tsx +0 -18
  222. package/src/Icon/icons/Reload.tsx +0 -19
  223. package/src/Icon/icons/Reply.tsx +0 -18
  224. package/src/Icon/icons/ReplyShape.tsx +0 -18
  225. package/src/Icon/icons/ReplyShapeSolid.tsx +0 -18
  226. package/src/Icon/icons/Request.tsx +0 -18
  227. package/src/Icon/icons/Right.tsx +0 -18
  228. package/src/Icon/icons/Route.tsx +0 -18
  229. package/src/Icon/icons/Ruble.tsx +0 -18
  230. package/src/Icon/icons/Sbp.tsx +0 -18
  231. package/src/Icon/icons/SbpColored.tsx +0 -46
  232. package/src/Icon/icons/Search.tsx +0 -18
  233. package/src/Icon/icons/Send.tsx +0 -18
  234. package/src/Icon/icons/Services.tsx +0 -17
  235. package/src/Icon/icons/Settings.tsx +0 -17
  236. package/src/Icon/icons/Share.tsx +0 -18
  237. package/src/Icon/icons/ShoppingCart.tsx +0 -18
  238. package/src/Icon/icons/Sign.tsx +0 -18
  239. package/src/Icon/icons/SlotMachine.tsx +0 -18
  240. package/src/Icon/icons/SortDown.tsx +0 -18
  241. package/src/Icon/icons/SortDownSolid.tsx +0 -18
  242. package/src/Icon/icons/SortUp.tsx +0 -18
  243. package/src/Icon/icons/SortUpSolid.tsx +0 -18
  244. package/src/Icon/icons/Stop.tsx +0 -18
  245. package/src/Icon/icons/Support.tsx +0 -18
  246. package/src/Icon/icons/Sync.tsx +0 -18
  247. package/src/Icon/icons/Table.tsx +0 -18
  248. package/src/Icon/icons/Tariffs.tsx +0 -19
  249. package/src/Icon/icons/Tg.tsx +0 -18
  250. package/src/Icon/icons/TgCircle.tsx +0 -18
  251. package/src/Icon/icons/Timeout.tsx +0 -18
  252. package/src/Icon/icons/Timer.tsx +0 -18
  253. package/src/Icon/icons/Transfer.tsx +0 -17
  254. package/src/Icon/icons/Trash.tsx +0 -18
  255. package/src/Icon/icons/TurnOff.tsx +0 -18
  256. package/src/Icon/icons/Twitter.tsx +0 -18
  257. package/src/Icon/icons/TwitterCircle.tsx +0 -18
  258. package/src/Icon/icons/Underline.tsx +0 -18
  259. package/src/Icon/icons/Unlink.tsx +0 -18
  260. package/src/Icon/icons/Unsorted.tsx +0 -18
  261. package/src/Icon/icons/UnsortedSolid.tsx +0 -18
  262. package/src/Icon/icons/Upload.tsx +0 -18
  263. package/src/Icon/icons/User.tsx +0 -18
  264. package/src/Icon/icons/UserAdd.tsx +0 -18
  265. package/src/Icon/icons/UserCard.tsx +0 -18
  266. package/src/Icon/icons/UserEdit.tsx +0 -18
  267. package/src/Icon/icons/UserQueue.tsx +0 -18
  268. package/src/Icon/icons/Viber.tsx +0 -18
  269. package/src/Icon/icons/ViberCircle.tsx +0 -18
  270. package/src/Icon/icons/ViewGrid.tsx +0 -18
  271. package/src/Icon/icons/ViewHorizontal.tsx +0 -18
  272. package/src/Icon/icons/ViewList.tsx +0 -18
  273. package/src/Icon/icons/ViewRows.tsx +0 -18
  274. package/src/Icon/icons/ViewVertical.tsx +0 -18
  275. package/src/Icon/icons/Vk.tsx +0 -18
  276. package/src/Icon/icons/VkCircle.tsx +0 -18
  277. package/src/Icon/icons/Wallet.tsx +0 -17
  278. package/src/Icon/icons/Warning.tsx +0 -18
  279. package/src/Icon/icons/WarningClean.tsx +0 -18
  280. package/src/Icon/icons/Whatsapp.tsx +0 -18
  281. package/src/Icon/icons/WhatsappCircle.tsx +0 -18
  282. package/src/Icon/icons/Wheelchair.tsx +0 -18
  283. package/src/Icon/icons/index.ts +0 -209
  284. package/src/Icon/index.ts +0 -2
  285. package/src/Input/Input.tsx +0 -35
  286. package/src/Input/InputMask.tsx +0 -36
  287. package/src/Input/index.ts +0 -2
  288. package/src/Input-OTP/Input.tsx +0 -64
  289. package/src/Input-OTP/index.ts +0 -3
  290. package/src/Label/Label.tsx +0 -20
  291. package/src/Label/index.ts +0 -1
  292. package/src/Logo/Logo.tsx +0 -22
  293. package/src/Logo/index.ts +0 -3
  294. package/src/Navbar/Navbar.tsx +0 -21
  295. package/src/Navbar/index.tsx +0 -2
  296. package/src/Page/Page.tsx +0 -43
  297. package/src/Page/index.ts +0 -1
  298. package/src/Popover/Popover.tsx +0 -64
  299. package/src/Popover/index.ts +0 -5
  300. package/src/Progress/Progress.tsx +0 -31
  301. package/src/Progress/index.ts +0 -1
  302. package/src/Select/Select.tsx +0 -19
  303. package/src/Select/SelectAccount.tsx +0 -101
  304. package/src/Select/SelectAccountCard.tsx +0 -146
  305. package/src/Select/SelectAsync.tsx +0 -28
  306. package/src/Select/SelectBase.tsx +0 -54
  307. package/src/Select/components/components.tsx +0 -186
  308. package/src/Select/components/index.tsx +0 -15
  309. package/src/Select/index.ts +0 -5
  310. package/src/Skeleton/Skeleton.tsx +0 -25
  311. package/src/Skeleton/index.ts +0 -1
  312. package/src/Slider/Slider.tsx +0 -38
  313. package/src/Slider/index.ts +0 -4
  314. package/src/Swipe2Show/Swipe2Show.tsx +0 -71
  315. package/src/Swipe2Show/index.ts +0 -1
  316. package/src/Switch/Switch.tsx +0 -59
  317. package/src/Switch/index.ts +0 -1
  318. package/src/Tabs/Tabs.tsx +0 -106
  319. package/src/Tabs/index.ts +0 -1
  320. package/src/Textarea/Textarea.tsx +0 -35
  321. package/src/Textarea/index.ts +0 -1
  322. package/src/Toaster/Toaster.tsx +0 -71
  323. package/src/Toaster/index.ts +0 -1
  324. package/src/assets/css/global.css +0 -209
  325. package/src/assets/images/logo/1c.svg +0 -1
  326. package/src/assets/images/logo/bank/emblem-white.svg +0 -1
  327. package/src/assets/images/logo/bank/emblem.svg +0 -1
  328. package/src/assets/images/logo/bank/logo-white.svg +0 -1
  329. package/src/assets/images/logo/bank/logo.svg +0 -1
  330. package/src/assets/images/logo/garant/emblem-white.svg +0 -1
  331. package/src/assets/images/logo/garant/emblem.svg +0 -1
  332. package/src/assets/images/logo/garant/logo-white.svg +0 -1
  333. package/src/assets/images/logo/garant/logo.svg +0 -1
  334. package/src/assets/images/logo/kassa/emblem-white.svg +0 -1
  335. package/src/assets/images/logo/kassa/emblem.svg +0 -1
  336. package/src/assets/images/logo/kassa/logo-white.svg +0 -1
  337. package/src/assets/images/logo/kassa/logo.svg +0 -1
  338. package/src/assets/images/logo/sbp-logo.svg +0 -1
  339. package/src/assets/images/statusbar.svg +0 -1
  340. package/src/index.ts +0 -135
  341. package/src/pages/payments/SmsSign/sms-sign.tsx +0 -91
  342. /package/{src → dist}/@/config/button.ts +0 -0
  343. /package/{src → dist}/@/config/index.ts +0 -0
  344. /package/{src → dist}/@/config/label.ts +0 -0
  345. /package/{src → dist}/assets/fonts/Roboto-Italic.woff2 +0 -0
  346. /package/{src → dist}/assets/fonts/Roboto.woff2 +0 -0
@@ -1,58 +0,0 @@
1
- import * as React from 'react'
2
- import { cva, type VariantProps } from 'class-variance-authority'
3
-
4
- import { cn } from '../@/lib/utils'
5
-
6
- const badgeClasses = {
7
- variant: {
8
- base: `
9
- inline-block
10
- focus:ring-2
11
- focus:ring-ring
12
- focus:ring-offset-2
13
- focus:outline-none
14
- transition-colors
15
- rounded-full
16
- `,
17
- default: `
18
- bg-critical
19
- text-white
20
- `,
21
- },
22
- size: {
23
- default: 'size-[16px] text-[10px] text-center leadimg-[1] truncate',
24
- dot: 'size-[10px] bg-critical-light border-critical border-[3px]',
25
- sm: '',
26
- md: '',
27
- lg: '',
28
- },
29
- }
30
-
31
- const badgeVariants = cva(badgeClasses.variant.base, {
32
- variants: {
33
- variant: {
34
- default: badgeClasses.variant.default,
35
- },
36
- size: {
37
- default: badgeClasses.size.default,
38
- dot: badgeClasses.size.dot
39
- },
40
- },
41
- defaultVariants: {
42
- variant: 'default',
43
- size: 'default',
44
- },
45
- })
46
-
47
- export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
48
-
49
- function Badge({ className, variant, size, ...props }: BadgeProps) {
50
- return (
51
- <div
52
- className={cn(badgeVariants({ variant, size }), className)}
53
- {...props}
54
- />
55
- )
56
- }
57
-
58
- export { Badge, badgeVariants }
@@ -1 +0,0 @@
1
- export { Badge, badgeVariants } from './Badge'
@@ -1,37 +0,0 @@
1
- import React, { ChangeEvent, ForwardedRef } from 'react'
2
- import { IMaskInput } from 'react-imask'
3
- import { IInputProps } from './types'
4
-
5
- const Base = React.forwardRef<HTMLInputElement, IInputProps>(
6
- ({ onChange, type = 'text', mask, ...props }: IInputProps, ref: ForwardedRef<HTMLInputElement>) => {
7
- const handleChange = (event: ChangeEvent<HTMLInputElement>): void => {
8
- // @ts-ignore
9
- const val = event.target.value
10
- onChange?.(val, event)
11
- }
12
-
13
- if (!mask) {
14
- return (
15
- <input
16
- type={type}
17
- ref={ref}
18
- onChange={handleChange}
19
- {...props}
20
- />
21
- )
22
- }
23
-
24
- return (
25
- // @ts-ignore
26
- <IMaskInput
27
- type={type}
28
- inputRef={ref}
29
- mask={mask}
30
- onChange={handleChange}
31
- {...props}
32
- />
33
- )
34
- }
35
- )
36
-
37
- export default Base
@@ -1,42 +0,0 @@
1
- import React, { ForwardedRef } from 'react'
2
- import Base from './Base'
3
- import { IInputProps } from './types'
4
-
5
- const Input = React.forwardRef<HTMLInputElement, IInputProps>(
6
- ({ onChange, value, clearable, ...props }: IInputProps, ref: ForwardedRef<HTMLInputElement>) => {
7
- const handleClearClick = (): void => {
8
- onChange?.('')
9
- }
10
-
11
- if (!clearable) {
12
- return (
13
- <Base
14
- ref={ref}
15
- onChange={onChange}
16
- value={value}
17
- {...props}
18
- />
19
- )
20
- }
21
-
22
- return (
23
- <div className="input_wrap_clear">
24
- <Base
25
- ref={ref}
26
- onChange={onChange}
27
- value={value}
28
- {...props}
29
- />
30
- {value && (
31
- <a
32
- className="input_clear icon-cancel"
33
- onClick={handleClearClick}
34
- style={{ visibility: 'initial' }}
35
- />
36
- )}
37
- </div>
38
- )
39
- }
40
- )
41
-
42
- export default Input
@@ -1,3 +0,0 @@
1
- import Input from './Input'
2
-
3
- export { Input }
@@ -1,11 +0,0 @@
1
- import React, { ChangeEvent, ChangeEventHandler } from 'react'
2
-
3
- type CustomChangeEventHandler = (value: string, event?: ChangeEvent<HTMLInputElement>) => void
4
-
5
- type CombinedChangeEventHandler = ChangeEventHandler<HTMLInputElement> & CustomChangeEventHandler
6
-
7
- export interface IInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
8
- onChange?: CombinedChangeEventHandler
9
- mask?: string | RegExp | (string | RegExp)[] | NumberConstructor
10
- clearable?: boolean
11
- }
@@ -1,16 +0,0 @@
1
- import React from 'react'
2
-
3
- type TextLinkProps = React.HTMLProps<HTMLAnchorElement>
4
-
5
- const TextLink = React.forwardRef<HTMLAnchorElement, TextLinkProps>(({ children, ...props }, ref) => {
6
- return (
7
- <a
8
- ref={ref}
9
- {...props}
10
- >
11
- {children}
12
- </a>
13
- )
14
- })
15
-
16
- export default TextLink
@@ -1,3 +0,0 @@
1
- import TextLink from './TextLink'
2
-
3
- export { TextLink }
@@ -1,62 +0,0 @@
1
- import * as React from 'react'
2
- import { Slot } from '@radix-ui/react-slot'
3
- import { cn } from '../@/lib/utils'
4
-
5
- export interface BottomNavigationLinkProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
- asChild?: boolean
7
- }
8
-
9
- export type IProps = {
10
- className?: string
11
- children: React.ReactNode
12
- }
13
-
14
- const btnClasses = `
15
- inline-flex
16
- flex-col
17
- place-items-center
18
- gap-y-[8px]
19
- w-full
20
- p-[8px]
21
- text-[10px]
22
- text-center
23
- text-light
24
- leading-[1.33]
25
- transition
26
- duration-300
27
- hover:bg-btn-ghost-hover
28
- hover:text-primary
29
- focus:bg-btn-ghost-focus
30
- active:bg-btn-ghost-active
31
- data-[status=active]:text-primary
32
- `
33
-
34
- const BottomNavigationLink = React.forwardRef<HTMLButtonElement, BottomNavigationLinkProps>(({ className, asChild, ...props }, ref) => {
35
- const Comp = asChild ? Slot : "button"
36
- return (
37
- <Comp
38
- className={cn(btnClasses, className)}
39
- ref={ref}
40
- {...props}
41
- />
42
- )
43
- })
44
-
45
- BottomNavigationLink.displayName = 'BottomNavigationLink'
46
-
47
- const BottomNavigationListItem = React.forwardRef(({ className, children }: IProps, ref) => (
48
- <li className={className}>{children}</li>
49
- ))
50
- BottomNavigationListItem.displayName = 'BottomNavigationListItem'
51
-
52
- const BottomNavigationList = React.forwardRef(({ className, children }: IProps, ref) => (
53
- <ul className="flex *:w-[calc(100%_/_5)]">{children}</ul>
54
- ))
55
- BottomNavigationList.displayName = 'BottomNavigationList'
56
-
57
- const BottomNavigation = React.forwardRef(({ className, children }: IProps, ref) => {
58
- return <nav className={className}>{children}</nav>
59
- })
60
- BottomNavigation.displayName = 'BottomNavigation'
61
-
62
- export { BottomNavigation, BottomNavigationList, BottomNavigationListItem, BottomNavigationLink }
@@ -1 +0,0 @@
1
- export { BottomNavigation, BottomNavigationList, BottomNavigationListItem, BottomNavigationLink } from './BottomNavigation'
@@ -1,124 +0,0 @@
1
- import * as React from 'react'
2
- import { Slot } from '@radix-ui/react-slot'
3
- import { cva, type VariantProps } from 'class-variance-authority'
4
- import { cn } from '../@/lib/utils'
5
-
6
- const buttonClasses = {
7
- base: `
8
- inline-flex
9
- justify-center
10
- items-center
11
- border-[2px]
12
- rounded-md
13
- font-medium
14
- leading-[1]
15
- focus-visible:ring
16
- focus-visible:outline-none
17
- ring-offset-1
18
- disabled:pointer-events-none
19
- transition-colors
20
- whitespace-nowrap
21
- shrink-0
22
- `,
23
- primary: `
24
- text-btn-primary
25
- bg-btn-primary
26
- border-btn-primary
27
- hover:bg-btn-primary-hover
28
- hover:border-btn-primary-hover
29
- focus-visible:bg-btn-primary-focus
30
- focus-visible:border-btn-primary-focus
31
- active:bg-btn-primary-active
32
- active:border-btn-primary-active
33
- disabled:bg-btn-primary-disabled
34
- disabled:border-btn-primary-disabled
35
- `,
36
- secondary: `
37
- text-btn-secondary
38
- bg-btn-secondary
39
- border-btn-secondary
40
- hover:bg-btn-secondary-hover
41
- hover:border-btn-secondary-hover
42
- focus-visible:bg-btn-secondary-focus
43
- focus-visibleborder-btn-secondary-focus
44
- active:bg-btn-secondary-active
45
- active:border-btn-secondary-active
46
- disabled:text-btn-secondary-disabled
47
- `,
48
- outline: `
49
- text-btn-outline
50
- border-[1px]
51
- border-btn-outline
52
- hover:border-btn-outline-hover
53
- focus:border-btn-outline-focus
54
- active:border-btn-outline-active
55
- disabled:border-btn-outline-disabled
56
- disabled:text-btn-outline-disabled
57
- `,
58
- ghost: `
59
- text-btn-ghost
60
- border-transparent
61
- hover:text-btn-ghost-hover
62
- focus-visible:text-btn-ghost-focus
63
- active:text-btn-ghost-active
64
- disabled:text-btn-ghost-disabled
65
- `,
66
- }
67
-
68
- const getPadings = (icon, variant) => {
69
- return cn(
70
- icon && 'p-[12px] aspect-square',
71
- icon && variant === 'outline' && 'p-[13px] aspect-square',
72
- !icon && 'px-[24px] py-[12px]',
73
- !icon && variant === 'outline' && 'px-[25px] py-[13px]',
74
- )
75
- }
76
- interface IVariantProps {
77
- variant?: 'primary'| 'secondary' | 'outline' | 'ghost',
78
- className?: string,
79
- icon?: boolean
80
- }
81
-
82
-
83
- const buttonVariants = ({ variant, className, icon }: IVariantProps) => {
84
- return cva(`${buttonClasses.base} ${getPadings(icon, variant)}`,
85
- {
86
- variants: {
87
- variant: {
88
- primary: buttonClasses.primary,
89
- secondary: buttonClasses.secondary,
90
- outline: buttonClasses.outline,
91
- ghost: buttonClasses.ghost,
92
- },
93
- },
94
- defaultVariants: {
95
- variant: 'primary',
96
- },
97
- }
98
- )({ variant, className })
99
- }
100
-
101
- export interface ButtonProps
102
- extends React.ButtonHTMLAttributes<HTMLButtonElement>,
103
- VariantProps<typeof buttonVariants> {
104
- asChild?: boolean
105
- icon?: boolean
106
- }
107
-
108
- const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
109
- ({ className, variant, asChild = false, icon, ...props }, ref) => {
110
- const Comp = asChild ? Slot : 'button'
111
-
112
- return (
113
- <Comp
114
- className={cn(buttonVariants({ variant, className, icon }))}
115
- ref={ref}
116
- {...props}
117
- />
118
- )
119
- }
120
- )
121
-
122
- Button.displayName = 'Button'
123
-
124
- export { Button, buttonVariants }
@@ -1,67 +0,0 @@
1
- import * as React from 'react'
2
- import { Slot } from '@radix-ui/react-slot'
3
- import { cva, type VariantProps } from 'class-variance-authority'
4
- import { cn } from '../@/lib/utils'
5
-
6
- const buttonClasses = `
7
- inline-flex
8
- items-center
9
- shrink-0
10
- p-[8px]
11
- rounded-md
12
- font-medium
13
- leading-[1]
14
- focus-visible:ring
15
- focus-visible:outline-none
16
- ring-offset-1
17
- transition-colors
18
- whitespace-nowrap
19
- bg-page
20
- shadow-md
21
- active:shadow-sm
22
- disabled:pointer-events-none
23
- `
24
-
25
- interface IProps {
26
- children?: React.ReactNode
27
- className?: string
28
- }
29
-
30
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
31
- asChild?: boolean
32
- }
33
-
34
- const Icon: React.FC<IProps> = ({ children }) => {
35
- return <span className="flex justify-center items-center bg-primary-light [&+span]:ml-[16px] rounded-full text-primary size-[40px]">{children}</span>
36
- }
37
-
38
- const Content: React.FC<IProps> = ({ children, className }) => {
39
- return <span className={cn('text-dark', className)}>{children}</span>
40
- }
41
-
42
- interface IButtonWidgetProps {
43
- displayName: string
44
- Icon: typeof Icon
45
- Content: typeof Content
46
- }
47
-
48
- const ButtonWidget: React.FC<ButtonProps> & IButtonWidgetProps = ({ className, asChild = false, ...props }) => {
49
- const Comp = asChild ? Slot : 'button'
50
- return (
51
- <Comp
52
- className={cn(buttonClasses, className)}
53
- {...props}
54
- />
55
- )
56
- }
57
-
58
-
59
- ButtonWidget.displayName = 'ButtonWidget'
60
-
61
- ButtonWidget.Icon = Icon
62
- ButtonWidget.Icon.displayName = 'ButtonWidget.Icon'
63
-
64
- ButtonWidget.Content = Content
65
- ButtonWidget.Content.displayName = 'ButtonWidget.Content'
66
-
67
- export { ButtonWidget }
@@ -1,2 +0,0 @@
1
- export { Button, buttonVariants } from './Button'
2
- export { ButtonWidget } from './ButtonWidget'
@@ -1,61 +0,0 @@
1
- import * as React from 'react'
2
- import { DayPicker } from 'react-day-picker'
3
- import { cn } from '../@/lib/utils'
4
- import ru from 'date-fns/locale/ru'
5
-
6
- const daySelectedClasses = 'bg-btn-primary text-btn-primary rounded-sm'
7
- const dayTodayClasses = 'bg-btn-secondary text-btn-secondary rounded-sm'
8
- const rangeMiddleClasses = 'date-range-middle aria-selected:bg-btn-primary/50 aria-selected:text-white'
9
- const btnNavClasses =
10
- 'opacity-50 hover:opacity-100 ring-offset-2 focus-visible:opacity-100 focus-visible:outline-primary border-input border rounded-sm shadow-sm'
11
-
12
- export type CalendarProps = React.ComponentProps<typeof DayPicker>
13
- function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) {
14
- return (
15
- <DayPicker
16
- locale={ru}
17
- showOutsideDays={showOutsideDays}
18
- className={cn('inline-flex', className)}
19
- classNames={{
20
- months: 'relative',
21
- month: 'flex flex-col space-y-[16px] items-center',
22
- month_grid: 'w-full border-collapse',
23
- month_caption: 'inline m-x-auto',
24
- caption_label: 'text-sm font-medium capitalize',
25
- nav: 'flex justify-between absolute start-0 end-0',
26
- button_previous: btnNavClasses,
27
- button_next: btnNavClasses,
28
- weekdays: 'flex',
29
- weekday: 'text-light w-[32px] font-normal text-[14px]',
30
- week: 'flex w-full mt-2',
31
- day_button: 'w-[32px] h-[32px] p-0',
32
- day: cn(
33
- 'aria-selected:opacity-100 text-[14px] leading-[1]',
34
- props.mode === 'range'
35
- ? '[&:(.day-range-middle)]:rounded-0 [&:has(>.day-range-end)]:rounded-r-sm [&:has(>.day-range-start)]:rounded-l-sm first:[&:has([aria-selected])]:rounded-l-sm last:[&:has([aria-selected])]:rounded-r-sm'
36
- : '[&:([aria-selected])]:rounded-sm'
37
- ),
38
- range_start: 'day-range-start',
39
- range_end: 'day-range-end',
40
- range_middle: rangeMiddleClasses,
41
- selected: daySelectedClasses,
42
- today: dayTodayClasses,
43
- outside:
44
- 'day-outside opacity-50 aria-selected:bg-primary aria-selected:text-[white] aria-selected:opacity-30',
45
- disabled: 'text-light opacity-50',
46
- hidden: 'invisible',
47
- ...classNames,
48
- }}
49
- components={
50
- {
51
- // Chevron: () => <Left className="w-4 h-4" />,
52
- }
53
- }
54
- {...props}
55
- />
56
- )
57
- }
58
-
59
- Calendar.displayName = 'Calendar'
60
-
61
- export { Calendar }
@@ -1 +0,0 @@
1
- export { Calendar } from './Calendar'
@@ -1,61 +0,0 @@
1
- import React, { FC, SVGProps } from 'react'
2
- import { cn } from '../@/lib/utils'
3
-
4
- export const MessageTyping: FC<SVGProps<SVGElement>> = ({ className }) => {
5
- return (
6
- <svg
7
- className={cn(className)}
8
- width="72"
9
- height="40"
10
- fill="none"
11
- xmlns="http://www.w3.org/2000/svg"
12
- >
13
- <path
14
- d="M0 8a8 8 0 0 1 8-8h56a8 8 0 0 1 8 8v24a8 8 0 0 1-8 8H0V8Z"
15
- fill="#F5F5F6"
16
- />
17
- <path
18
- id="dot_1"
19
- d="M20 24a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"
20
- fill="#9B9FA8"
21
- />
22
- <animate
23
- href="#dot_1"
24
- attributeType="CSS"
25
- attributeName="opacity"
26
- values="1;0;1;"
27
- dur=".8s"
28
- begin="0"
29
- repeatCount="indefinite"
30
- />
31
- <path
32
- id="dot_2"
33
- d="M36 24a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"
34
- fill="#9B9FA8"
35
- />
36
- <animate
37
- href="#dot_2"
38
- attributeType="CSS"
39
- attributeName="opacity"
40
- values="1;0;1;"
41
- dur=".8s"
42
- begin=".15s"
43
- repeatCount="indefinite"
44
- />
45
- <path
46
- id="dot_3"
47
- d="M52 24a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"
48
- fill="#9B9FA8"
49
- />
50
- <animate
51
- href="#dot_3"
52
- attributeType="CSS"
53
- attributeName="opacity"
54
- values="1;0;1;"
55
- dur=".8s"
56
- begin=".3s"
57
- repeatCount="indefinite"
58
- />
59
- </svg>
60
- )
61
- }
package/src/Chat/index.ts DELETED
@@ -1 +0,0 @@
1
- export { MessageTyping } from './MessageTyping'
@@ -1,28 +0,0 @@
1
-
2
- import * as React from "react"
3
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
4
- import { cn } from "../@/lib/utils"
5
- import { Check } from '../Icon'
6
-
7
- const Checkbox = React.forwardRef<
8
- React.ElementRef<typeof CheckboxPrimitive.Root>,
9
- React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
10
- >(({ className, ...props }, ref) => (
11
- <CheckboxPrimitive.Root
12
- ref={ref}
13
- className={cn(
14
- "peer h-[16px] w-[14px] shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
15
- className
16
- )}
17
- {...props}
18
- >
19
- <CheckboxPrimitive.Indicator
20
- className={cn("flex items-center justify-center text-current")}
21
- >
22
- <Check className="w-[16px] h-[16px] text-white" />
23
- </CheckboxPrimitive.Indicator>
24
- </CheckboxPrimitive.Root>
25
- ))
26
- Checkbox.displayName = CheckboxPrimitive.Root.displayName
27
-
28
- export { Checkbox }
@@ -1 +0,0 @@
1
- export { Checkbox } from './Checkbox'
package/src/Chip/Chip.tsx DELETED
@@ -1,55 +0,0 @@
1
- import React from 'react'
2
- import { cva, type VariantProps } from 'class-variance-authority'
3
- import { Slot } from '@radix-ui/react-slot'
4
- import { cn } from '../@/lib/utils'
5
-
6
- const chipVariants = cva(
7
- 'inline-flex justify-center items-center border-[2px] disabled:opacity-[.24] rounded-full ring-offset-1 font-medium whitespace-nowrap transition-colors disabled:pointer-events-none',
8
- {
9
- variants: {
10
- variant: {
11
- primary:
12
- 'text-btn-primary bg-btn-primary hover:bg-btn-primary-hover focus:bg-btn-primary-focus active:bg-btn-primary-active border-btn-primary hover:border-btn-primary-hover focus:border-btn-primary-focus active:border-btn-primary-active',
13
- secondary:
14
- 'text-btn-secondary bg-btn-secondary hover:bg-btn-secondary-hover focus:bg-btn-secondary-focus active:bg-btn-secondary-active border-btn-secondary hover:border-btn-secondary-hover focus:border-btn-secondary-focus active:border-btn-secondary-active',
15
- success:
16
- 'text-btn-success bg-btn-success hover:bg-btn-success-hover focus:bg-btn-success-focus active:bg-btn-success-active border-btn-success hover:border-btn-success-hover focus:border-btn-success-focus active:border-btn-success-active',
17
- 'primary-outline':
18
- 'text-btn-primary-outline hover:text-btn-primary-outline-hover focus:text-btn-primary-outline-focus active:text-btn-primary-outline-active bg-btn-primary-outline hover:bg-btn-primary-outline-hover focus:bg-btn-primary-outline-focus active:bg-btn-primary-outline-active border-btn-primary-outline hover:border-btn-primary-outline-hover focus:border-btn-primary-outline-focus active:border-btn-primary-outline-active',
19
- outline: 'border-[1px] text-btn-outline border-btn-outline ring-[currentColor]',
20
- ghost: 'text-btn-ghost bg-btn-ghost hover:bg-btn-ghost-hover focus:bg-btn-ghost-focus active:bg-btn-ghost-active border-transparent',
21
- },
22
- size: {
23
- lg: '',
24
- md: '',
25
- sm: 'h-[14px] px-[20px] text-[10px] leading-[1.4]',
26
- xs: '',
27
- xxs: '',
28
- },
29
- },
30
- defaultVariants: {
31
- variant: 'secondary',
32
- size: 'sm',
33
- },
34
- }
35
- )
36
-
37
- export interface IChipProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof chipVariants> {
38
- asChild?: boolean
39
- }
40
-
41
- const Chip = React.forwardRef<HTMLButtonElement, IChipProps>(({ children, variant, size, className, asChild = false, ...props }, ref) => {
42
- const Comp = asChild ? Slot : "span"
43
-
44
- return (
45
- <Comp
46
- className={cn(chipVariants({ variant, size, className }))}
47
- ref={ref}
48
- {...props}
49
- />
50
- )
51
- })
52
-
53
- Chip.displayName = 'Chip'
54
-
55
- export { Chip }
package/src/Chip/index.ts DELETED
@@ -1 +0,0 @@
1
- export { Chip } from './Chip'