brd-ui-kit 0.1.75 → 0.1.77

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 (501) hide show
  1. package/dist/brd-ui-kit.css +1 -1
  2. package/dist/calendar-PqChui7l.cjs +2 -0
  3. package/dist/{calendar-DReGV_22.cjs.map → calendar-PqChui7l.cjs.map} +1 -1
  4. package/dist/{calendar-C0DXP3T-.js → calendar-XWqEaWHP.js} +267 -272
  5. package/dist/{calendar-C0DXP3T-.js.map → calendar-XWqEaWHP.js.map} +1 -1
  6. package/dist/{calendar-locale-CP2pxhFK.cjs → calendar-locale-CosU_VZY.cjs} +2 -2
  7. package/dist/{calendar-locale-CP2pxhFK.cjs.map → calendar-locale-CosU_VZY.cjs.map} +1 -1
  8. package/dist/{calendar-locale-DJf03PI9.js → calendar-locale-DqQZymBn.js} +2 -2
  9. package/dist/{calendar-locale-DJf03PI9.js.map → calendar-locale-DqQZymBn.js.map} +1 -1
  10. package/dist/chart-9H_9wEfR.cjs +63 -0
  11. package/dist/{chart-C69jBlXa.cjs.map → chart-9H_9wEfR.cjs.map} +1 -1
  12. package/dist/{chart-CAPCe8o5.js → chart-DFbmMKiQ.js} +2956 -2951
  13. package/dist/{chart-CAPCe8o5.js.map → chart-DFbmMKiQ.js.map} +1 -1
  14. package/dist/components/app-sidebar/app-sidebar.d.ts +2 -2
  15. package/dist/components/basic-chart/basic-chart.d.ts +1 -1
  16. package/dist/components/basic-table/basic-table.d.ts +5 -5
  17. package/dist/components/data-table/data-table-actions-column.d.ts +3 -3
  18. package/dist/components/data-table/data-table-bulk-actions.d.ts +3 -3
  19. package/dist/components/data-table/data-table-column-visibility.d.ts +2 -2
  20. package/dist/components/data-table/data-table-filter.d.ts +2 -2
  21. package/dist/components/data-table/data-table-row-actions-column.d.ts +5 -5
  22. package/dist/components/data-table/use-data-table-editable-rows.d.ts +5 -5
  23. package/dist/components/files-uploader/files-uploader.d.ts +2 -2
  24. package/dist/components/icons/ArrowCounterClockwise.d.ts +1 -0
  25. package/dist/components/icons/BoundingBox.d.ts +1 -0
  26. package/dist/components/icons/Briefcase.d.ts +1 -0
  27. package/dist/components/icons/Building.d.ts +1 -0
  28. package/dist/components/icons/Buildings.d.ts +1 -0
  29. package/dist/components/icons/CaretDown.d.ts +1 -0
  30. package/dist/components/icons/CaretLeft.d.ts +1 -0
  31. package/dist/components/icons/CaretRight.d.ts +1 -0
  32. package/dist/components/icons/CaretUp.d.ts +1 -0
  33. package/dist/components/icons/CaretUpDown.d.ts +1 -0
  34. package/dist/components/icons/ChartLine.d.ts +1 -0
  35. package/dist/components/icons/Check.d.ts +1 -0
  36. package/dist/components/icons/CheckCircle.d.ts +1 -0
  37. package/dist/components/icons/Clock.d.ts +1 -0
  38. package/dist/components/icons/CreditCard.d.ts +1 -0
  39. package/dist/components/icons/DotsThree.d.ts +1 -0
  40. package/dist/components/icons/DownloadSimple.d.ts +1 -0
  41. package/dist/components/icons/EnvelopeSimple.d.ts +1 -0
  42. package/dist/components/icons/Eye.d.ts +1 -0
  43. package/dist/components/icons/EyeSlash.d.ts +1 -0
  44. package/dist/components/icons/FileText.d.ts +1 -0
  45. package/dist/components/icons/Folder.d.ts +1 -0
  46. package/dist/components/icons/Funnel.d.ts +1 -0
  47. package/dist/components/icons/Gear.d.ts +1 -0
  48. package/dist/components/icons/Info.d.ts +1 -0
  49. package/dist/components/icons/LockKey.d.ts +1 -0
  50. package/dist/components/icons/MagnifyingGlass.d.ts +1 -0
  51. package/dist/components/icons/MaxLogo.d.ts +1 -0
  52. package/dist/components/icons/Package.d.ts +1 -0
  53. package/dist/components/icons/Pencil.d.ts +1 -0
  54. package/dist/components/icons/Phone.d.ts +1 -0
  55. package/dist/components/icons/Plus.d.ts +1 -0
  56. package/dist/components/icons/PresentationChart.d.ts +1 -0
  57. package/dist/components/icons/SpinnerGap.d.ts +1 -0
  58. package/dist/components/icons/TelegramLogo.d.ts +1 -0
  59. package/dist/components/icons/Trash.d.ts +1 -0
  60. package/dist/components/icons/UserCircleGear.d.ts +1 -0
  61. package/dist/components/icons/Users.d.ts +1 -0
  62. package/dist/components/icons/UsersFour.d.ts +1 -0
  63. package/dist/components/icons/Warning.d.ts +1 -0
  64. package/dist/components/icons/WarningCircle.d.ts +1 -0
  65. package/dist/components/icons/WhatsAppLogoFilled.d.ts +1 -0
  66. package/dist/components/icons/Wrench.d.ts +1 -0
  67. package/dist/components/icons/X.d.ts +1 -0
  68. package/dist/components/icons/XCircle.d.ts +1 -0
  69. package/dist/components/icons/index.d.ts +50 -0
  70. package/dist/components/icons/stroke-icon.d.ts +19 -0
  71. package/dist/components/icons.d.ts +2 -0
  72. package/dist/components/input-field/input-field.d.ts +3 -3
  73. package/dist/components/input-password/input-password.d.ts +1 -1
  74. package/dist/components/input-phone/input-phone.d.ts +4 -4
  75. package/dist/components/popover-modal/popover-modal.d.ts +4 -4
  76. package/dist/components/select-field/select-field.d.ts +2 -2
  77. package/dist/components/ui/avatar/avatar.d.ts +7 -7
  78. package/dist/components/ui/badge/badge.d.ts +2 -2
  79. package/dist/components/ui/button/button.d.ts +3 -3
  80. package/dist/components/ui/calendar/calendar.d.ts +6 -6
  81. package/dist/components/ui/calendar/calendar.styles.d.ts +1 -1
  82. package/dist/components/ui/card/card.d.ts +13 -13
  83. package/dist/components/ui/chart/chart.d.ts +23 -21
  84. package/dist/components/ui/checkbox/checkbox.d.ts +4 -4
  85. package/dist/components/ui/combobox/combobox.d.ts +6 -6
  86. package/dist/components/ui/dialog/dialog.d.ts +11 -11
  87. package/dist/components/ui/drawer/drawer.d.ts +11 -11
  88. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +42 -42
  89. package/dist/components/ui/icon/icon-map.d.ts +68 -0
  90. package/dist/components/ui/icon/icon.d.ts +6 -6
  91. package/dist/components/ui/icon/index.d.ts +3 -1
  92. package/dist/components/ui/input/input.d.ts +2 -2
  93. package/dist/components/ui/input-group/input-group.d.ts +7 -7
  94. package/dist/components/ui/label/label.d.ts +4 -4
  95. package/dist/components/ui/pagination/pagination.d.ts +8 -8
  96. package/dist/components/ui/popover/popover.d.ts +8 -8
  97. package/dist/components/ui/progress/progress.d.ts +4 -4
  98. package/dist/components/ui/radio-group/radio-group.d.ts +7 -7
  99. package/dist/components/ui/select/select.d.ts +11 -11
  100. package/dist/components/ui/select-calendar-menu/select-calendar-menu.d.ts +4 -4
  101. package/dist/components/ui/separator/separator.d.ts +4 -4
  102. package/dist/components/ui/switch/switch.d.ts +4 -4
  103. package/dist/components/ui/table/table.d.ts +17 -17
  104. package/dist/components/ui/tabs/tabs.d.ts +8 -8
  105. package/dist/components/ui/toggle-group/toggle-group.styles.d.ts +1 -1
  106. package/dist/components/ui/tooltip/tooltip.d.ts +8 -8
  107. package/dist/components/ui/typography/typography.d.ts +174 -174
  108. package/dist/components-app-pagination-app-pagination.cjs +1 -1
  109. package/dist/components-app-pagination-app-pagination.cjs.map +1 -1
  110. package/dist/components-app-pagination-app-pagination.js +34 -32
  111. package/dist/components-app-pagination-app-pagination.js.map +1 -1
  112. package/dist/components-app-sidebar-app-sidebar.cjs +1 -1
  113. package/dist/components-app-sidebar-app-sidebar.cjs.map +1 -1
  114. package/dist/components-app-sidebar-app-sidebar.js +33 -32
  115. package/dist/components-app-sidebar-app-sidebar.js.map +1 -1
  116. package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
  117. package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
  118. package/dist/components-avatar-uploader-avatar-uploader.js +54 -36
  119. package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
  120. package/dist/components-basic-avatar-basic-avatar.cjs +2 -2
  121. package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -1
  122. package/dist/components-basic-avatar-basic-avatar.js +25 -5
  123. package/dist/components-basic-avatar-basic-avatar.js.map +1 -1
  124. package/dist/components-basic-chart-basic-chart.cjs +2 -2
  125. package/dist/components-basic-chart-basic-chart.cjs.map +1 -1
  126. package/dist/components-basic-chart-basic-chart.js +106 -108
  127. package/dist/components-basic-chart-basic-chart.js.map +1 -1
  128. package/dist/components-basic-table-basic-table.cjs +2 -2
  129. package/dist/components-basic-table-basic-table.cjs.map +1 -1
  130. package/dist/components-basic-table-basic-table.js +232 -231
  131. package/dist/components-basic-table-basic-table.js.map +1 -1
  132. package/dist/components-data-table-data-table-actions-column.cjs +1 -1
  133. package/dist/components-data-table-data-table-actions-column.cjs.map +1 -1
  134. package/dist/components-data-table-data-table-actions-column.js +1 -1
  135. package/dist/components-data-table-data-table-actions-column.js.map +1 -1
  136. package/dist/components-data-table-data-table-bulk-actions.cjs +1 -1
  137. package/dist/components-data-table-data-table-bulk-actions.cjs.map +1 -1
  138. package/dist/components-data-table-data-table-bulk-actions.js +9 -9
  139. package/dist/components-data-table-data-table-bulk-actions.js.map +1 -1
  140. package/dist/components-data-table-data-table-column-visibility.cjs +1 -1
  141. package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -1
  142. package/dist/components-data-table-data-table-column-visibility.js +11 -10
  143. package/dist/components-data-table-data-table-column-visibility.js.map +1 -1
  144. package/dist/components-data-table-data-table-filter.cjs +1 -1
  145. package/dist/components-data-table-data-table-filter.cjs.map +1 -1
  146. package/dist/components-data-table-data-table-filter.js +15 -15
  147. package/dist/components-data-table-data-table-filter.js.map +1 -1
  148. package/dist/components-data-table-data-table-row-actions-column.cjs +1 -1
  149. package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -1
  150. package/dist/components-data-table-data-table-row-actions-column.js +1 -1
  151. package/dist/components-data-table-data-table-row-actions-column.js.map +1 -1
  152. package/dist/components-data-table-use-data-table-editable-rows.cjs +1 -1
  153. package/dist/components-data-table-use-data-table-editable-rows.cjs.map +1 -1
  154. package/dist/components-data-table-use-data-table-editable-rows.js +88 -90
  155. package/dist/components-data-table-use-data-table-editable-rows.js.map +1 -1
  156. package/dist/components-files-uploader-files-uploader.cjs +3 -3
  157. package/dist/components-files-uploader-files-uploader.cjs.map +1 -1
  158. package/dist/components-files-uploader-files-uploader.js +41 -38
  159. package/dist/components-files-uploader-files-uploader.js.map +1 -1
  160. package/dist/components-icons-ArrowCounterClockwise.cjs +2 -0
  161. package/dist/components-icons-ArrowCounterClockwise.cjs.map +1 -0
  162. package/dist/components-icons-ArrowCounterClockwise.js +5 -0
  163. package/dist/components-icons-ArrowCounterClockwise.js.map +1 -0
  164. package/dist/components-icons-BoundingBox.cjs +2 -0
  165. package/dist/components-icons-BoundingBox.cjs.map +1 -0
  166. package/dist/components-icons-BoundingBox.js +5 -0
  167. package/dist/components-icons-BoundingBox.js.map +1 -0
  168. package/dist/components-icons-Briefcase.cjs +2 -0
  169. package/dist/components-icons-Briefcase.cjs.map +1 -0
  170. package/dist/components-icons-Briefcase.js +5 -0
  171. package/dist/components-icons-Briefcase.js.map +1 -0
  172. package/dist/components-icons-Building.cjs +2 -0
  173. package/dist/components-icons-Building.cjs.map +1 -0
  174. package/dist/components-icons-Building.js +5 -0
  175. package/dist/components-icons-Building.js.map +1 -0
  176. package/dist/components-icons-Buildings.cjs +2 -0
  177. package/dist/components-icons-Buildings.cjs.map +1 -0
  178. package/dist/components-icons-Buildings.js +5 -0
  179. package/dist/components-icons-Buildings.js.map +1 -0
  180. package/dist/components-icons-CaretDown.cjs +2 -0
  181. package/dist/components-icons-CaretDown.cjs.map +1 -0
  182. package/dist/components-icons-CaretDown.js +5 -0
  183. package/dist/components-icons-CaretDown.js.map +1 -0
  184. package/dist/components-icons-CaretLeft.cjs +2 -0
  185. package/dist/components-icons-CaretLeft.cjs.map +1 -0
  186. package/dist/components-icons-CaretLeft.js +5 -0
  187. package/dist/components-icons-CaretLeft.js.map +1 -0
  188. package/dist/components-icons-CaretRight.cjs +2 -0
  189. package/dist/components-icons-CaretRight.cjs.map +1 -0
  190. package/dist/components-icons-CaretRight.js +5 -0
  191. package/dist/components-icons-CaretRight.js.map +1 -0
  192. package/dist/components-icons-CaretUp.cjs +2 -0
  193. package/dist/components-icons-CaretUp.cjs.map +1 -0
  194. package/dist/components-icons-CaretUp.js +5 -0
  195. package/dist/components-icons-CaretUp.js.map +1 -0
  196. package/dist/components-icons-CaretUpDown.cjs +2 -0
  197. package/dist/components-icons-CaretUpDown.cjs.map +1 -0
  198. package/dist/components-icons-CaretUpDown.js +5 -0
  199. package/dist/components-icons-CaretUpDown.js.map +1 -0
  200. package/dist/components-icons-ChartLine.cjs +2 -0
  201. package/dist/components-icons-ChartLine.cjs.map +1 -0
  202. package/dist/components-icons-ChartLine.js +5 -0
  203. package/dist/components-icons-ChartLine.js.map +1 -0
  204. package/dist/components-icons-Check.cjs +2 -0
  205. package/dist/components-icons-Check.cjs.map +1 -0
  206. package/dist/components-icons-Check.js +5 -0
  207. package/dist/components-icons-Check.js.map +1 -0
  208. package/dist/components-icons-CheckCircle.cjs +2 -0
  209. package/dist/components-icons-CheckCircle.cjs.map +1 -0
  210. package/dist/components-icons-CheckCircle.js +5 -0
  211. package/dist/components-icons-CheckCircle.js.map +1 -0
  212. package/dist/components-icons-Clock.cjs +2 -0
  213. package/dist/components-icons-Clock.cjs.map +1 -0
  214. package/dist/components-icons-Clock.js +5 -0
  215. package/dist/components-icons-Clock.js.map +1 -0
  216. package/dist/components-icons-CreditCard.cjs +2 -0
  217. package/dist/components-icons-CreditCard.cjs.map +1 -0
  218. package/dist/components-icons-CreditCard.js +5 -0
  219. package/dist/components-icons-CreditCard.js.map +1 -0
  220. package/dist/components-icons-DotsThree.cjs +2 -0
  221. package/dist/components-icons-DotsThree.cjs.map +1 -0
  222. package/dist/components-icons-DotsThree.js +5 -0
  223. package/dist/components-icons-DotsThree.js.map +1 -0
  224. package/dist/components-icons-DownloadSimple.cjs +2 -0
  225. package/dist/components-icons-DownloadSimple.cjs.map +1 -0
  226. package/dist/components-icons-DownloadSimple.js +5 -0
  227. package/dist/components-icons-DownloadSimple.js.map +1 -0
  228. package/dist/components-icons-EnvelopeSimple.cjs +2 -0
  229. package/dist/components-icons-EnvelopeSimple.cjs.map +1 -0
  230. package/dist/components-icons-EnvelopeSimple.js +5 -0
  231. package/dist/components-icons-EnvelopeSimple.js.map +1 -0
  232. package/dist/components-icons-Eye.cjs +2 -0
  233. package/dist/components-icons-Eye.cjs.map +1 -0
  234. package/dist/components-icons-Eye.js +5 -0
  235. package/dist/components-icons-Eye.js.map +1 -0
  236. package/dist/components-icons-EyeSlash.cjs +2 -0
  237. package/dist/components-icons-EyeSlash.cjs.map +1 -0
  238. package/dist/components-icons-EyeSlash.js +5 -0
  239. package/dist/components-icons-EyeSlash.js.map +1 -0
  240. package/dist/components-icons-FileText.cjs +2 -0
  241. package/dist/components-icons-FileText.cjs.map +1 -0
  242. package/dist/components-icons-FileText.js +5 -0
  243. package/dist/components-icons-FileText.js.map +1 -0
  244. package/dist/components-icons-Folder.cjs +2 -0
  245. package/dist/components-icons-Folder.cjs.map +1 -0
  246. package/dist/components-icons-Folder.js +5 -0
  247. package/dist/components-icons-Folder.js.map +1 -0
  248. package/dist/components-icons-Funnel.cjs +2 -0
  249. package/dist/components-icons-Funnel.cjs.map +1 -0
  250. package/dist/components-icons-Funnel.js +5 -0
  251. package/dist/components-icons-Funnel.js.map +1 -0
  252. package/dist/components-icons-Gear.cjs +2 -0
  253. package/dist/components-icons-Gear.cjs.map +1 -0
  254. package/dist/components-icons-Gear.js +5 -0
  255. package/dist/components-icons-Gear.js.map +1 -0
  256. package/dist/components-icons-Info.cjs +2 -0
  257. package/dist/components-icons-Info.cjs.map +1 -0
  258. package/dist/components-icons-Info.js +5 -0
  259. package/dist/components-icons-Info.js.map +1 -0
  260. package/dist/components-icons-LockKey.cjs +2 -0
  261. package/dist/components-icons-LockKey.cjs.map +1 -0
  262. package/dist/components-icons-LockKey.js +5 -0
  263. package/dist/components-icons-LockKey.js.map +1 -0
  264. package/dist/components-icons-MagnifyingGlass.cjs +2 -0
  265. package/dist/components-icons-MagnifyingGlass.cjs.map +1 -0
  266. package/dist/components-icons-MagnifyingGlass.js +5 -0
  267. package/dist/components-icons-MagnifyingGlass.js.map +1 -0
  268. package/dist/components-icons-MaxLogo.cjs +2 -0
  269. package/dist/components-icons-MaxLogo.cjs.map +1 -0
  270. package/dist/components-icons-MaxLogo.js +5 -0
  271. package/dist/components-icons-MaxLogo.js.map +1 -0
  272. package/dist/components-icons-Package.cjs +2 -0
  273. package/dist/components-icons-Package.cjs.map +1 -0
  274. package/dist/components-icons-Package.js +5 -0
  275. package/dist/components-icons-Package.js.map +1 -0
  276. package/dist/components-icons-Pencil.cjs +2 -0
  277. package/dist/components-icons-Pencil.cjs.map +1 -0
  278. package/dist/components-icons-Pencil.js +5 -0
  279. package/dist/components-icons-Pencil.js.map +1 -0
  280. package/dist/components-icons-Phone.cjs +2 -0
  281. package/dist/components-icons-Phone.cjs.map +1 -0
  282. package/dist/components-icons-Phone.js +5 -0
  283. package/dist/components-icons-Phone.js.map +1 -0
  284. package/dist/components-icons-Plus.cjs +2 -0
  285. package/dist/components-icons-Plus.cjs.map +1 -0
  286. package/dist/components-icons-Plus.js +5 -0
  287. package/dist/components-icons-Plus.js.map +1 -0
  288. package/dist/components-icons-PresentationChart.cjs +2 -0
  289. package/dist/components-icons-PresentationChart.cjs.map +1 -0
  290. package/dist/components-icons-PresentationChart.js +5 -0
  291. package/dist/components-icons-PresentationChart.js.map +1 -0
  292. package/dist/components-icons-SpinnerGap.cjs +2 -0
  293. package/dist/components-icons-SpinnerGap.cjs.map +1 -0
  294. package/dist/components-icons-SpinnerGap.js +5 -0
  295. package/dist/components-icons-SpinnerGap.js.map +1 -0
  296. package/dist/components-icons-TelegramLogo.cjs +2 -0
  297. package/dist/components-icons-TelegramLogo.cjs.map +1 -0
  298. package/dist/components-icons-TelegramLogo.js +5 -0
  299. package/dist/components-icons-TelegramLogo.js.map +1 -0
  300. package/dist/components-icons-Trash.cjs +2 -0
  301. package/dist/components-icons-Trash.cjs.map +1 -0
  302. package/dist/components-icons-Trash.js +5 -0
  303. package/dist/components-icons-Trash.js.map +1 -0
  304. package/dist/components-icons-UserCircleGear.cjs +2 -0
  305. package/dist/components-icons-UserCircleGear.cjs.map +1 -0
  306. package/dist/components-icons-UserCircleGear.js +5 -0
  307. package/dist/components-icons-UserCircleGear.js.map +1 -0
  308. package/dist/components-icons-Users.cjs +2 -0
  309. package/dist/components-icons-Users.cjs.map +1 -0
  310. package/dist/components-icons-Users.js +5 -0
  311. package/dist/components-icons-Users.js.map +1 -0
  312. package/dist/components-icons-UsersFour.cjs +2 -0
  313. package/dist/components-icons-UsersFour.cjs.map +1 -0
  314. package/dist/components-icons-UsersFour.js +5 -0
  315. package/dist/components-icons-UsersFour.js.map +1 -0
  316. package/dist/components-icons-Warning.cjs +2 -0
  317. package/dist/components-icons-Warning.cjs.map +1 -0
  318. package/dist/components-icons-Warning.js +5 -0
  319. package/dist/components-icons-Warning.js.map +1 -0
  320. package/dist/components-icons-WarningCircle.cjs +2 -0
  321. package/dist/components-icons-WarningCircle.cjs.map +1 -0
  322. package/dist/components-icons-WarningCircle.js +5 -0
  323. package/dist/components-icons-WarningCircle.js.map +1 -0
  324. package/dist/components-icons-WhatsAppLogoFilled.cjs +2 -0
  325. package/dist/components-icons-WhatsAppLogoFilled.cjs.map +1 -0
  326. package/dist/components-icons-WhatsAppLogoFilled.js +5 -0
  327. package/dist/components-icons-WhatsAppLogoFilled.js.map +1 -0
  328. package/dist/components-icons-Wrench.cjs +2 -0
  329. package/dist/components-icons-Wrench.cjs.map +1 -0
  330. package/dist/components-icons-Wrench.js +5 -0
  331. package/dist/components-icons-Wrench.js.map +1 -0
  332. package/dist/components-icons-X.cjs +2 -0
  333. package/dist/components-icons-X.cjs.map +1 -0
  334. package/dist/components-icons-X.js +5 -0
  335. package/dist/components-icons-X.js.map +1 -0
  336. package/dist/components-icons-XCircle.cjs +2 -0
  337. package/dist/components-icons-XCircle.cjs.map +1 -0
  338. package/dist/components-icons-XCircle.js +5 -0
  339. package/dist/components-icons-XCircle.js.map +1 -0
  340. package/dist/components-icons-stroke-icon.cjs +2 -0
  341. package/dist/components-icons-stroke-icon.cjs.map +1 -0
  342. package/dist/components-icons-stroke-icon.js +39 -0
  343. package/dist/components-icons-stroke-icon.js.map +1 -0
  344. package/dist/components-icons.cjs +2 -0
  345. package/dist/components-icons.cjs.map +1 -0
  346. package/dist/components-icons.js +97 -0
  347. package/dist/components-icons.js.map +1 -0
  348. package/dist/components-input-contact-input-contact.cjs +4 -4
  349. package/dist/components-input-contact-input-contact.cjs.map +1 -1
  350. package/dist/components-input-contact-input-contact.js +104 -75
  351. package/dist/components-input-contact-input-contact.js.map +1 -1
  352. package/dist/components-input-field-input-field.cjs +1 -1
  353. package/dist/components-input-field-input-field.cjs.map +1 -1
  354. package/dist/components-input-field-input-field.js +18 -19
  355. package/dist/components-input-field-input-field.js.map +1 -1
  356. package/dist/components-input-password-input-password.cjs +1 -1
  357. package/dist/components-input-password-input-password.cjs.map +1 -1
  358. package/dist/components-input-password-input-password.js +14 -52
  359. package/dist/components-input-password-input-password.js.map +1 -1
  360. package/dist/components-input-phone-input-phone.cjs.map +1 -1
  361. package/dist/components-input-phone-input-phone.js.map +1 -1
  362. package/dist/components-popover-modal-popover-modal.cjs +1 -1
  363. package/dist/components-popover-modal-popover-modal.cjs.map +1 -1
  364. package/dist/components-popover-modal-popover-modal.js +40 -29
  365. package/dist/components-popover-modal-popover-modal.js.map +1 -1
  366. package/dist/components-select-field-select-field.cjs.map +1 -1
  367. package/dist/components-select-field-select-field.js.map +1 -1
  368. package/dist/components-ui-avatar-avatar.cjs +1 -1
  369. package/dist/components-ui-avatar-avatar.cjs.map +1 -1
  370. package/dist/components-ui-avatar-avatar.js +12 -13
  371. package/dist/components-ui-avatar-avatar.js.map +1 -1
  372. package/dist/components-ui-badge-badge.cjs +1 -1
  373. package/dist/components-ui-badge-badge.cjs.map +1 -1
  374. package/dist/components-ui-badge-badge.js +10 -11
  375. package/dist/components-ui-badge-badge.js.map +1 -1
  376. package/dist/components-ui-button-button.cjs +1 -1
  377. package/dist/components-ui-button-button.cjs.map +1 -1
  378. package/dist/components-ui-button-button.js +10 -11
  379. package/dist/components-ui-button-button.js.map +1 -1
  380. package/dist/components-ui-button-button.styles.cjs +4 -4
  381. package/dist/components-ui-button-button.styles.cjs.map +1 -1
  382. package/dist/components-ui-button-button.styles.js +4 -4
  383. package/dist/components-ui-button-button.styles.js.map +1 -1
  384. package/dist/components-ui-calendar-calendar.cjs +1 -1
  385. package/dist/components-ui-calendar-calendar.js +4 -3
  386. package/dist/components-ui-calendar-calendar.js.map +1 -1
  387. package/dist/components-ui-calendar-calendar.styles.cjs +1 -1
  388. package/dist/components-ui-calendar-calendar.styles.cjs.map +1 -1
  389. package/dist/components-ui-calendar-calendar.styles.js +1 -1
  390. package/dist/components-ui-calendar-calendar.styles.js.map +1 -1
  391. package/dist/components-ui-calendar.cjs +1 -1
  392. package/dist/components-ui-calendar.js +2 -2
  393. package/dist/components-ui-card-card.cjs +1 -1
  394. package/dist/components-ui-card-card.cjs.map +1 -1
  395. package/dist/components-ui-card-card.js +10 -11
  396. package/dist/components-ui-card-card.js.map +1 -1
  397. package/dist/components-ui-chart-chart.cjs +1 -1
  398. package/dist/components-ui-chart-chart.js +1 -1
  399. package/dist/components-ui-chart.cjs +1 -1
  400. package/dist/components-ui-chart.js +1 -1
  401. package/dist/components-ui-checkbox-checkbox.cjs +1 -1
  402. package/dist/components-ui-checkbox-checkbox.cjs.map +1 -1
  403. package/dist/components-ui-checkbox-checkbox.js +13 -13
  404. package/dist/components-ui-checkbox-checkbox.js.map +1 -1
  405. package/dist/components-ui-combobox-combobox.cjs +5 -5
  406. package/dist/components-ui-combobox-combobox.cjs.map +1 -1
  407. package/dist/components-ui-combobox-combobox.js +1478 -1479
  408. package/dist/components-ui-combobox-combobox.js.map +1 -1
  409. package/dist/components-ui-dialog-dialog.cjs +1 -1
  410. package/dist/components-ui-dialog-dialog.cjs.map +1 -1
  411. package/dist/components-ui-dialog-dialog.js +23 -23
  412. package/dist/components-ui-dialog-dialog.js.map +1 -1
  413. package/dist/components-ui-drawer-drawer.cjs +2 -2
  414. package/dist/components-ui-drawer-drawer.cjs.map +1 -1
  415. package/dist/components-ui-drawer-drawer.js +16 -19
  416. package/dist/components-ui-drawer-drawer.js.map +1 -1
  417. package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +1 -1
  418. package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -1
  419. package/dist/components-ui-dropdown-menu-dropdown-menu.js +1 -1
  420. package/dist/components-ui-dropdown-menu-dropdown-menu.js.map +1 -1
  421. package/dist/components-ui-icon-icon-map.cjs +2 -0
  422. package/dist/components-ui-icon-icon-map.cjs.map +1 -0
  423. package/dist/components-ui-icon-icon-map.js +71 -0
  424. package/dist/components-ui-icon-icon-map.js.map +1 -0
  425. package/dist/components-ui-icon-icon.cjs +1 -1
  426. package/dist/components-ui-icon-icon.cjs.map +1 -1
  427. package/dist/components-ui-icon-icon.js +29 -61735
  428. package/dist/components-ui-icon-icon.js.map +1 -1
  429. package/dist/components-ui-icon.cjs +1 -1
  430. package/dist/components-ui-icon.js +3 -1
  431. package/dist/components-ui-icon.js.map +1 -1
  432. package/dist/components-ui-input-group-input-group.cjs +1 -1
  433. package/dist/components-ui-input-group-input-group.cjs.map +1 -1
  434. package/dist/components-ui-input-group-input-group.js +12 -13
  435. package/dist/components-ui-input-group-input-group.js.map +1 -1
  436. package/dist/components-ui-input-input.cjs +1 -1
  437. package/dist/components-ui-input-input.cjs.map +1 -1
  438. package/dist/components-ui-input-input.js +2 -3
  439. package/dist/components-ui-input-input.js.map +1 -1
  440. package/dist/components-ui-label-label.cjs +1 -1
  441. package/dist/components-ui-label-label.cjs.map +1 -1
  442. package/dist/components-ui-label-label.js +1 -1
  443. package/dist/components-ui-label-label.js.map +1 -1
  444. package/dist/components-ui-pagination-pagination.cjs +2 -2
  445. package/dist/components-ui-pagination-pagination.cjs.map +1 -1
  446. package/dist/components-ui-pagination-pagination.js +48 -46
  447. package/dist/components-ui-pagination-pagination.js.map +1 -1
  448. package/dist/components-ui-popover-popover.cjs +1 -1
  449. package/dist/components-ui-popover-popover.cjs.map +1 -1
  450. package/dist/components-ui-popover-popover.js +14 -19
  451. package/dist/components-ui-popover-popover.js.map +1 -1
  452. package/dist/components-ui-progress-progress.cjs +1 -1
  453. package/dist/components-ui-progress-progress.cjs.map +1 -1
  454. package/dist/components-ui-progress-progress.js +1 -1
  455. package/dist/components-ui-progress-progress.js.map +1 -1
  456. package/dist/components-ui-radio-group-radio-group.cjs +1 -1
  457. package/dist/components-ui-radio-group-radio-group.cjs.map +1 -1
  458. package/dist/components-ui-radio-group-radio-group.js +0 -1
  459. package/dist/components-ui-radio-group-radio-group.js.map +1 -1
  460. package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +1 -1
  461. package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -1
  462. package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +54 -47
  463. package/dist/components-ui-select-calendar-menu-select-calendar-menu.js.map +1 -1
  464. package/dist/components-ui-select-select.cjs +1 -1
  465. package/dist/components-ui-select-select.cjs.map +1 -1
  466. package/dist/components-ui-select-select.js +36 -36
  467. package/dist/components-ui-select-select.js.map +1 -1
  468. package/dist/components-ui-separator-separator.cjs +1 -1
  469. package/dist/components-ui-separator-separator.cjs.map +1 -1
  470. package/dist/components-ui-separator-separator.js +11 -12
  471. package/dist/components-ui-separator-separator.js.map +1 -1
  472. package/dist/components-ui-sonner-sonner.cjs +1 -1
  473. package/dist/components-ui-sonner-sonner.cjs.map +1 -1
  474. package/dist/components-ui-sonner-sonner.js +38 -32
  475. package/dist/components-ui-sonner-sonner.js.map +1 -1
  476. package/dist/components-ui-switch-switch.cjs +1 -1
  477. package/dist/components-ui-switch-switch.cjs.map +1 -1
  478. package/dist/components-ui-switch-switch.js +6 -7
  479. package/dist/components-ui-switch-switch.js.map +1 -1
  480. package/dist/components-ui-table-table.cjs +1 -1
  481. package/dist/components-ui-table-table.cjs.map +1 -1
  482. package/dist/components-ui-table-table.js +0 -1
  483. package/dist/components-ui-table-table.js.map +1 -1
  484. package/dist/components-ui-tabs-tabs.cjs +2 -2
  485. package/dist/components-ui-tabs-tabs.cjs.map +1 -1
  486. package/dist/components-ui-tabs-tabs.js +16 -16
  487. package/dist/components-ui-tabs-tabs.js.map +1 -1
  488. package/dist/components-ui-tooltip-tooltip.cjs +1 -1
  489. package/dist/components-ui-tooltip-tooltip.cjs.map +1 -1
  490. package/dist/components-ui-tooltip-tooltip.js +9 -10
  491. package/dist/components-ui-tooltip-tooltip.js.map +1 -1
  492. package/dist/components-ui-typography-typography.cjs +1 -1
  493. package/dist/components-ui-typography-typography.cjs.map +1 -1
  494. package/dist/components-ui-typography-typography.js +7 -7
  495. package/dist/components-ui-typography-typography.js.map +1 -1
  496. package/dist/index.cjs +1 -1
  497. package/dist/index.js +234 -233
  498. package/dist/index.js.map +1 -1
  499. package/package.json +10 -1
  500. package/dist/calendar-DReGV_22.cjs +0 -2
  501. package/dist/chart-C69jBlXa.cjs +0 -63
@@ -1,11 +1,14 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
2
  import { cn as p } from "./lib-utils.js";
3
3
  import { useState as U } from "react";
4
- import { u as G } from "./index-CVlBIwtP.js";
5
- import { Icon as w } from "./components-ui-icon-icon.js";
4
+ import { u as V } from "./index-CVlBIwtP.js";
5
+ import { Plus as H } from "phosphor-strokes-icons/icons/Plus";
6
+ import { SpinnerGap as J } from "phosphor-strokes-icons/icons/SpinnerGap";
7
+ import { StrokeIcon as w } from "./components-icons-stroke-icon.js";
8
+ import { X as Q } from "phosphor-strokes-icons/icons/X";
6
9
  import { Typography as _ } from "./components-ui-typography-typography.js";
7
10
  import "./components-ui-typography-typography.styles.js";
8
- const V = ["B", "KB", "MB", "GB", "TB"], x = 1024, H = 5 * x * x, J = 5, Q = ["all"], W = 800, Y = {
11
+ const W = ["B", "KB", "MB", "GB", "TB"], x = 1024, Y = 5 * x * x, ee = 5, te = ["all"], re = 800, oe = {
9
12
  image: { "image/*": [".jpg", ".jpeg", ".png", ".webp"] },
10
13
  pdf: { "application/pdf": [".pdf"] },
11
14
  doc: {
@@ -18,70 +21,70 @@ const V = ["B", "KB", "MB", "GB", "TB"], x = 1024, H = 5 * x * x, J = 5, Q = ["a
18
21
  },
19
22
  text: { "text/plain": [".txt"] },
20
23
  all: {}
21
- }, ee = (e) => {
24
+ }, se = (e) => {
22
25
  if (!e) return "0 B";
23
26
  const t = Math.floor(Math.log(e) / Math.log(x));
24
- return `${(e / Math.pow(x, t)).toFixed(2)} ${V[t]}`;
25
- }, F = (e) => `${e.name}:${e.size}`, te = (e) => e.reduce((t, o) => ({ ...t, ...Y[o] }), {}), re = (e, t) => {
27
+ return `${(e / Math.pow(x, t)).toFixed(2)} ${W[t]}`;
28
+ }, F = (e) => `${e.name}:${e.size}`, le = (e) => e.reduce((t, o) => ({ ...t, ...oe[o] }), {}), ne = (e, t) => {
26
29
  const o = e.filter((s) => s.status === "uploaded"), l = e.filter((s) => s.status === "error"), a = Math.max(0, t - o.length);
27
30
  return [...o, ...l.slice(0, a)];
28
31
  }, E = (e, t, o) => ({
29
32
  url: URL.createObjectURL(e),
30
33
  name: e.name,
31
- size: ee(e.size),
34
+ size: se(e.size),
32
35
  addedAt: (/* @__PURE__ */ new Date()).toISOString(),
33
36
  status: t,
34
37
  error: o
35
- }), oe = (e) => e === "file-too-large" ? "Файл слишком большой" : "Неподдерживаемый формат", se = (e, t, o) => {
38
+ }), ce = (e) => e === "file-too-large" ? "Файл слишком большой" : "Неподдерживаемый формат", ie = (e, t, o) => {
36
39
  const l = new Set(o.map(F)), a = new Set(t.map(F));
37
40
  return e.filter((s) => {
38
41
  if (s.status !== "error") return !0;
39
- const g = F(s);
40
- return !l.has(g) && !a.has(g);
42
+ const f = F(s);
43
+ return !l.has(f) && !a.has(f);
41
44
  });
42
- }, le = (e) => {
45
+ }, ae = (e) => {
43
46
  const t = e.name.split(".").pop()?.toLowerCase();
44
47
  return t ? ["jpg", "jpeg", "png", "webp"].includes(t) ? "image" : t === "pdf" ? "pdf" : ["doc", "docx"].includes(t) ? "doc" : ["xls", "xlsx"].includes(t) ? "excel" : t === "txt" ? "text" : "other" : "other";
45
- }, me = ({
48
+ }, ve = ({
46
49
  value: e = [],
47
50
  onChange: t,
48
51
  multiple: o = !1,
49
- maxFiles: l = J,
52
+ maxFiles: l = ee,
50
53
  disabled: a = !1,
51
54
  className: s,
52
- maxSize: g = H,
55
+ maxSize: f = Y,
53
56
  variant: b = "grid",
54
- accepts: L = Q,
57
+ accepts: L = te,
55
58
  icon: $,
56
59
  title: A,
57
60
  text: I,
58
61
  showFiles: N = !0,
59
62
  isErrorText: D = !1
60
63
  }) => {
61
- const [y, M] = U(!1), [T, j] = U(null), f = e, v = f.filter((r) => r.status === "uploaded").length, B = (r, c) => {
62
- j(null);
64
+ const [y, S] = U(!1), [M, T] = U(null), g = e, v = g.filter((r) => r.status === "uploaded").length, B = (r, c) => {
65
+ T(null);
63
66
  const u = Math.max(0, l - v), h = r.slice(0, u), q = r.slice(u), d = [
64
67
  ...c.map(
65
- (i) => E(i.file, "error", oe(i.errors[0]?.code))
68
+ (i) => E(i.file, "error", ce(i.errors[0]?.code))
66
69
  ),
67
70
  ...q.map(
68
71
  (i) => E(i, "error", `Максимальное количество файлов: ${l}`)
69
72
  )
70
73
  ];
71
- d.length && j(d[0].error || "Ошибка загрузки"), !(!h.length && !d.length) && (M(!0), setTimeout(() => {
72
- const i = h.map((X) => E(X, "uploaded")), K = se(f, i, d), S = o ? re([...K, ...i, ...d], l) : [...i, ...d].slice(0, 1);
73
- t?.(S.length ? S : []), M(!1);
74
- }, W));
75
- }, { getRootProps: C, getInputProps: z, isDragActive: P } = G({
74
+ d.length && T(d[0].error || "Ошибка загрузки"), !(!h.length && !d.length) && (S(!0), setTimeout(() => {
75
+ const i = h.map((K) => E(K, "uploaded")), G = ie(g, i, d), j = o ? ne([...G, ...i, ...d], l) : [...i, ...d].slice(0, 1);
76
+ t?.(j.length ? j : []), S(!1);
77
+ }, re));
78
+ }, { getRootProps: C, getInputProps: P, isDragActive: z } = V({
76
79
  onDrop: B,
77
- accept: te(L),
78
- maxSize: g,
80
+ accept: le(L),
81
+ maxSize: f,
79
82
  multiple: o && l > 1,
80
83
  disabled: a || y
81
84
  }), R = (r) => () => {
82
- const c = f.filter((u, h) => h !== r);
85
+ const c = g.filter((u, h) => h !== r);
83
86
  t?.(c.length ? c : []);
84
- }, O = f.map((r, c) => ({ file: r, index: c })).filter(({ file: r }) => r.status === "uploaded"), Z = v >= l, k = {
87
+ }, k = g.map((r, c) => ({ file: r, index: c })).filter(({ file: r }) => r.status === "uploaded"), O = v >= l, X = $ ?? H, Z = {
85
88
  grid: "grid-cols-2 sm:grid-cols-3 md:grid-cols-4",
86
89
  list: "grid-cols-1",
87
90
  compact: "grid-cols-2 sm:grid-cols-3"
@@ -92,11 +95,11 @@ const V = ["B", "KB", "MB", "GB", "TB"], x = 1024, H = 5 * x * x, J = 5, Q = ["a
92
95
  {
93
96
  className: p(
94
97
  "grid h-full w-full gap-4",
95
- b === "list" ? "grid-cols-1" : k[b]
98
+ b === "list" ? "grid-cols-1" : Z[b]
96
99
  ),
97
100
  children: [
98
- N && O.map(({ file: r, index: c }) => {
99
- const u = le(r);
101
+ N && k.map(({ file: r, index: c }) => {
102
+ const u = ae(r);
100
103
  return /* @__PURE__ */ m(
101
104
  "div",
102
105
  {
@@ -127,7 +130,7 @@ const V = ["B", "KB", "MB", "GB", "TB"], x = 1024, H = 5 * x * x, J = 5, Q = ["a
127
130
  w,
128
131
  {
129
132
  onClick: R(c),
130
- type: "x"
133
+ icon: Q
131
134
  }
132
135
  )
133
136
  }
@@ -137,7 +140,7 @@ const V = ["B", "KB", "MB", "GB", "TB"], x = 1024, H = 5 * x * x, J = 5, Q = ["a
137
140
  `${r.url}-${r.addedAt}-${c}`
138
141
  );
139
142
  }),
140
- !Z && /* @__PURE__ */ m(
143
+ !O && /* @__PURE__ */ m(
141
144
  "div",
142
145
  {
143
146
  ...C(),
@@ -145,24 +148,24 @@ const V = ["B", "KB", "MB", "GB", "TB"], x = 1024, H = 5 * x * x, J = 5, Q = ["a
145
148
  `relative flex cursor-pointer flex-col items-center justify-center
146
149
  rounded-lg border-2 border-dashed border-gray-300 bg-gray-50
147
150
  transition-colors hover:bg-gray-100`,
148
- P && "border-primary bg-primary/5",
151
+ z && "border-primary bg-primary/5",
149
152
  (a || y) && "cursor-not-allowed opacity-50",
150
153
  b === "list" ? "min-h-37.5" : "aspect-square",
151
154
  s?.blockAdd
152
155
  ),
153
156
  children: [
154
- /* @__PURE__ */ n("input", { ...z() }),
157
+ /* @__PURE__ */ n("input", { ...P() }),
155
158
  y ? /* @__PURE__ */ n(
156
159
  w,
157
160
  {
158
- type: "spinner-gap",
161
+ icon: J,
159
162
  className: "text-sub-label-text h-8 w-8 animate-spin"
160
163
  }
161
164
  ) : /* @__PURE__ */ m("div", { className: "flex flex-col items-center space-y-2 p-4 text-center", children: [
162
165
  /* @__PURE__ */ n(
163
166
  w,
164
167
  {
165
- type: $?.type ?? "plus",
168
+ icon: X,
166
169
  className: p("text-sub-label-text h-8 w-8", s?.icon)
167
170
  }
168
171
  ),
@@ -175,10 +178,10 @@ const V = ["B", "KB", "MB", "GB", "TB"], x = 1024, H = 5 * x * x, J = 5, Q = ["a
175
178
  ]
176
179
  }
177
180
  ),
178
- !D && T && /* @__PURE__ */ n("div", { className: "rounded-lg bg-red-50 p-3 text-sm text-red-600", children: T })
181
+ !D && M && /* @__PURE__ */ n("div", { className: "rounded-lg bg-red-50 p-3 text-sm text-red-600", children: M })
179
182
  ] });
180
183
  };
181
184
  export {
182
- me as FilesUploader
185
+ ve as FilesUploader
183
186
  };
184
187
  //# sourceMappingURL=components-files-uploader-files-uploader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-files-uploader-files-uploader.js","sources":["../src/components/files-uploader/files-uploader.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport { useState } from \"react\";\nimport { type FileRejection, useDropzone } from \"react-dropzone\";\nimport { Icon, type IconProps } from \"../ui/icon\";\nimport { Typography } from \"../ui/typography\";\n\ntype Variant = \"grid\" | \"list\" | \"compact\";\ntype AcceptType = \"image\" | \"pdf\" | \"doc\" | \"excel\" | \"text\" | \"all\";\n\nexport type UploadedFileData = {\n url: string;\n name: string;\n size: string;\n addedAt: string;\n status: \"uploaded\" | \"error\";\n error?: string;\n};\n\nexport type FilesUploaderValue = UploadedFileData[] | [];\n\nexport type PropsFilesUploader = {\n value?: FilesUploaderValue;\n onChange?: (value: FilesUploaderValue) => void;\n multiple?: boolean;\n maxFiles?: number;\n disabled?: boolean;\n isErrorText?: boolean;\n className?: {\n container?: string;\n blockAdd?: string;\n title?: string;\n text?: string;\n icon?: string;\n };\n maxSize?: number;\n variant?: Variant;\n accepts?: AcceptType[];\n icon?: IconProps;\n title?: string;\n text?: string;\n showFiles?: boolean;\n};\n\nconst FILE_SIZE_UNITS = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\"];\nconst FILE_SIZE_KB = 1024;\n\nconst DEFAULT_MAX_SIZE = 5 * FILE_SIZE_KB * FILE_SIZE_KB;\nconst DEFAULT_MAX_FILES = 5;\nconst DEFAULT_ACCEPT: AcceptType[] = [\"all\"];\nconst DEFAULT_TIMEOUT = 800;\n\nconst ACCEPT_MAP: Record<AcceptType, Record<string, string[]>> = {\n image: { \"image/*\": [\".jpg\", \".jpeg\", \".png\", \".webp\"] },\n pdf: { \"application/pdf\": [\".pdf\"] },\n doc: {\n \"application/msword\": [\".doc\"],\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\": [\".docx\"],\n },\n excel: {\n \"application/vnd.ms-excel\": [\".xls\"],\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\": [\".xlsx\"],\n },\n text: { \"text/plain\": [\".txt\"] },\n all: {},\n};\n\nconst formatFileSize = (bytes: number) => {\n if (!bytes) return \"0 B\";\n const i = Math.floor(Math.log(bytes) / Math.log(FILE_SIZE_KB));\n return `${(bytes / Math.pow(FILE_SIZE_KB, i)).toFixed(2)} ${FILE_SIZE_UNITS[i]}`;\n};\n\nconst getFileIdentity = (file: Pick<UploadedFileData, \"name\" | \"size\">) =>\n `${file.name}:${file.size}`;\n\nconst fileAcceptMap = (accepts: AcceptType[]) =>\n accepts.reduce((acc, t) => ({ ...acc, ...ACCEPT_MAP[t] }), {});\n\nconst limitFilesForValue = (\n nextFiles: UploadedFileData[],\n maxFiles: number,\n): UploadedFileData[] => {\n const uploadedFiles = nextFiles.filter((file) => file.status === \"uploaded\");\n const errorFiles = nextFiles.filter((file) => file.status === \"error\");\n const availableErrorSlots = Math.max(0, maxFiles - uploadedFiles.length);\n\n return [...uploadedFiles, ...errorFiles.slice(0, availableErrorSlots)];\n};\n\nconst mapFile = (\n file: File,\n status: UploadedFileData[\"status\"],\n error?: string,\n): UploadedFileData => ({\n url: URL.createObjectURL(file),\n name: file.name,\n size: formatFileSize(file.size),\n addedAt: new Date().toISOString(),\n status,\n error,\n});\n\nconst getRejectedError = (code?: string) =>\n code === \"file-too-large\" ? \"Файл слишком большой\" : \"Неподдерживаемый формат\";\n\nconst replaceDuplicateErrors = (\n currentFiles: UploadedFileData[],\n newFiles: UploadedFileData[],\n rejectedFiles: UploadedFileData[],\n) => {\n const rejectedFileIds = new Set(rejectedFiles.map(getFileIdentity));\n const acceptedFileIds = new Set(newFiles.map(getFileIdentity));\n\n return currentFiles.filter((existingFile) => {\n if (existingFile.status !== \"error\") return true;\n const id = getFileIdentity(existingFile);\n return !rejectedFileIds.has(id) && !acceptedFileIds.has(id);\n });\n};\n\nconst getFileType = (file: UploadedFileData) => {\n const ext = file.name.split(\".\").pop()?.toLowerCase();\n\n if (!ext) return \"other\";\n if ([\"jpg\", \"jpeg\", \"png\", \"webp\"].includes(ext)) return \"image\";\n if (ext === \"pdf\") return \"pdf\";\n if ([\"doc\", \"docx\"].includes(ext)) return \"doc\";\n if ([\"xls\", \"xlsx\"].includes(ext)) return \"excel\";\n if (ext === \"txt\") return \"text\";\n\n return \"other\";\n};\n\nexport const FilesUploader = ({\n value = [],\n onChange,\n multiple = false,\n maxFiles = DEFAULT_MAX_FILES,\n disabled = false,\n className,\n maxSize = DEFAULT_MAX_SIZE,\n variant = \"grid\",\n accepts = DEFAULT_ACCEPT,\n icon,\n title,\n text,\n showFiles = true,\n isErrorText = false,\n}: PropsFilesUploader) => {\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const files = value;\n const uploadedCount = files.filter((file) => file.status === \"uploaded\").length;\n\n const onDrop = (acceptedFiles: File[], rejectedFiles: FileRejection[]) => {\n setError(null);\n const remainingUploadSlots = Math.max(0, maxFiles - uploadedCount);\n const acceptedFilesToUpload = acceptedFiles.slice(0, remainingUploadSlots);\n const overflowAcceptedFiles = acceptedFiles.slice(remainingUploadSlots);\n\n const rejectedMapped = [\n ...rejectedFiles.map((rejection) =>\n mapFile(rejection.file, \"error\", getRejectedError(rejection.errors[0]?.code)),\n ),\n ...overflowAcceptedFiles.map((file) =>\n mapFile(file, \"error\", `Максимальное количество файлов: ${maxFiles}`),\n ),\n ];\n\n if (rejectedMapped.length) {\n setError(rejectedMapped[0].error || \"Ошибка загрузки\");\n }\n\n if (!acceptedFilesToUpload.length && !rejectedMapped.length) return;\n\n setLoading(true);\n\n setTimeout(() => {\n const newFiles = acceptedFilesToUpload.map((file) => mapFile(file, \"uploaded\"));\n const nextBaseFiles = replaceDuplicateErrors(files, newFiles, rejectedMapped);\n const nextFiles = multiple\n ? limitFilesForValue([...nextBaseFiles, ...newFiles, ...rejectedMapped], maxFiles)\n : [...newFiles, ...rejectedMapped].slice(0, 1);\n\n onChange?.(nextFiles.length ? nextFiles : []);\n setLoading(false);\n }, DEFAULT_TIMEOUT);\n };\n\n const { getRootProps, getInputProps, isDragActive } = useDropzone({\n onDrop,\n accept: fileAcceptMap(accepts),\n maxSize,\n multiple: multiple && maxFiles > 1,\n disabled: disabled || loading,\n });\n\n const removeFile = (index: number) => () => {\n const updated = files.filter((_, i) => i !== index);\n onChange?.(updated.length ? updated : []);\n };\n\n const uploadedFiles = files\n .map((file, index) => ({ file, index }))\n .filter(({ file }) => file.status === \"uploaded\");\n\n const isMaxFilesReached = uploadedCount >= maxFiles;\n\n const gridClasses = {\n grid: \"grid-cols-2 sm:grid-cols-3 md:grid-cols-4\",\n list: \"grid-cols-1\",\n compact: \"grid-cols-2 sm:grid-cols-3\",\n };\n\n return (\n <div className={cn(\"w-full space-y-4\", className?.container)}>\n <div\n className={cn(\n \"grid h-full w-full gap-4\",\n variant === \"list\" ? \"grid-cols-1\" : gridClasses[variant],\n )}\n >\n {showFiles &&\n uploadedFiles.map(({ file, index }) => {\n const type = getFileType(file);\n\n return (\n <div\n key={`${file.url}-${file.addedAt}-${index}`}\n className=\"group bg-primary-bg relative aspect-square h-full w-full\n overflow-hidden rounded-lg\"\n >\n {type === \"image\" ? (\n <img\n src={file.url}\n className=\"h-full w-full object-cover\"\n />\n ) : (\n <div\n className=\"flex h-full w-full items-center justify-center bg-gray-100\n text-sm font-semibold\"\n >\n {file.name.split(\".\").pop()?.toUpperCase()}\n </div>\n )}\n\n <div\n className=\"bg-primary-inverse-bg/50 text-primary-bg absolute inset-0\n flex items-center justify-center opacity-0 transition-opacity\n hover:opacity-100\"\n >\n <Icon\n onClick={removeFile(index)}\n type={\"x\"}\n />\n </div>\n </div>\n );\n })}\n\n {!isMaxFilesReached && (\n <div\n {...getRootProps()}\n className={cn(\n `relative flex cursor-pointer flex-col items-center justify-center\n rounded-lg border-2 border-dashed border-gray-300 bg-gray-50\n transition-colors hover:bg-gray-100`,\n isDragActive && \"border-primary bg-primary/5\",\n (disabled || loading) && \"cursor-not-allowed opacity-50\",\n variant === \"list\" ? \"min-h-37.5\" : \"aspect-square\",\n className?.blockAdd,\n )}\n >\n <input {...getInputProps()} />\n\n {loading ? (\n <Icon\n type=\"spinner-gap\"\n className=\"text-sub-label-text h-8 w-8 animate-spin\"\n />\n ) : (\n <div className=\"flex flex-col items-center space-y-2 p-4 text-center\">\n <Icon\n type={icon?.type ?? \"plus\"}\n className={cn(\"text-sub-label-text h-8 w-8\", className?.icon)}\n />\n\n <Typography className={cn(\"text-sub-label-text\", className?.title)}>\n {multiple\n ? `${title || \"Добавить\"} (${uploadedCount}/${maxFiles})`\n : title || \"Добавить\"}\n </Typography>\n\n {text && (\n <Typography className={cn(\"text-sub-label-text\", className?.text)}>\n {text}\n </Typography>\n )}\n </div>\n )}\n </div>\n )}\n </div>\n\n {!isErrorText && error && (\n <div className=\"rounded-lg bg-red-50 p-3 text-sm text-red-600\">{error}</div>\n )}\n </div>\n );\n};\n"],"names":["FILE_SIZE_UNITS","FILE_SIZE_KB","DEFAULT_MAX_SIZE","DEFAULT_MAX_FILES","DEFAULT_ACCEPT","DEFAULT_TIMEOUT","ACCEPT_MAP","formatFileSize","bytes","i","getFileIdentity","file","fileAcceptMap","accepts","acc","t","limitFilesForValue","nextFiles","maxFiles","uploadedFiles","errorFiles","availableErrorSlots","mapFile","status","error","getRejectedError","code","replaceDuplicateErrors","currentFiles","newFiles","rejectedFiles","rejectedFileIds","acceptedFileIds","existingFile","id","getFileType","ext","FilesUploader","value","onChange","multiple","disabled","className","maxSize","variant","icon","title","text","showFiles","isErrorText","loading","setLoading","useState","setError","files","uploadedCount","onDrop","acceptedFiles","remainingUploadSlots","acceptedFilesToUpload","overflowAcceptedFiles","rejectedMapped","rejection","nextBaseFiles","getRootProps","getInputProps","isDragActive","useDropzone","removeFile","index","updated","_","isMaxFilesReached","gridClasses","cn","jsxs","type","jsx","Icon","Typography"],"mappings":";;;;;;;AA2CA,MAAMA,IAAkB,CAAC,KAAK,MAAM,MAAM,MAAM,IAAI,GAC9CC,IAAe,MAEfC,IAAmB,IAAID,IAAeA,GACtCE,IAAoB,GACpBC,IAA+B,CAAC,KAAK,GACrCC,IAAkB,KAElBC,IAA2D;AAAA,EAC/D,OAAO,EAAE,WAAW,CAAC,QAAQ,SAAS,QAAQ,OAAO,EAAA;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L,EAAG,uBAAuBhC,GAAW,IAAI,GAC7D,UAAAK,EAAA,CACH;AAAA,gBAAA,EAAA,CAEJ;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,IAIH,CAACE,KAAezB,uBACd,OAAA,EAAI,WAAU,iDAAiD,UAAAA,EAAA,CAAM;AAAA,EAAA,GAE1E;AAEJ;"}
1
+ {"version":3,"file":"components-files-uploader-files-uploader.js","sources":["../src/components/files-uploader/files-uploader.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport { useState } from \"react\";\nimport { type FileRejection, useDropzone } from \"react-dropzone\";\nimport { Plus } from \"@/components/icons/Plus\";\nimport { SpinnerGap } from \"@/components/icons/SpinnerGap\";\nimport { StrokeIcon, type StrokeIconComponent } from \"@/components/icons/stroke-icon\";\nimport { X } from \"@/components/icons/X\";\nimport { Typography } from \"../ui/typography\";\n\ntype Variant = \"grid\" | \"list\" | \"compact\";\ntype AcceptType = \"image\" | \"pdf\" | \"doc\" | \"excel\" | \"text\" | \"all\";\n\nexport type UploadedFileData = {\n url: string;\n name: string;\n size: string;\n addedAt: string;\n status: \"uploaded\" | \"error\";\n error?: string;\n};\n\nexport type FilesUploaderValue = UploadedFileData[] | [];\n\nexport type PropsFilesUploader = {\n value?: FilesUploaderValue;\n onChange?: (value: FilesUploaderValue) => void;\n multiple?: boolean;\n maxFiles?: number;\n disabled?: boolean;\n isErrorText?: boolean;\n className?: {\n container?: string;\n blockAdd?: string;\n title?: string;\n text?: string;\n icon?: string;\n };\n maxSize?: number;\n variant?: Variant;\n accepts?: AcceptType[];\n icon?: StrokeIconComponent;\n title?: string;\n text?: string;\n showFiles?: boolean;\n};\n\nconst FILE_SIZE_UNITS = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\"];\nconst FILE_SIZE_KB = 1024;\n\nconst DEFAULT_MAX_SIZE = 5 * FILE_SIZE_KB * FILE_SIZE_KB;\nconst DEFAULT_MAX_FILES = 5;\nconst DEFAULT_ACCEPT: AcceptType[] = [\"all\"];\nconst DEFAULT_TIMEOUT = 800;\n\nconst ACCEPT_MAP: Record<AcceptType, Record<string, string[]>> = {\n image: { \"image/*\": [\".jpg\", \".jpeg\", \".png\", \".webp\"] },\n pdf: { \"application/pdf\": [\".pdf\"] },\n doc: {\n \"application/msword\": [\".doc\"],\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\": [\".docx\"],\n },\n excel: {\n \"application/vnd.ms-excel\": [\".xls\"],\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\": [\".xlsx\"],\n },\n text: { \"text/plain\": [\".txt\"] },\n all: {},\n};\n\nconst formatFileSize = (bytes: number) => {\n if (!bytes) return \"0 B\";\n const i = Math.floor(Math.log(bytes) / Math.log(FILE_SIZE_KB));\n return `${(bytes / Math.pow(FILE_SIZE_KB, i)).toFixed(2)} ${FILE_SIZE_UNITS[i]}`;\n};\n\nconst getFileIdentity = (file: Pick<UploadedFileData, \"name\" | \"size\">) =>\n `${file.name}:${file.size}`;\n\nconst fileAcceptMap = (accepts: AcceptType[]) =>\n accepts.reduce((acc, t) => ({ ...acc, ...ACCEPT_MAP[t] }), {});\n\nconst limitFilesForValue = (\n nextFiles: UploadedFileData[],\n maxFiles: number,\n): UploadedFileData[] => {\n const uploadedFiles = nextFiles.filter((file) => file.status === \"uploaded\");\n const errorFiles = nextFiles.filter((file) => file.status === \"error\");\n const availableErrorSlots = Math.max(0, maxFiles - uploadedFiles.length);\n\n return [...uploadedFiles, ...errorFiles.slice(0, availableErrorSlots)];\n};\n\nconst mapFile = (\n file: File,\n status: UploadedFileData[\"status\"],\n error?: string,\n): UploadedFileData => ({\n url: URL.createObjectURL(file),\n name: file.name,\n size: formatFileSize(file.size),\n addedAt: new Date().toISOString(),\n status,\n error,\n});\n\nconst getRejectedError = (code?: string) =>\n code === \"file-too-large\" ? \"Файл слишком большой\" : \"Неподдерживаемый формат\";\n\nconst replaceDuplicateErrors = (\n currentFiles: UploadedFileData[],\n newFiles: UploadedFileData[],\n rejectedFiles: UploadedFileData[],\n) => {\n const rejectedFileIds = new Set(rejectedFiles.map(getFileIdentity));\n const acceptedFileIds = new Set(newFiles.map(getFileIdentity));\n\n return currentFiles.filter((existingFile) => {\n if (existingFile.status !== \"error\") return true;\n const id = getFileIdentity(existingFile);\n return !rejectedFileIds.has(id) && !acceptedFileIds.has(id);\n });\n};\n\nconst getFileType = (file: UploadedFileData) => {\n const ext = file.name.split(\".\").pop()?.toLowerCase();\n\n if (!ext) return \"other\";\n if ([\"jpg\", \"jpeg\", \"png\", \"webp\"].includes(ext)) return \"image\";\n if (ext === \"pdf\") return \"pdf\";\n if ([\"doc\", \"docx\"].includes(ext)) return \"doc\";\n if ([\"xls\", \"xlsx\"].includes(ext)) return \"excel\";\n if (ext === \"txt\") return \"text\";\n\n return \"other\";\n};\n\nexport const FilesUploader = ({\n value = [],\n onChange,\n multiple = false,\n maxFiles = DEFAULT_MAX_FILES,\n disabled = false,\n className,\n maxSize = DEFAULT_MAX_SIZE,\n variant = \"grid\",\n accepts = DEFAULT_ACCEPT,\n icon,\n title,\n text,\n showFiles = true,\n isErrorText = false,\n}: PropsFilesUploader) => {\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const files = value;\n const uploadedCount = files.filter((file) => file.status === \"uploaded\").length;\n\n const onDrop = (acceptedFiles: File[], rejectedFiles: FileRejection[]) => {\n setError(null);\n const remainingUploadSlots = Math.max(0, maxFiles - uploadedCount);\n const acceptedFilesToUpload = acceptedFiles.slice(0, remainingUploadSlots);\n const overflowAcceptedFiles = acceptedFiles.slice(remainingUploadSlots);\n\n const rejectedMapped = [\n ...rejectedFiles.map((rejection) =>\n mapFile(rejection.file, \"error\", getRejectedError(rejection.errors[0]?.code)),\n ),\n ...overflowAcceptedFiles.map((file) =>\n mapFile(file, \"error\", `Максимальное количество файлов: ${maxFiles}`),\n ),\n ];\n\n if (rejectedMapped.length) {\n setError(rejectedMapped[0].error || \"Ошибка загрузки\");\n }\n\n if (!acceptedFilesToUpload.length && !rejectedMapped.length) return;\n\n setLoading(true);\n\n setTimeout(() => {\n const newFiles = acceptedFilesToUpload.map((file) => mapFile(file, \"uploaded\"));\n const nextBaseFiles = replaceDuplicateErrors(files, newFiles, rejectedMapped);\n const nextFiles = multiple\n ? limitFilesForValue([...nextBaseFiles, ...newFiles, ...rejectedMapped], maxFiles)\n : [...newFiles, ...rejectedMapped].slice(0, 1);\n\n onChange?.(nextFiles.length ? nextFiles : []);\n setLoading(false);\n }, DEFAULT_TIMEOUT);\n };\n\n const { getRootProps, getInputProps, isDragActive } = useDropzone({\n onDrop,\n accept: fileAcceptMap(accepts),\n maxSize,\n multiple: multiple && maxFiles > 1,\n disabled: disabled || loading,\n });\n\n const removeFile = (index: number) => () => {\n const updated = files.filter((_, i) => i !== index);\n onChange?.(updated.length ? updated : []);\n };\n\n const uploadedFiles = files\n .map((file, index) => ({ file, index }))\n .filter(({ file }) => file.status === \"uploaded\");\n\n const isMaxFilesReached = uploadedCount >= maxFiles;\n const uploadIcon = icon ?? Plus;\n\n const gridClasses = {\n grid: \"grid-cols-2 sm:grid-cols-3 md:grid-cols-4\",\n list: \"grid-cols-1\",\n compact: \"grid-cols-2 sm:grid-cols-3\",\n };\n\n return (\n <div className={cn(\"w-full space-y-4\", className?.container)}>\n <div\n className={cn(\n \"grid h-full w-full gap-4\",\n variant === \"list\" ? \"grid-cols-1\" : gridClasses[variant],\n )}\n >\n {showFiles &&\n uploadedFiles.map(({ file, index }) => {\n const type = getFileType(file);\n\n return (\n <div\n key={`${file.url}-${file.addedAt}-${index}`}\n className=\"group bg-primary-bg relative aspect-square h-full w-full\n overflow-hidden rounded-lg\"\n >\n {type === \"image\" ? (\n <img\n src={file.url}\n className=\"h-full w-full object-cover\"\n />\n ) : (\n <div\n className=\"flex h-full w-full items-center justify-center bg-gray-100\n text-sm font-semibold\"\n >\n {file.name.split(\".\").pop()?.toUpperCase()}\n </div>\n )}\n\n <div\n className=\"bg-primary-inverse-bg/50 text-primary-bg absolute inset-0\n flex items-center justify-center opacity-0 transition-opacity\n hover:opacity-100\"\n >\n <StrokeIcon\n onClick={removeFile(index)}\n icon={X}\n />\n </div>\n </div>\n );\n })}\n\n {!isMaxFilesReached && (\n <div\n {...getRootProps()}\n className={cn(\n `relative flex cursor-pointer flex-col items-center justify-center\n rounded-lg border-2 border-dashed border-gray-300 bg-gray-50\n transition-colors hover:bg-gray-100`,\n isDragActive && \"border-primary bg-primary/5\",\n (disabled || loading) && \"cursor-not-allowed opacity-50\",\n variant === \"list\" ? \"min-h-37.5\" : \"aspect-square\",\n className?.blockAdd,\n )}\n >\n <input {...getInputProps()} />\n\n {loading ? (\n <StrokeIcon\n icon={SpinnerGap}\n className=\"text-sub-label-text h-8 w-8 animate-spin\"\n />\n ) : (\n <div className=\"flex flex-col items-center space-y-2 p-4 text-center\">\n <StrokeIcon\n icon={uploadIcon}\n className={cn(\"text-sub-label-text h-8 w-8\", className?.icon)}\n />\n\n <Typography className={cn(\"text-sub-label-text\", className?.title)}>\n {multiple\n ? `${title || \"Добавить\"} (${uploadedCount}/${maxFiles})`\n : title || \"Добавить\"}\n </Typography>\n\n {text && (\n <Typography className={cn(\"text-sub-label-text\", className?.text)}>\n {text}\n </Typography>\n )}\n </div>\n )}\n </div>\n )}\n </div>\n\n {!isErrorText && error && (\n <div className=\"rounded-lg bg-red-50 p-3 text-sm text-red-600\">{error}</div>\n )}\n </div>\n );\n};\n"],"names":["FILE_SIZE_UNITS","FILE_SIZE_KB","DEFAULT_MAX_SIZE","DEFAULT_MAX_FILES","DEFAULT_ACCEPT","DEFAULT_TIMEOUT","ACCEPT_MAP","formatFileSize","bytes","i","getFileIdentity","file","fileAcceptMap","accepts","acc","t","limitFilesForValue","nextFiles","maxFiles","uploadedFiles","errorFiles","availableErrorSlots","mapFile","status","error","getRejectedError","code","replaceDuplicateErrors","currentFiles","newFiles","rejectedFiles","rejectedFileIds","acceptedFileIds","existingFile","id","getFileType","ext","FilesUploader","value","onChange","multiple","disabled","className","maxSize","variant","icon","title","text","showFiles","isErrorText","loading","setLoading","useState","setError","files","uploadedCount","onDrop","acceptedFiles","remainingUploadSlots","acceptedFilesToUpload","overflowAcceptedFiles","rejectedMapped","rejection","nextBaseFiles","getRootProps","getInputProps","isDragActive","useDropzone","removeFile","index","updated","_","isMaxFilesReached","uploadIcon","Plus","gridClasses","cn","jsxs","type","jsx","StrokeIcon","X","SpinnerGap","Typography"],"mappings":";;;;;;;;;;AA8CA,MAAMA,IAAkB,CAAC,KAAK,MAAM,MAAM,MAAM,IAAI,GAC9CC,IAAe,MAEfC,IAAmB,IAAID,IAAeA,GACtCE,KAAoB,GACpBC,KAA+B,CAAC,KAAK,GACrCC,KAAkB,KAElBC,KAA2D;AAAA,EAC/D,OAAO,EAAE,WAAW,CAAC,QAAQ,SAAS,QAAQ,OAAO,EAAA;AAAA,EACrD,KAAK,EAAE,mBAAmB,CAAC,MAAM,EAAA;AAAA,EACjC,KAAK;AAAA,IACH,sBAAsB,CAAC,MAAM;AAAA,IAC7B,2EAA2E,CAAC,OAAO;AAAA,EAAA;AAAA,EAErF,OAAO;AAAA,IACL,4BAA4B,CAAC,MAAM;AAAA,IACnC,qEAAqE,CAAC,OAAO;AAAA,EAAA;AAAA,EAE/E,MAAM,EAAE,cAAc,CAAC,MAAM,EAAA;AAAA,EAC7B,KAAK,CAAA;AACP,GAEMC,KAAiB,CAACC,MAAkB;AACxC,MAAI,CAACA,EAAO,QAAO;AACnB,QAAMC,IAAI,KAAK,MAAM,KAAK,IAAID,CAAK,IAAI,KAAK,IAAIP,CAAY,CAAC;AAC7D,SAAO,IAAIO,IAAQ,KAAK,IAAIP,GAAcQ,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAIT,EAAgBS,CAAC,CAAC;AAChF,GAEMC,IAAkB,CAACC,MACvB,GAAGA,EAAK,IAAI,IAAIA,EAAK,IAAI,IAErBC,KAAgB,CAACC,MACrBA,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,UAAA;AAAA,gBAAA,gBAAAqC,EAAC,SAAA,EAAO,GAAGd,EAAA,EAAc,CAAG;AAAA,gBAE3Bf,IACC,gBAAA6B;AAAA,kBAACC;AAAA,kBAAA;AAAA,oBACC,MAAME;AAAA,oBACN,WAAU;AAAA,kBAAA;AAAA,gBAAA,IAGZ,gBAAAL,EAAC,OAAA,EAAI,WAAU,wDACb,UAAA;AAAA,kBAAA,gBAAAE;AAAA,oBAACC;AAAA,oBAAA;AAAA,sBACC,MAAMP;AAAA,sBACN,WAAWG,EAAG,+BAA+BlC,GAAW,IAAI;AAAA,oBAAA;AAAA,kBAAA;AAAA,oCAG7DyC,GAAA,EAAW,WAAWP,EAAG,uBAAuBlC,GAAW,KAAK,GAC9D,UAAAF,IACG,GAAGM,KAAS,UAAU,KAAKS,CAAa,IAAIrC,CAAQ,MACpD4B,KAAS,YACf;AAAA,kBAECC,uBACEoC,GAAA,EAAW,WAAWP,EAAG,uBAAuBlC,GAAW,IAAI,GAC7D,UAAAK,EAAA,CACH;AAAA,gBAAA,EAAA,CAEJ;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,IAIH,CAACE,KAAezB,uBACd,OAAA,EAAI,WAAU,iDAAiD,UAAAA,EAAA,CAAM;AAAA,EAAA,GAE1E;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/ArrowCounterClockwise");Object.defineProperty(exports,"ArrowCounterClockwise",{enumerable:!0,get:()=>e.ArrowCounterClockwise});
2
+ //# sourceMappingURL=components-icons-ArrowCounterClockwise.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-ArrowCounterClockwise.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ArrowCounterClockwise as e } from "phosphor-strokes-icons/icons/ArrowCounterClockwise";
2
+ export {
3
+ e as ArrowCounterClockwise
4
+ };
5
+ //# sourceMappingURL=components-icons-ArrowCounterClockwise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-ArrowCounterClockwise.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/BoundingBox");Object.defineProperty(exports,"BoundingBox",{enumerable:!0,get:()=>e.BoundingBox});
2
+ //# sourceMappingURL=components-icons-BoundingBox.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-BoundingBox.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { BoundingBox as r } from "phosphor-strokes-icons/icons/BoundingBox";
2
+ export {
3
+ r as BoundingBox
4
+ };
5
+ //# sourceMappingURL=components-icons-BoundingBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-BoundingBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Briefcase");Object.defineProperty(exports,"Briefcase",{enumerable:!0,get:()=>e.Briefcase});
2
+ //# sourceMappingURL=components-icons-Briefcase.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Briefcase.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Briefcase as f } from "phosphor-strokes-icons/icons/Briefcase";
2
+ export {
3
+ f as Briefcase
4
+ };
5
+ //# sourceMappingURL=components-icons-Briefcase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Briefcase.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Building");Object.defineProperty(exports,"Building",{enumerable:!0,get:()=>e.Building});
2
+ //# sourceMappingURL=components-icons-Building.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Building.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Building as r } from "phosphor-strokes-icons/icons/Building";
2
+ export {
3
+ r as Building
4
+ };
5
+ //# sourceMappingURL=components-icons-Building.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Building.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Buildings");Object.defineProperty(exports,"Buildings",{enumerable:!0,get:()=>e.Buildings});
2
+ //# sourceMappingURL=components-icons-Buildings.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Buildings.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Buildings as r } from "phosphor-strokes-icons/icons/Buildings";
2
+ export {
3
+ r as Buildings
4
+ };
5
+ //# sourceMappingURL=components-icons-Buildings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Buildings.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/CaretDown");Object.defineProperty(exports,"CaretDown",{enumerable:!0,get:()=>e.CaretDown});
2
+ //# sourceMappingURL=components-icons-CaretDown.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretDown.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { CaretDown as e } from "phosphor-strokes-icons/icons/CaretDown";
2
+ export {
3
+ e as CaretDown
4
+ };
5
+ //# sourceMappingURL=components-icons-CaretDown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretDown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/CaretLeft");Object.defineProperty(exports,"CaretLeft",{enumerable:!0,get:()=>e.CaretLeft});
2
+ //# sourceMappingURL=components-icons-CaretLeft.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretLeft.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { CaretLeft as t } from "phosphor-strokes-icons/icons/CaretLeft";
2
+ export {
3
+ t as CaretLeft
4
+ };
5
+ //# sourceMappingURL=components-icons-CaretLeft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretLeft.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/CaretRight");Object.defineProperty(exports,"CaretRight",{enumerable:!0,get:()=>e.CaretRight});
2
+ //# sourceMappingURL=components-icons-CaretRight.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretRight.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { CaretRight as e } from "phosphor-strokes-icons/icons/CaretRight";
2
+ export {
3
+ e as CaretRight
4
+ };
5
+ //# sourceMappingURL=components-icons-CaretRight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretRight.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/CaretUp");Object.defineProperty(exports,"CaretUp",{enumerable:!0,get:()=>e.CaretUp});
2
+ //# sourceMappingURL=components-icons-CaretUp.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretUp.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { CaretUp as o } from "phosphor-strokes-icons/icons/CaretUp";
2
+ export {
3
+ o as CaretUp
4
+ };
5
+ //# sourceMappingURL=components-icons-CaretUp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretUp.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/CaretUpDown");Object.defineProperty(exports,"CaretUpDown",{enumerable:!0,get:()=>e.CaretUpDown});
2
+ //# sourceMappingURL=components-icons-CaretUpDown.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretUpDown.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { CaretUpDown as e } from "phosphor-strokes-icons/icons/CaretUpDown";
2
+ export {
3
+ e as CaretUpDown
4
+ };
5
+ //# sourceMappingURL=components-icons-CaretUpDown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CaretUpDown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/ChartLine");Object.defineProperty(exports,"ChartLine",{enumerable:!0,get:()=>e.ChartLine});
2
+ //# sourceMappingURL=components-icons-ChartLine.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-ChartLine.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ChartLine as o } from "phosphor-strokes-icons/icons/ChartLine";
2
+ export {
3
+ o as ChartLine
4
+ };
5
+ //# sourceMappingURL=components-icons-ChartLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-ChartLine.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Check");Object.defineProperty(exports,"Check",{enumerable:!0,get:()=>e.Check});
2
+ //# sourceMappingURL=components-icons-Check.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Check.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Check as r } from "phosphor-strokes-icons/icons/Check";
2
+ export {
3
+ r as Check
4
+ };
5
+ //# sourceMappingURL=components-icons-Check.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Check.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/CheckCircle");Object.defineProperty(exports,"CheckCircle",{enumerable:!0,get:()=>e.CheckCircle});
2
+ //# sourceMappingURL=components-icons-CheckCircle.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CheckCircle.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { CheckCircle as c } from "phosphor-strokes-icons/icons/CheckCircle";
2
+ export {
3
+ c as CheckCircle
4
+ };
5
+ //# sourceMappingURL=components-icons-CheckCircle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CheckCircle.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Clock");Object.defineProperty(exports,"Clock",{enumerable:!0,get:()=>e.Clock});
2
+ //# sourceMappingURL=components-icons-Clock.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Clock.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Clock as c } from "phosphor-strokes-icons/icons/Clock";
2
+ export {
3
+ c as Clock
4
+ };
5
+ //# sourceMappingURL=components-icons-Clock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-Clock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/CreditCard");Object.defineProperty(exports,"CreditCard",{enumerable:!0,get:()=>e.CreditCard});
2
+ //# sourceMappingURL=components-icons-CreditCard.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CreditCard.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { CreditCard as e } from "phosphor-strokes-icons/icons/CreditCard";
2
+ export {
3
+ e as CreditCard
4
+ };
5
+ //# sourceMappingURL=components-icons-CreditCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-CreditCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/DotsThree");Object.defineProperty(exports,"DotsThree",{enumerable:!0,get:()=>e.DotsThree});
2
+ //# sourceMappingURL=components-icons-DotsThree.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-DotsThree.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { DotsThree as r } from "phosphor-strokes-icons/icons/DotsThree";
2
+ export {
3
+ r as DotsThree
4
+ };
5
+ //# sourceMappingURL=components-icons-DotsThree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-DotsThree.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/DownloadSimple");Object.defineProperty(exports,"DownloadSimple",{enumerable:!0,get:()=>e.DownloadSimple});
2
+ //# sourceMappingURL=components-icons-DownloadSimple.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-DownloadSimple.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { DownloadSimple as l } from "phosphor-strokes-icons/icons/DownloadSimple";
2
+ export {
3
+ l as DownloadSimple
4
+ };
5
+ //# sourceMappingURL=components-icons-DownloadSimple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-icons-DownloadSimple.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}