@weni/unnnic-system 2.0.0 → 2.0.1

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 (613) hide show
  1. package/.vscode/extensions.json +3 -0
  2. package/README.md +36 -2
  3. package/dist/favicon.ico +0 -0
  4. package/dist/style.css +1 -0
  5. package/dist/unnnic.mjs +68066 -0
  6. package/dist/unnnic.umd.js +661 -44367
  7. package/package.json +76 -65
  8. package/src/assets/fonts/Material Symbols Rounded Filled.woff2 +0 -0
  9. package/src/assets/fonts/Material Symbols Rounded.woff2 +0 -0
  10. package/src/assets/fonts/fonts/icomoon.svg +163 -163
  11. package/src/assets/fonts/icons.css +582 -582
  12. package/src/assets/icons/Add1.vue +16 -0
  13. package/src/assets/icons/AddCircle1.vue +20 -0
  14. package/src/assets/icons/AlarmBell2.vue +20 -0
  15. package/src/assets/icons/AlarmBell3.vue +20 -0
  16. package/src/assets/icons/AlarmBellRing.vue +40 -0
  17. package/src/assets/icons/AlertCircle1.vue +25 -0
  18. package/src/assets/icons/AlertCircle11.vue +15 -0
  19. package/src/assets/icons/AmericanExpress.vue +18 -0
  20. package/src/assets/icons/AppWindowEdit1.vue +20 -0
  21. package/src/assets/icons/AppWindowEdit2.vue +45 -0
  22. package/src/assets/icons/ArrowButtonDown1.vue +15 -0
  23. package/src/assets/icons/ArrowButtonRight1.vue +15 -0
  24. package/src/assets/icons/ArrowButtonUp1.vue +15 -0
  25. package/src/assets/icons/ArrowDown11.vue +14 -0
  26. package/src/assets/icons/ArrowLeft11.vue +15 -0
  27. package/src/assets/icons/ArrowRedo.vue +15 -0
  28. package/src/assets/icons/ArrowRight11.vue +15 -0
  29. package/src/assets/icons/ArrowUndo.vue +15 -0
  30. package/src/assets/icons/Attachment.vue +16 -0
  31. package/src/assets/icons/Bin11.vue +26 -0
  32. package/src/assets/icons/BookAddress12.vue +20 -0
  33. package/src/assets/icons/BookAddress2.vue +15 -0
  34. package/src/assets/icons/BookLibrary1.vue +45 -0
  35. package/src/assets/icons/BookLibrary2.vue +17 -0
  36. package/src/assets/icons/Brazil.svg +21 -21
  37. package/src/assets/icons/Brazil.vue +74 -0
  38. package/src/assets/icons/Building21.vue +66 -0
  39. package/src/assets/icons/ButtonPlay1.vue +20 -0
  40. package/src/assets/icons/ButtonRefreshArrow1.vue +15 -0
  41. package/src/assets/icons/ButtonRefreshArrows1.vue +20 -0
  42. package/src/assets/icons/Charger1.vue +21 -0
  43. package/src/assets/icons/ChatTranslate1.vue +30 -0
  44. package/src/assets/icons/Check2.vue +16 -0
  45. package/src/assets/icons/CheckCircle11.vue +20 -0
  46. package/src/assets/icons/CheckCircle111.vue +15 -0
  47. package/src/assets/icons/CheckDouble.vue +15 -0
  48. package/src/assets/icons/CheckSquare1.vue +20 -0
  49. package/src/assets/icons/CheckSquare2.vue +20 -0
  50. package/src/assets/icons/CheckboxDefault.vue +19 -0
  51. package/src/assets/icons/CheckboxDisable.vue +19 -0
  52. package/src/assets/icons/CheckboxLess.vue +23 -0
  53. package/src/assets/icons/CheckboxSelect.vue +25 -0
  54. package/src/assets/icons/Close1.vue +16 -0
  55. package/src/assets/icons/Cog1.vue +21 -0
  56. package/src/assets/icons/Cog2.vue +16 -0
  57. package/src/assets/icons/CommonFileEmpty1.vue +15 -0
  58. package/src/assets/icons/CommonFileHorizontalImage1.vue +25 -0
  59. package/src/assets/icons/ControlsPause1.vue +20 -0
  60. package/src/assets/icons/ControlsPlay1.vue +15 -0
  61. package/src/assets/icons/CopyPaste1.vue +35 -0
  62. package/src/assets/icons/CurrencyDollarCircle1.vue +20 -0
  63. package/src/assets/icons/DefaultAvatar.vue +28 -0
  64. package/src/assets/icons/Delete1.vue +16 -0
  65. package/src/assets/icons/Delete11.vue +21 -0
  66. package/src/assets/icons/Delete21.vue +16 -0
  67. package/src/assets/icons/DeveloperCommunityGithub11.vue +15 -0
  68. package/src/assets/icons/DinersClub.vue +26 -0
  69. package/src/assets/icons/Discover.vue +47 -0
  70. package/src/assets/icons/DownloadBottom1.vue +20 -0
  71. package/src/assets/icons/DownloadThickBottom1.vue +20 -0
  72. package/src/assets/icons/Drag1.vue +27 -0
  73. package/src/assets/icons/EmailActionUnread1.vue +27 -0
  74. package/src/assets/icons/EmailActionUnread11.vue +18 -0
  75. package/src/assets/icons/Emoji.vue +31 -0
  76. package/src/assets/icons/Expand81.vue +31 -0
  77. package/src/assets/icons/ExpandFull1.vue +35 -0
  78. package/src/assets/icons/Export1.vue +26 -0
  79. package/src/assets/icons/Filter.vue +18 -0
  80. package/src/assets/icons/FitnessBiceps1.vue +15 -0
  81. package/src/assets/icons/Flash13.vue +16 -0
  82. package/src/assets/icons/Flash14.vue +16 -0
  83. package/src/assets/icons/FloppyDisk1.vue +30 -0
  84. package/src/assets/icons/Folder1.vue +16 -0
  85. package/src/assets/icons/Folder2.vue +16 -0
  86. package/src/assets/icons/GaugeDashboard1.vue +20 -0
  87. package/src/assets/icons/GaugeDashboard2.vue +40 -0
  88. package/src/assets/icons/GenericCard.vue +18 -0
  89. package/src/assets/icons/GraphStats1.vue +15 -0
  90. package/src/assets/icons/GraphStatsAscend2.vue +15 -0
  91. package/src/assets/icons/GraphStatsCircle1.vue +20 -0
  92. package/src/assets/icons/GraphStatsCircle11.vue +20 -0
  93. package/src/assets/icons/GraphStatsDescend2.vue +17 -0
  94. package/src/assets/icons/HeadphonesCustomerSupport1.vue +15 -0
  95. package/src/assets/icons/HeadphonesCustomerSupport2.vue +15 -0
  96. package/src/assets/icons/HeadphonesCustomerSupportHuman11.vue +20 -0
  97. package/src/assets/icons/Hierarchy32.vue +16 -0
  98. package/src/assets/icons/Hierarchy33.vue +16 -0
  99. package/src/assets/icons/House11.vue +21 -0
  100. package/src/assets/icons/House22.vue +16 -0
  101. package/src/assets/icons/Indicator.vue +18 -0
  102. package/src/assets/icons/InformationCircle4.vue +15 -0
  103. package/src/assets/icons/InteractionTime.vue +31 -0
  104. package/src/assets/icons/Jcb.vue +75 -0
  105. package/src/assets/icons/KeyboardArrowDown1.vue +15 -0
  106. package/src/assets/icons/KeyboardArrowLeft1.vue +15 -0
  107. package/src/assets/icons/KeyboardArrowRight1.vue +15 -0
  108. package/src/assets/icons/KeyboardReturn1.vue +18 -0
  109. package/src/assets/icons/KeyboardReturn11.vue +14 -0
  110. package/src/assets/icons/LayoutDashboard1.vue +30 -0
  111. package/src/assets/icons/LayoutDashboard2.vue +30 -0
  112. package/src/assets/icons/LayoutModule12.vue +26 -0
  113. package/src/assets/icons/LoadingCircle1.vue +72 -0
  114. package/src/assets/icons/Lock21.vue +21 -0
  115. package/src/assets/icons/Lock22.vue +16 -0
  116. package/src/assets/icons/LockUnlock11.vue +20 -0
  117. package/src/assets/icons/Logout11.vue +21 -0
  118. package/src/assets/icons/Mastercard.vue +27 -0
  119. package/src/assets/icons/Messages.vue +18 -0
  120. package/src/assets/icons/MessagesBubble1.vue +15 -0
  121. package/src/assets/icons/MessagesBubble3.vue +15 -0
  122. package/src/assets/icons/MessagesBubble4.vue +15 -0
  123. package/src/assets/icons/MessagingWeChat2.vue +20 -0
  124. package/src/assets/icons/MessagingWeChat3.vue +40 -0
  125. package/src/assets/icons/MessagingWhatsapp1.vue +20 -0
  126. package/src/assets/icons/Microphone.vue +21 -0
  127. package/src/assets/icons/NavigationMenuVertical1.vue +25 -0
  128. package/src/assets/icons/Notes1.vue +36 -0
  129. package/src/assets/icons/OfficeFilePdf11.vue +30 -0
  130. package/src/assets/icons/PaginateFilterText1.vue +35 -0
  131. package/src/assets/icons/PencilWrite1.vue +20 -0
  132. package/src/assets/icons/Phone3.vue +16 -0
  133. package/src/assets/icons/Phone4.vue +16 -0
  134. package/src/assets/icons/PhoneCharger1.vue +15 -0
  135. package/src/assets/icons/PhotographyEquipmentBag1.vue +25 -0
  136. package/src/assets/icons/PieLineGraph1.vue +35 -0
  137. package/src/assets/icons/Preferences.vue +74 -0
  138. package/src/assets/icons/QuestionCircle1.vue +25 -0
  139. package/src/assets/icons/QuestionCircle2.vue +15 -0
  140. package/src/assets/icons/RadioDefault.vue +17 -0
  141. package/src/assets/icons/RadioDisable.vue +17 -0
  142. package/src/assets/icons/RadioSelected.vue +23 -0
  143. package/src/assets/icons/RatingStar1.vue +13 -0
  144. package/src/assets/icons/RatingStar11.vue +15 -0
  145. package/src/assets/icons/ReadEmailAt1.vue +27 -0
  146. package/src/assets/icons/ResponseTime.vue +48 -0
  147. package/src/assets/icons/ScienceFictionRobot1.vue +40 -0
  148. package/src/assets/icons/ScienceFictionRobot2.vue +25 -0
  149. package/src/assets/icons/Search1.vue +16 -0
  150. package/src/assets/icons/SendEmail31.vue +13 -0
  151. package/src/assets/icons/SingleNeutral2.vue +20 -0
  152. package/src/assets/icons/SingleNeutralActions1.vue +20 -0
  153. package/src/assets/icons/SocialInstagram1.vue +15 -0
  154. package/src/assets/icons/SocialMediaFacebook1.vue +15 -0
  155. package/src/assets/icons/SocialMediaGoogle1.vue +26 -0
  156. package/src/assets/icons/SortAsc.vue +19 -0
  157. package/src/assets/icons/SortDefault.vue +20 -0
  158. package/src/assets/icons/SortDesc.vue +19 -0
  159. package/src/assets/icons/Spain.svg +498 -498
  160. package/src/assets/icons/Spain.vue +1846 -0
  161. package/src/assets/icons/StudyLightIdea1.vue +50 -0
  162. package/src/assets/icons/Subtract1.vue +16 -0
  163. package/src/assets/icons/SubtractCircle1.vue +20 -0
  164. package/src/assets/icons/SwitchDefault.vue +31 -0
  165. package/src/assets/icons/SwitchDefaultDisabled.vue +25 -0
  166. package/src/assets/icons/SwitchSelected.vue +31 -0
  167. package/src/assets/icons/SwitchSelectedDisabled.vue +23 -0
  168. package/src/assets/icons/SynchronizeArrowClock4.vue +20 -0
  169. package/src/assets/icons/SynchronizeArrowClock5.vue +20 -0
  170. package/src/assets/icons/TaskChecklist1.vue +20 -0
  171. package/src/assets/icons/TaskListClock1.vue +45 -0
  172. package/src/assets/icons/TextBold.vue +15 -0
  173. package/src/assets/icons/TextCenter.vue +35 -0
  174. package/src/assets/icons/TextItalic.vue +15 -0
  175. package/src/assets/icons/TextJustified.vue +35 -0
  176. package/src/assets/icons/TextLeft.vue +35 -0
  177. package/src/assets/icons/TextRight.vue +35 -0
  178. package/src/assets/icons/TextUnderline.vue +20 -0
  179. package/src/assets/icons/Ticket1.vue +39 -0
  180. package/src/assets/icons/Ticket2.vue +21 -0
  181. package/src/assets/icons/TimeClockCircle1.vue +20 -0
  182. package/src/assets/icons/TransferMessage.vue +24 -0
  183. package/src/assets/icons/Translate1.vue +41 -0
  184. package/src/assets/icons/Translate2.vue +41 -0
  185. package/src/assets/icons/Typing1.vue +21 -0
  186. package/src/assets/icons/USA.svg +28 -28
  187. package/src/assets/icons/USA.vue +192 -0
  188. package/src/assets/icons/Unionpay.vue +31 -0
  189. package/src/assets/icons/UnorderedList.vue +40 -0
  190. package/src/assets/icons/UploadBottom1.vue +20 -0
  191. package/src/assets/icons/VideoFileMp41.vue +30 -0
  192. package/src/assets/icons/View11.vue +21 -0
  193. package/src/assets/icons/ViewOff1.vue +35 -0
  194. package/src/assets/icons/VipCrownQueen2.vue +20 -0
  195. package/src/assets/icons/Visa.vue +35 -0
  196. package/src/assets/icons/add-1.svg +3 -3
  197. package/src/assets/icons/add-circle-1.svg +4 -4
  198. package/src/assets/icons/alarm-bell-ring.svg +8 -8
  199. package/src/assets/icons/alert-circle-1-1.svg +3 -3
  200. package/src/assets/icons/alert-circle-1.svg +5 -5
  201. package/src/assets/icons/american-express.svg +4 -4
  202. package/src/assets/icons/app-window-edit-1.svg +4 -4
  203. package/src/assets/icons/app-window-edit-2.svg +9 -9
  204. package/src/assets/icons/arrow-button-down-1.svg +3 -3
  205. package/src/assets/icons/arrow-button-up-1.svg +3 -3
  206. package/src/assets/icons/arrow-down-1-1.svg +3 -3
  207. package/src/assets/icons/arrow-left-1-1.svg +3 -3
  208. package/src/assets/icons/arrow-redo.svg +3 -3
  209. package/src/assets/icons/arrow-right-1-1.svg +3 -3
  210. package/src/assets/icons/arrow-undo.svg +3 -3
  211. package/src/assets/icons/attachment.svg +3 -3
  212. package/src/assets/icons/bin-1-1.svg +5 -5
  213. package/src/assets/icons/book-address-1-2.svg +4 -4
  214. package/src/assets/icons/book-address-2.svg +3 -3
  215. package/src/assets/icons/book-library-1.svg +9 -9
  216. package/src/assets/icons/book-library-2.svg +3 -3
  217. package/src/assets/icons/bookmark-tag-1.svg +3 -3
  218. package/src/assets/icons/bookmarkTag1.vue +17 -0
  219. package/src/assets/icons/building-2-1.svg +13 -13
  220. package/src/assets/icons/button-play-1.svg +4 -4
  221. package/src/assets/icons/button-refresh-arrow-1.svg +3 -3
  222. package/src/assets/icons/button-refresh-arrows-1.svg +4 -4
  223. package/src/assets/icons/charger-1.svg +4 -4
  224. package/src/assets/icons/chat-translate-1.svg +6 -6
  225. package/src/assets/icons/check-2.svg +3 -3
  226. package/src/assets/icons/check-circle-1-1-1.svg +3 -3
  227. package/src/assets/icons/check-circle-1-1.svg +4 -4
  228. package/src/assets/icons/check-double.svg +3 -3
  229. package/src/assets/icons/check-square-1.svg +4 -4
  230. package/src/assets/icons/check-square-2.svg +4 -4
  231. package/src/assets/icons/checkbox-default.svg +3 -3
  232. package/src/assets/icons/checkbox-disable.svg +3 -3
  233. package/src/assets/icons/checkbox-less.svg +4 -4
  234. package/src/assets/icons/checkbox-select.svg +4 -4
  235. package/src/assets/icons/close-1.svg +3 -3
  236. package/src/assets/icons/cog-1.svg +4 -4
  237. package/src/assets/icons/cog-2.svg +3 -3
  238. package/src/assets/icons/common-file-empty-1.svg +3 -3
  239. package/src/assets/icons/common-file-horizontal-image-1.svg +5 -5
  240. package/src/assets/icons/controls-pause-1.svg +4 -4
  241. package/src/assets/icons/controls-play-1.svg +3 -3
  242. package/src/assets/icons/copy-paste-1.svg +7 -7
  243. package/src/assets/icons/currency-dollar-circle-1.svg +4 -4
  244. package/src/assets/icons/default-avatar.svg +5 -5
  245. package/src/assets/icons/delete-1-1.svg +4 -4
  246. package/src/assets/icons/delete-1.svg +3 -3
  247. package/src/assets/icons/delete-2-1.svg +3 -3
  248. package/src/assets/icons/developer-community-github-1-1.svg +3 -3
  249. package/src/assets/icons/diners-club.svg +6 -6
  250. package/src/assets/icons/discover.svg +11 -11
  251. package/src/assets/icons/download-bottom-1.svg +4 -4
  252. package/src/assets/icons/download-thick-bottom-1.svg +4 -4
  253. package/src/assets/icons/drag-1.svg +10 -10
  254. package/src/assets/icons/email-action-unread-1-1.svg +4 -4
  255. package/src/assets/icons/email-action-unread-1.svg +10 -10
  256. package/src/assets/icons/emoji.svg +6 -6
  257. package/src/assets/icons/expand-8-1.svg +6 -6
  258. package/src/assets/icons/expand-full-1.svg +7 -7
  259. package/src/assets/icons/export-1.svg +5 -5
  260. package/src/assets/icons/filter.svg +3 -3
  261. package/src/assets/icons/fitness-biceps-1.svg +3 -3
  262. package/src/assets/icons/flash-1-3.svg +3 -3
  263. package/src/assets/icons/flash-1-4.svg +3 -3
  264. package/src/assets/icons/floppy-disk-1.svg +6 -6
  265. package/src/assets/icons/folder-1.svg +3 -3
  266. package/src/assets/icons/folder-2.svg +3 -3
  267. package/src/assets/icons/gauge-dashboard-1.svg +4 -4
  268. package/src/assets/icons/gauge-dashboard-2.svg +8 -8
  269. package/src/assets/icons/generic-card.svg +4 -4
  270. package/src/assets/icons/graph-stats-1.svg +3 -3
  271. package/src/assets/icons/graph-stats-ascend-2.svg +3 -3
  272. package/src/assets/icons/graph-stats-circle-1-1.svg +4 -4
  273. package/src/assets/icons/graph-stats-circle-1.svg +4 -4
  274. package/src/assets/icons/graph-stats-descend-2.svg +4 -4
  275. package/src/assets/icons/headphones-customer-support-1.svg +3 -3
  276. package/src/assets/icons/headphones-customer-support-2.svg +3 -3
  277. package/src/assets/icons/headphones-customer-support-human-1-1.svg +4 -4
  278. package/src/assets/icons/hierarchy-3-2.svg +3 -3
  279. package/src/assets/icons/hierarchy-3-3.svg +3 -3
  280. package/src/assets/icons/house-1-1.svg +4 -4
  281. package/src/assets/icons/house-2-2.svg +3 -3
  282. package/src/assets/icons/icon-script.py +27 -27
  283. package/src/assets/icons/indicator.svg +3 -3
  284. package/src/assets/icons/information-circle-4.svg +3 -3
  285. package/src/assets/icons/interaction-time.svg +5 -5
  286. package/src/assets/icons/jcb.svg +21 -21
  287. package/src/assets/icons/keyboard-arrow-down-1.svg +3 -3
  288. package/src/assets/icons/keyboard-arrow-left-1.svg +3 -3
  289. package/src/assets/icons/keyboard-arrow-right-1.svg +3 -3
  290. package/src/assets/icons/keyboard-return-1-1.svg +3 -3
  291. package/src/assets/icons/keyboard-return-1.svg +4 -4
  292. package/src/assets/icons/layout-dashboard-1.svg +6 -6
  293. package/src/assets/icons/layout-dashboard-2.svg +6 -6
  294. package/src/assets/icons/layout-module-1-2.svg +6 -6
  295. package/src/assets/icons/loading-circle-1.svg +19 -19
  296. package/src/assets/icons/lock-2-1.svg +4 -4
  297. package/src/assets/icons/lock-2-2.svg +3 -3
  298. package/src/assets/icons/lock-unlock-1-1.svg +4 -4
  299. package/src/assets/icons/logout-1-1.svg +4 -4
  300. package/src/assets/icons/mastercard.svg +6 -6
  301. package/src/assets/icons/messages-bubble-1.svg +3 -3
  302. package/src/assets/icons/messages-bubble-3.svg +3 -3
  303. package/src/assets/icons/messages-bubble-4.svg +3 -3
  304. package/src/assets/icons/messages.svg +3 -3
  305. package/src/assets/icons/messaging-we-chat-2.svg +4 -4
  306. package/src/assets/icons/messaging-we-chat-3.svg +8 -8
  307. package/src/assets/icons/messaging-whatsapp-1.svg +4 -4
  308. package/src/assets/icons/microphone.svg +4 -4
  309. package/src/assets/icons/move-expand-vertical-1.svg +3 -3
  310. package/src/assets/icons/moveExpandVertical1.vue +17 -0
  311. package/src/assets/icons/navigation-menu-vertical-1.svg +5 -5
  312. package/src/assets/icons/notes-1.svg +7 -7
  313. package/src/assets/icons/office-file-pdf-1-1.svg +6 -6
  314. package/src/assets/icons/paginate-filter-text-1.svg +7 -7
  315. package/src/assets/icons/pencil-write-1.svg +4 -4
  316. package/src/assets/icons/phone-3.svg +3 -3
  317. package/src/assets/icons/phone-4.svg +3 -3
  318. package/src/assets/icons/phone-charger-1.svg +3 -3
  319. package/src/assets/icons/photography-equipment-bag-1.svg +5 -5
  320. package/src/assets/icons/pie-line-graph-1.svg +7 -7
  321. package/src/assets/icons/preferences.svg +11 -11
  322. package/src/assets/icons/question-circle-1.svg +5 -5
  323. package/src/assets/icons/question-circle-2.svg +3 -3
  324. package/src/assets/icons/radio-default.svg +3 -3
  325. package/src/assets/icons/radio-disable.svg +3 -3
  326. package/src/assets/icons/radio-selected.svg +4 -4
  327. package/src/assets/icons/rating-star-1-1.svg +3 -3
  328. package/src/assets/icons/rating-star-1.svg +3 -3
  329. package/src/assets/icons/read-email-at-1.svg +10 -10
  330. package/src/assets/icons/response-time.svg +12 -12
  331. package/src/assets/icons/science-fiction-robot-1.svg +8 -8
  332. package/src/assets/icons/science-fiction-robot-2.svg +5 -5
  333. package/src/assets/icons/script-to-convert-svg-to-vue.js +20 -0
  334. package/src/assets/icons/search-1.svg +3 -3
  335. package/src/assets/icons/send-email-3-1.svg +3 -3
  336. package/src/assets/icons/single-neutral-2.svg +4 -4
  337. package/src/assets/icons/single-neutral-actions-1.svg +4 -4
  338. package/src/assets/icons/social-instagram-1.svg +3 -3
  339. package/src/assets/icons/social-media-facebook-1.svg +3 -3
  340. package/src/assets/icons/social-media-google-1.svg +6 -6
  341. package/src/assets/icons/sort-asc.svg +4 -4
  342. package/src/assets/icons/sort-default.svg +4 -4
  343. package/src/assets/icons/sort-desc.svg +4 -4
  344. package/src/assets/icons/study-light-idea-1.svg +10 -10
  345. package/src/assets/icons/subtract-1.svg +3 -3
  346. package/src/assets/icons/subtract-circle-1.svg +4 -4
  347. package/src/assets/icons/switch-default-disabled.svg +4 -4
  348. package/src/assets/icons/switch-default.svg +11 -11
  349. package/src/assets/icons/switch-selected-disabled.svg +4 -4
  350. package/src/assets/icons/switch-selected.svg +11 -11
  351. package/src/assets/icons/synchronize-arrow-clock-4.svg +4 -4
  352. package/src/assets/icons/synchronize-arrow-clock-5.svg +4 -4
  353. package/src/assets/icons/task-checklist-1.svg +4 -4
  354. package/src/assets/icons/task-list-clock-1.svg +9 -9
  355. package/src/assets/icons/text-bold.svg +3 -3
  356. package/src/assets/icons/text-center.svg +7 -7
  357. package/src/assets/icons/text-italic.svg +3 -3
  358. package/src/assets/icons/text-justified.svg +7 -7
  359. package/src/assets/icons/text-left.svg +7 -7
  360. package/src/assets/icons/text-right.svg +7 -7
  361. package/src/assets/icons/text-underline.svg +4 -4
  362. package/src/assets/icons/ticket-1.svg +9 -9
  363. package/src/assets/icons/ticket-2.svg +4 -4
  364. package/src/assets/icons/time-clock-circle-1.svg +4 -4
  365. package/src/assets/icons/transfer-message.svg +4 -4
  366. package/src/assets/icons/translate-1.svg +8 -8
  367. package/src/assets/icons/translate-2.svg +8 -8
  368. package/src/assets/icons/typing-1.svg +4 -4
  369. package/src/assets/icons/unionpay.svg +7 -7
  370. package/src/assets/icons/unordered-list.svg +8 -8
  371. package/src/assets/icons/upload-bottom-1.svg +4 -4
  372. package/src/assets/icons/video-file-mp4-1.svg +6 -6
  373. package/src/assets/icons/view-1-1.svg +4 -4
  374. package/src/assets/icons/view-off-1.svg +7 -7
  375. package/src/assets/icons/vip-crown-queen-2.svg +4 -4
  376. package/src/assets/icons/visa.svg +8 -8
  377. package/src/assets/img/flag/en.svg +28 -28
  378. package/src/assets/img/flag/pt-br.svg +21 -21
  379. package/src/assets/scss/colors.scss +241 -241
  380. package/src/assets/scss/fonts.scss +123 -123
  381. package/src/assets/scss/grid.scss +51 -51
  382. package/src/assets/scss/spacing.scss +103 -103
  383. package/src/assets/scss/unnnic.scss +10 -10
  384. package/src/components/Accordion/Accordion.vue +17 -10
  385. package/src/components/Alert/Alert.vue +73 -53
  386. package/src/components/Alert/AlertCaller.vue +1 -1
  387. package/src/components/Alert/Version1dot1.vue +196 -77
  388. package/src/components/AudioRecorder/AudioHandler.vue +16 -18
  389. package/src/components/AudioRecorder/AudioPlayer.vue +47 -7
  390. package/src/components/AudioRecorder/AudioRecorder.vue +47 -31
  391. package/src/components/AvatarIcon/AvatarIcon.vue +33 -16
  392. package/src/components/Banner/Banner.vue +1 -2
  393. package/src/components/Banner/InfoBanner.vue +5 -5
  394. package/src/components/Breadcrumb/Breadcrumb.vue +13 -15
  395. package/src/components/Button/Button.vue +174 -99
  396. package/src/components/Button/ButtonIcon.vue +13 -7
  397. package/src/components/Card/AccountCard.vue +3 -3
  398. package/src/components/Card/BlankCard.vue +11 -9
  399. package/src/components/Card/Card.vue +62 -35
  400. package/src/components/Card/CardCompany.vue +45 -22
  401. package/src/components/Card/CardData.vue +11 -5
  402. package/src/components/Card/CardStatusesContainer.vue +45 -14
  403. package/src/components/Card/ContentCard.vue +15 -5
  404. package/src/components/Card/DashCard.vue +8 -5
  405. package/src/components/Card/DefaultCard.vue +11 -5
  406. package/src/components/Card/MarketplaceCard.vue +19 -6
  407. package/src/components/Card/StatusCard.vue +12 -3
  408. package/src/components/Card/TitleCard.vue +9 -5
  409. package/src/components/CardImage/CardImage.vue +48 -26
  410. package/src/components/CardInformation/CardInformation.vue +6 -6
  411. package/src/components/CardNumber/CardNumber.vue +1 -1
  412. package/src/components/CardProject/CardProject.vue +31 -21
  413. package/src/components/Carousel/Carousel.vue +13 -15
  414. package/src/components/Carousel/TagCarousel.vue +27 -16
  415. package/src/components/ChartBar/ChartBar.vue +101 -64
  416. package/src/components/ChartLine/ChartLine.vue +64 -40
  417. package/src/components/ChartMultiLine/ChartMultiLine.vue +328 -0
  418. package/src/components/ChartMultiLine/Line/Line.vue +170 -0
  419. package/src/components/ChartRainbow/ChartRainbow.vue +87 -46
  420. package/src/components/ChatText/ChatText.vue +41 -15
  421. package/src/components/ChatsContact/ChatsContact.vue +332 -0
  422. package/src/components/ChatsDashboardTagLive/ChatsDashboardTagLive.vue +82 -0
  423. package/src/components/ChatsHeader/ChatsHeader.vue +320 -0
  424. package/src/components/ChatsMessage/ChatsMessage.vue +318 -0
  425. package/src/components/ChatsMessage/ChatsMessageStatusBackdrop.vue +78 -0
  426. package/src/components/ChatsMessage/ChatsMessageText.vue +80 -0
  427. package/src/components/{NavbarChats/NavbarChats.vue → ChatsNavbar/ChatsNavbar.vue} +30 -25
  428. package/src/components/ChatsUserAvatar/ChatsUserAvatar.vue +140 -0
  429. package/src/components/Checkbox/Checkbox.vue +14 -12
  430. package/src/components/CircleProgressBar/CircleProgressBar.vue +7 -3
  431. package/src/components/Collapse/Collapse.vue +141 -0
  432. package/src/components/DataArea/DataArea.vue +6 -3
  433. package/src/components/DateFilter/DateFilter.vue +9 -5
  434. package/src/components/DatePicker/DatePicker.vue +133 -76
  435. package/src/components/Dropdown/Dropdown.vue +66 -54
  436. package/src/components/Dropdown/DropdownItem.vue +15 -17
  437. package/src/components/Dropdown/DropdownSkeleton.vue +15 -8
  438. package/src/components/Dropdown/LanguageSelect.vue +56 -21
  439. package/src/components/EmojiPicker/EmojiPicker.vue +83 -0
  440. package/src/components/Flag.vue +2 -2
  441. package/src/components/FormElement/FormElement.vue +44 -4
  442. package/src/components/Icon/OldIconsMap.json +97 -0
  443. package/src/components/Icon.vue +228 -133
  444. package/src/components/IconLoading/IconLoading.vue +48 -0
  445. package/src/components/ImportCard/ImportCard.vue +36 -15
  446. package/src/components/Indicator/Indicator.vue +4 -2
  447. package/src/components/Input/BaseInput.vue +9 -22
  448. package/src/components/Input/Input.vue +30 -26
  449. package/src/components/Input/TextInput.vue +33 -31
  450. package/src/components/InputDatePicker/InputDatePicker.vue +38 -22
  451. package/src/components/Label/Label.vue +1 -1
  452. package/src/components/Modal/CallModal.vue +1 -1
  453. package/src/components/Modal/Modal.vue +62 -19
  454. package/src/components/ModalUpload/ModalUpload.vue +19 -16
  455. package/src/components/MoodRating/MoodRating.vue +36 -21
  456. package/src/components/MultiSelect/MultiSelect.vue +48 -25
  457. package/src/components/Pagination/Pagination.vue +22 -15
  458. package/src/components/ProgressBar/ProgressBar.vue +30 -17
  459. package/src/components/Radio/Radio.vue +45 -65
  460. package/src/components/Select/SelectItem.vue +49 -43
  461. package/src/components/SelectSmart/SelectSmart.vue +133 -70
  462. package/src/components/SelectSmart/SelectSmartMultipleHeader.vue +18 -4
  463. package/src/components/SelectSmart/SelectSmartOption.vue +22 -15
  464. package/src/components/Sidebar/Sidebar.vue +62 -59
  465. package/src/components/Sidebar/SidebarItem.vue +47 -36
  466. package/src/components/Sidebar/SidebarMenu.vue +16 -16
  467. package/src/components/Sidebar/SidebarPrimary.vue +79 -45
  468. package/src/components/SkeletonLoading/SkeletonLoading.vue +73 -60
  469. package/src/components/SkeletonLoading/skeletonTheme.vue +30 -19
  470. package/src/components/Slider/Slider.vue +25 -12
  471. package/src/components/StarRating/StarRating.vue +9 -5
  472. package/src/components/Switch/Switch.vue +23 -16
  473. package/src/components/Tab/Tab.vue +6 -3
  474. package/src/components/Table/Table.vue +14 -5
  475. package/src/components/Table/TableRow.vue +5 -4
  476. package/src/components/TabsExpanded/TabsExpanded.vue +29 -16
  477. package/src/components/Tag/BrandTag.vue +7 -4
  478. package/src/components/Tag/DefaultTag.vue +39 -41
  479. package/src/components/Tag/IndicatorTag.vue +9 -6
  480. package/src/components/Tag/Tag.vue +16 -20
  481. package/src/components/TextArea/TextArea.vue +22 -8
  482. package/src/components/ToolTip/ToolTip.vue +82 -64
  483. package/src/components/TransitionRipple/TransitionRipple.vue +126 -0
  484. package/src/components/UploadArea/UploadArea.vue +31 -14
  485. package/src/components/config.js +0 -1
  486. package/src/components/grid/Grid.vue +16 -11
  487. package/src/components/icons/IconCommunity.vue +12 -0
  488. package/src/components/icons/IconDocumentation.vue +12 -0
  489. package/src/components/icons/IconEcosystem.vue +12 -0
  490. package/src/components/icons/IconSupport.vue +12 -0
  491. package/src/components/icons/IconTooling.vue +19 -0
  492. package/src/components/index.js +48 -32
  493. package/src/index.js +10 -0
  494. package/src/locales/en.json +15 -19
  495. package/src/locales/es.json +15 -19
  496. package/src/locales/pt_br.json +15 -19
  497. package/src/main.js +5 -10
  498. package/src/mixins/i18n.js +60 -0
  499. package/src/stories/Accordion.stories.js +9 -4
  500. package/src/stories/Alert.stories.js +79 -4
  501. package/src/stories/AvatarIcon.stories.js +28 -12
  502. package/src/stories/Banner.stories.js +28 -21
  503. package/src/stories/Breadcrumb.stories.js +10 -10
  504. package/src/stories/Button.stories.js +112 -38
  505. package/src/stories/ButtonIcon.stories.js +4 -13
  506. package/src/stories/Card.stories.js +126 -91
  507. package/src/stories/CardCompany.stories.js +50 -32
  508. package/src/stories/CardData.stories.js +2 -1
  509. package/src/stories/CardImage.stories.js +15 -12
  510. package/src/stories/CardNumber.stories.js +4 -25
  511. package/src/stories/CardProject.stories.js +1 -1
  512. package/src/stories/Carousel.stories.js +4 -3
  513. package/src/stories/ChartBar.stories.js +68 -51
  514. package/src/stories/ChartLine.stories.js +32 -23
  515. package/src/stories/ChartMultiLine.stories.js +59 -0
  516. package/src/stories/ChartRainbow.stories.js +8 -25
  517. package/src/stories/ChatsContact.stories.js +90 -0
  518. package/src/stories/ChatsDashboardTagLive.stories.js +24 -0
  519. package/src/stories/ChatsHeader.stories.js +93 -0
  520. package/src/stories/ChatsMessage.stories.js +246 -0
  521. package/src/stories/ChatsNavbar.stories.js +65 -0
  522. package/src/stories/ChatsUserAvatar.stories.js +35 -0
  523. package/src/stories/Checkbox.stories.js +24 -17
  524. package/src/stories/CircleProgressBar.stories.js +1 -7
  525. package/src/stories/Collapse.stories.js +97 -0
  526. package/src/stories/Comment.stories.js +13 -10
  527. package/src/stories/DataArea.stories.js +22 -18
  528. package/src/stories/DatePicker.stories.js +28 -21
  529. package/src/stories/Dropdown.stories.js +8 -2
  530. package/src/stories/EmojiPicker.stories.js +59 -0
  531. package/src/stories/Grid.stories.js +6 -1
  532. package/src/stories/Icon.stories.js +4 -13
  533. package/src/stories/IconLoading.stories.js +126 -0
  534. package/src/stories/ImportCard.stories.js +6 -1
  535. package/src/stories/Input.stories.js +13 -7
  536. package/src/stories/Introduction.mdx +196 -0
  537. package/src/stories/Label.stories.js +4 -9
  538. package/src/stories/LanguageSelect.stories.js +3 -1
  539. package/src/stories/Modal.stories.js +22 -5
  540. package/src/stories/ModalUpload.stories.js +17 -21
  541. package/src/stories/MoodRating.stories.js +5 -4
  542. package/src/stories/MultiSelect.stories.js +2 -1
  543. package/src/stories/Pagination.stories.js +19 -5
  544. package/src/stories/ProgressBar.stories.js +1 -1
  545. package/src/stories/Radio.stories.js +6 -4
  546. package/src/stories/SelectSmart.mdx +138 -0
  547. package/src/stories/SelectSmart.stories.js +144 -117
  548. package/src/stories/Sidebar.stories.js +3 -2
  549. package/src/stories/SidebarPrimary.stories.js +54 -40
  550. package/src/stories/SkeletonLoading.stories.js +15 -4
  551. package/src/stories/Slider.stories.js +6 -8
  552. package/src/stories/StarRating.stories.js +6 -9
  553. package/src/stories/Switch.stories.js +2 -1
  554. package/src/stories/Table.stories.js +1 -1
  555. package/src/stories/TabsExpanded.stories.js +30 -27
  556. package/src/stories/Tag.stories.js +23 -24
  557. package/src/stories/TextArea.stories.js +2 -0
  558. package/src/stories/ToolTip.stories.js +10 -13
  559. package/src/stories/TransitionRipple.stories.js +34 -0
  560. package/src/stories/UploadArea.stories.js +22 -31
  561. package/src/stories/assets/images/un.png +0 -0
  562. package/src/stories/assets/images/unnnic.png +0 -0
  563. package/src/stories/assets/images/unnnicPortrait.png +0 -0
  564. package/src/stories/assets/videos/weni.mp4 +0 -0
  565. package/src/utils/call.js +37 -14
  566. package/src/utils/colorTokens.js +2 -0
  567. package/src/utils/icons.js +352 -353
  568. package/src/utils/plugins/i18n.js +2 -7
  569. package/.eslintrc.js +0 -20
  570. package/babel.config.js +0 -16
  571. package/dist/demo.html +0 -10
  572. package/dist/img/u1F601.0f41115c.png +0 -0
  573. package/dist/img/u1F610.a415c879.png +0 -0
  574. package/dist/img/u1F625.01b659bc.png +0 -0
  575. package/dist/img/u1F641.f740da74.png +0 -0
  576. package/dist/img/u1F645.1ff7ba1e.png +0 -0
  577. package/dist/scss/colors.scss +0 -241
  578. package/dist/scss/fonts.scss +0 -123
  579. package/dist/scss/grid.scss +0 -52
  580. package/dist/scss/spacing.scss +0 -103
  581. package/dist/scss/unnnic.scss +0 -10
  582. package/dist/unnnic.common.js +0 -44493
  583. package/dist/unnnic.common.js.map +0 -1
  584. package/dist/unnnic.css +0 -1
  585. package/dist/unnnic.umd.js.map +0 -1
  586. package/dist/unnnic.umd.min.js +0 -292
  587. package/dist/unnnic.umd.min.js.map +0 -1
  588. package/jest.config.js +0 -3
  589. package/package-lock.json +0 -60419
  590. package/public/index.html +0 -17
  591. package/src/assets/logo.png +0 -0
  592. package/src/components/AutocompleteSelect/AutocompleteSelect.vue +0 -338
  593. package/src/components/CardFlow/CardFlow.vue +0 -175
  594. package/src/components/Input/Autocomplete.vue +0 -325
  595. package/src/components/InputNext/InputNext.vue +0 -260
  596. package/src/components/ModalNext/ModalNext.vue +0 -396
  597. package/src/components/Select/Select.vue +0 -409
  598. package/src/components/SelectListItem/SelectListItem.vue +0 -125
  599. package/src/components/TextEditor/TextEditor.vue +0 -530
  600. package/src/stories/Autocomplete.stories.js +0 -55
  601. package/src/stories/AutocompleteSelect.stories.js +0 -45
  602. package/src/stories/CardFlow.stories.js +0 -44
  603. package/src/stories/Colors.stories.mdx +0 -91
  604. package/src/stories/DropdownSkeleton.stories.js +0 -15
  605. package/src/stories/Font.stories.mdx +0 -80
  606. package/src/stories/InputNext.stories.js +0 -109
  607. package/src/stories/Introduction.stories.mdx +0 -207
  608. package/src/stories/ModalNext.stories.js +0 -171
  609. package/src/stories/NavbarChats.stories.js +0 -68
  610. package/src/stories/Select.stories.js +0 -62
  611. package/src/stories/SelectListItem.stories.js +0 -63
  612. package/src/stories/TextEditor.stories.js +0 -80
  613. package/vue.config.js +0 -26
@@ -14,7 +14,7 @@
14
14
  v-on:drop.stop.prevent="drop"
15
15
  @click="() => this.$refs.file.click()"
16
16
  >
17
- <unnnic-icon-svg
17
+ <UnnnicIconSvg
18
18
  class="unnnic-upload-area__dropzone__icon"
19
19
  icon="upload-bottom-1"
20
20
  :scheme="hasError ? 'feedback-red' : 'brand-weni'"
@@ -35,14 +35,17 @@
35
35
  <span
36
36
  :class="[
37
37
  'unnnic-upload-area__dropzone__content__subtitle',
38
- { 'unnnic-upload-area__dropzone__content__subtitle__error': hasError },
38
+ {
39
+ 'unnnic-upload-area__dropzone__content__subtitle__error':
40
+ hasError,
41
+ },
39
42
  ]"
40
- :title='formattedSupportedFormats'
43
+ :title="formattedSupportedFormats"
41
44
  >
42
45
  {{
43
46
  subtitle ||
44
47
  `${$t(
45
- `upload_area${hasError ? '.invalid' : ''}.subtitle`
48
+ `upload_area${hasError ? '.invalid' : ''}.subtitle`,
46
49
  )} ${formattedSupportedFormats}`
47
50
  }}
48
51
  </span>
@@ -53,11 +56,14 @@
53
56
  :accept="supportedFormats"
54
57
  :multiple="acceptMultiple"
55
58
  @input="handleFileChange"
56
- style="display: none;"
59
+ style="display: none"
57
60
  />
58
61
  </div>
59
- <div v-if="currentFiles.length > 0" class="unnnic-upload-area__cards">
60
- <unnnic-import-card
62
+ <div
63
+ v-if="currentFiles.length > 0"
64
+ class="unnnic-upload-area__cards"
65
+ >
66
+ <UnnnicImportCard
61
67
  v-for="(file, index) in currentFiles"
62
68
  :key="index"
63
69
  :title="file.name"
@@ -76,7 +82,7 @@
76
82
  </template>
77
83
 
78
84
  <script>
79
- import mime from 'mime-types';
85
+ import mime from 'mime';
80
86
 
81
87
  import UnnnicIconSvg from '../Icon.vue';
82
88
  import UnnnicImportCard from '../ImportCard/ImportCard.vue';
@@ -153,7 +159,9 @@ export default {
153
159
  },
154
160
  computed: {
155
161
  formattedSupportedFormats() {
156
- const formats = this.supportedFormats.split(',').map((format) => format.toUpperCase());
162
+ const formats = this.supportedFormats
163
+ .split(',')
164
+ .map((format) => format.toUpperCase());
157
165
 
158
166
  return formats.join(', ');
159
167
  },
@@ -211,7 +219,13 @@ export default {
211
219
  return true;
212
220
  },
213
221
  validFormat(files) {
214
- const formats = this.supportedFormats.split(',').map((format) => format.trim());
222
+ if (this.supportedFormats === '*') {
223
+ return true;
224
+ }
225
+
226
+ const formats = this.supportedFormats
227
+ .split(',')
228
+ .map((format) => format.trim());
215
229
 
216
230
  const isValid = Array.from(files).find((file) => {
217
231
  const fileName = file.name.toLowerCase();
@@ -219,7 +233,7 @@ export default {
219
233
  const fileExtension = `.${fileName.split('.').pop()}`;
220
234
 
221
235
  const isValidFileExtension = formats.includes(fileExtension);
222
- const isValidFileType = fileType === mime.lookup(fileName);
236
+ const isValidFileType = fileType === mime.getType(fileName);
223
237
 
224
238
  return isValidFileExtension && isValidFileType;
225
239
  });
@@ -293,8 +307,9 @@ export default {
293
307
  checkDragAndDropSupport() {
294
308
  const { dropzone } = this.$refs;
295
309
  return (
296
- 'FileReader' in window
297
- && ('draggable' in dropzone || ('ondragstart' in dropzone && 'ondrop' in dropzone))
310
+ 'FileReader' in window &&
311
+ ('draggable' in dropzone ||
312
+ ('ondragstart' in dropzone && 'ondrop' in dropzone))
298
313
  );
299
314
  },
300
315
  },
@@ -305,7 +320,9 @@ export default {
305
320
  @import '../../assets/scss/unnnic.scss';
306
321
 
307
322
  @function borderDashed($color) {
308
- @return url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23#{str-slice(quote($color), 2)}' stroke-width='4' stroke-dasharray='4%2c 12' stroke-dashoffset='9' stroke-linecap='square'/%3e%3c/svg%3e");
323
+ $colorString: unquote('' + $color);
324
+ $cleanColor: str-slice($colorString, 2);
325
+ @return url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23#{$cleanColor}' stroke-width='4' stroke-dasharray='4%2c 12' stroke-dashoffset='9' stroke-linecap='square'/%3e%3c/svg%3e");
309
326
  }
310
327
 
311
328
  .unnnic-upload-area {
@@ -1,2 +1 @@
1
- // eslint-disable-next-line import/prefer-default-export
2
1
  export const unnnicFontSize = 16; // px
@@ -1,10 +1,15 @@
1
1
  <template>
2
- <div :class="[gridClass, 'grid-example-container']">
3
- <div v-for="i in gridNumber" :key="i" :class="[gridItemClass,'grid-example']" />
4
- </div>
2
+ <div :class="[gridClass, 'grid-example-container']">
3
+ <div
4
+ v-for="i in gridNumber"
5
+ :key="i"
6
+ :class="[gridItemClass, 'grid-example']"
7
+ />
8
+ </div>
5
9
  </template>
6
10
 
7
11
  <script>
12
+ /* eslint-disable vue/multi-word-component-names */
8
13
  export default {
9
14
  name: 'Grid',
10
15
  props: {
@@ -31,15 +36,15 @@ export default {
31
36
  </script>
32
37
 
33
38
  <style lang="scss" scoped>
34
- @import '../../assets/scss/unnnic.scss';
39
+ @import '../../assets/scss/unnnic.scss';
35
40
 
36
- .grid-example {
37
- background-color: $unnnic-color-brand-weni;
41
+ .grid-example {
42
+ background-color: $unnnic-color-brand-weni;
38
43
 
39
- &-container {
40
- background-color: $unnnic-color-neutral-dark ;
41
- width: 100%;
42
- height: 100vh;
43
- }
44
+ &-container {
45
+ background-color: $unnnic-color-neutral-dark;
46
+ width: 100%;
47
+ height: 100vh;
44
48
  }
49
+ }
45
50
  </style>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="20"
5
+ height="20"
6
+ fill="currentColor"
7
+ >
8
+ <path
9
+ d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
10
+ />
11
+ </svg>
12
+ </template>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="20"
5
+ height="17"
6
+ fill="currentColor"
7
+ >
8
+ <path
9
+ d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
10
+ />
11
+ </svg>
12
+ </template>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="18"
5
+ height="20"
6
+ fill="currentColor"
7
+ >
8
+ <path
9
+ d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
10
+ />
11
+ </svg>
12
+ </template>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="20"
5
+ height="20"
6
+ fill="currentColor"
7
+ >
8
+ <path
9
+ d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
10
+ />
11
+ </svg>
12
+ </template>
@@ -0,0 +1,19 @@
1
+ <!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
2
+ <template>
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ xmlns:xlink="http://www.w3.org/1999/xlink"
6
+ aria-hidden="true"
7
+ role="img"
8
+ class="iconify iconify--mdi"
9
+ width="24"
10
+ height="24"
11
+ preserveAspectRatio="xMidYMid meet"
12
+ viewBox="0 0 24 24"
13
+ >
14
+ <path
15
+ d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
16
+ fill="currentColor"
17
+ ></path>
18
+ </svg>
19
+ </template>
@@ -1,8 +1,6 @@
1
- import Vue from 'vue';
2
1
  import { unnnicFontSize as fontSize } from './config';
3
2
  import formElement from './FormElement/FormElement.vue';
4
3
  import input from './Input/Input.vue';
5
- import inputNext from './InputNext/InputNext.vue';
6
4
  import inputDatePicker from './InputDatePicker/InputDatePicker.vue';
7
5
  import button from './Button/Button.vue';
8
6
  import buttonIcon from './Button/ButtonIcon.vue';
@@ -16,33 +14,34 @@ import dropdown from './Dropdown/Dropdown.vue';
16
14
  import dropdownItem from './Dropdown/DropdownItem.vue';
17
15
  import avatarIcon from './AvatarIcon/AvatarIcon.vue';
18
16
  import icon from './Icon.vue';
17
+ import iconLoading from './IconLoading/IconLoading.vue';
19
18
  import toolTip from './ToolTip/ToolTip.vue';
20
19
  import card from './Card/Card.vue';
21
20
  import cardCompany from './Card/CardCompany.vue';
22
21
  import cardData from './Card/CardData.vue';
23
22
  import cardImage from './CardImage/CardImage.vue';
24
- import cardFlow from './CardFlow/CardFlow.vue';
23
+ // import cardFlow from './CardFlow/CardFlow.vue';
25
24
  import cardProject from './CardProject/CardProject.vue';
26
25
  import cardInformation from './CardInformation/CardInformation.vue';
27
26
  import checkbox from './Checkbox/Checkbox.vue';
27
+ import collapse from './Collapse/Collapse.vue';
28
28
  import radio from './Radio/Radio.vue';
29
29
  import languageSelect from './Dropdown/LanguageSelect.vue';
30
30
  import modal from './Modal/Modal.vue';
31
- import modalNext from './ModalNext/ModalNext.vue';
32
31
  import modalUpload from './ModalUpload/ModalUpload.vue';
33
32
  import call from '../utils/call';
34
33
  import selectSmart from './SelectSmart/SelectSmart.vue';
35
- import select from './Select/Select.vue';
34
+ // import select from './Select/Select.vue';
36
35
  import selectItem from './Select/SelectItem.vue';
37
- import selectListItem from './SelectListItem/SelectListItem.vue';
36
+ // import selectListItem from './SelectListItem/SelectListItem.vue';
38
37
  import multiSelect from './MultiSelect/MultiSelect.vue';
39
- import alert from './Alert/Alert.vue';
40
- import autocomplete from './Input/Autocomplete.vue';
41
- import autocompleteSelect from './AutocompleteSelect/AutocompleteSelect.vue';
38
+ // import alert from './Alert/Alert.vue';
39
+ // import autocomplete from './Input/Autocomplete.vue';
40
+ // import autocompleteSelect from './AutocompleteSelect/AutocompleteSelect.vue';
42
41
  import tag from './Tag/Tag.vue';
43
42
  import accordion from './Accordion/Accordion.vue';
44
43
  import indicator from './Indicator/Indicator.vue';
45
- import skeletonLoading from './SkeletonLoading/SkeletonLoading.vue';
44
+ import skeletonLoading from './SkeletonLoading/SkeletonLoading.vue'; // TODO: Unbreak this component
46
45
  import carousel from './Carousel/Carousel.vue';
47
46
  import label from './Label/Label.vue';
48
47
  import tab from './Tab/Tab.vue';
@@ -64,17 +63,23 @@ import CardNumber from './CardNumber/CardNumber.vue';
64
63
  import chartRainbow from './ChartRainbow/ChartRainbow.vue';
65
64
  import chartBar from './ChartBar/ChartBar.vue';
66
65
  import chartLine from './ChartLine/ChartLine.vue';
67
- import textEditor from './TextEditor/TextEditor.vue';
68
66
  import moodRating from './MoodRating/MoodRating.vue';
69
67
  import starRating from './StarRating/StarRating.vue';
70
68
  import audioRecorder from './AudioRecorder/AudioRecorder.vue';
71
69
  import circleProgressBar from './CircleProgressBar/CircleProgressBar.vue';
72
70
  import progressBar from './ProgressBar/ProgressBar.vue';
71
+ import ChatsContact from './ChatsContact/ChatsContact.vue';
72
+ import ChatsDashboardTagLive from './ChatsDashboardTagLive/ChatsDashboardTagLive.vue';
73
+ import ChatsHeader from './ChatsHeader/ChatsHeader.vue';
74
+ import ChatsMessage from './ChatsMessage/ChatsMessage.vue';
75
+ import ChatsNavbar from './ChatsNavbar/ChatsNavbar.vue';
76
+ import ChatsUserAvatar from './ChatsUserAvatar/ChatsUserAvatar.vue';
77
+ import ChartMultiLine from './ChartMultiLine/ChartMultiLine.vue';
78
+ import EmojiPicker from './EmojiPicker/EmojiPicker.vue';
73
79
 
74
- const components = {
80
+ export const components = {
75
81
  unnnicFormElement: formElement,
76
82
  unnnicInput: input,
77
- unnnicInputNext: inputNext,
78
83
  unnnicInputDatePicker: inputDatePicker,
79
84
  unnnicButton: button,
80
85
  unnnicButtonIcon: buttonIcon,
@@ -87,6 +92,7 @@ const components = {
87
92
  unnnicAvatarIcon: avatarIcon,
88
93
  unnnicIcon: icon,
89
94
  unnnicIconSvg: icon,
95
+ unnnicIconLoading: iconLoading,
90
96
  unnnicDropdown: dropdown,
91
97
  unnnicDropdownItem: dropdownItem,
92
98
  unnnicToolTip: toolTip,
@@ -94,23 +100,23 @@ const components = {
94
100
  unnnicCardCompany: cardCompany,
95
101
  unnnicCardData: cardData,
96
102
  unnnicCardImage: cardImage,
97
- unnnicCardFlow: cardFlow,
103
+ // unnnicCardFlow: cardFlow,
98
104
  unnnicCardProject: cardProject,
99
105
  unnnicCardInformation: cardInformation,
100
106
  unnnicCheckbox: checkbox,
107
+ unnnicCollapse: collapse,
101
108
  unnnicRadio: radio,
102
109
  unnnicLanguageSelect: languageSelect,
103
110
  unnnicModal: modal,
104
- unnnicModalNext: modalNext,
105
111
  unnnicModalUpload: modalUpload,
106
112
  unnnicSelectSmart: selectSmart,
107
- unnnicSelect: select,
113
+ // unnnicSelect: select,
108
114
  unnnicSelectItem: selectItem,
109
- unnnicSelectListItem: selectListItem,
115
+ // unnnicSelectListItem: selectListItem,
110
116
  unnnicMultiSelect: multiSelect,
111
117
  unnnicAlert: alert,
112
- unnnicAutocomplete: autocomplete,
113
- unnnicAutocompleteSelect: autocompleteSelect,
118
+ // unnnicAutocomplete: autocomplete,
119
+ // unnnicAutocompleteSelect: autocompleteSelect,
114
120
  unnnicTag: tag,
115
121
  unnnicAccordion: accordion,
116
122
  unnnicIndicator: indicator,
@@ -136,22 +142,24 @@ const components = {
136
142
  unnnicChartRainbow: chartRainbow,
137
143
  unnnicChartBar: chartBar,
138
144
  unnnicChartLine: chartLine,
139
- unnnicTextEditor: textEditor,
140
145
  unnnicMoodRating: moodRating,
141
146
  unnnicStarRating: starRating,
142
147
  unnnicAudioRecorder: audioRecorder,
143
148
  unnnicCircleProgressBar: circleProgressBar,
144
149
  unnnicProgressBar: progressBar,
150
+ unnnicChatsContact: ChatsContact,
151
+ unnnicChatsDashboardTagLive: ChatsDashboardTagLive,
152
+ unnnicChatsHeader: ChatsHeader,
153
+ unnnicChatsMessage: ChatsMessage,
154
+ unnnicChatsNavbar: ChatsNavbar,
155
+ unnnicChatsUserAvatar: ChatsUserAvatar,
156
+ unnnicChartMultiLine: ChartMultiLine,
157
+ unnnicEmojiPicker: EmojiPicker,
145
158
  };
146
159
 
147
- Object.keys(components).forEach((name) => {
148
- Vue.component(name, components[name]);
149
- });
150
-
151
160
  export const unnnicFontSize = fontSize;
152
161
  export const unnnicFormElement = formElement;
153
162
  export const unnnicInput = input;
154
- export const unnnicInputNext = inputNext;
155
163
  export const unnnicInputDatePicker = inputDatePicker;
156
164
  export const unnnicButton = button;
157
165
  export const unnnicButtonIcon = buttonIcon;
@@ -166,30 +174,31 @@ export const unnnicDropdownItem = dropdownItem;
166
174
  export const unnnicAvatarIcon = avatarIcon;
167
175
  export const unnnicIcon = icon;
168
176
  export const unnnicIconSvg = icon;
177
+ export const unnnicIconLoading = iconLoading;
169
178
  export const unnnicToolTip = toolTip;
170
179
  export const unnnicCard = card;
171
180
  export const unnnicCardCompany = cardCompany;
172
181
  export const unnnicCardData = cardData;
173
182
  export const unnnicCardImage = cardImage;
174
- export const unnnicCardFlow = cardFlow;
183
+ // export const unnnicCardFlow = cardFlow;
175
184
  export const unnnicCardProject = cardProject;
176
185
  export const unnnicCardInformation = cardInformation;
177
186
  export const unnnicCheckbox = checkbox;
187
+ export const unnnicCollapse = collapse;
178
188
  export const unnnicRadio = radio;
179
189
  export const unnniclanguageSelect = languageSelect;
180
190
  export const unnnicModal = modal;
181
- export const unnnicModalNext = modalNext;
182
191
  export const unnnicModalUpload = modalUpload;
183
192
  export const unnnicSelectSmart = selectSmart;
184
- export const unnnicSelect = select;
193
+ // export const unnnicSelect = select;
185
194
  export const unnnicSelectItem = selectItem;
186
- export const unnnicSelectListItem = selectListItem;
195
+ // export const unnnicSelectListItem = selectListItem;
187
196
  export const unnnicMultiSelect = multiSelect;
188
197
  export const unnnicAlert = alert;
189
198
  export const unnnicCallAlert = call.callAlert;
190
199
  export const unnnicCallModal = call.callModal;
191
- export const unnnicAutocomplete = autocomplete;
192
- export const unnnicAutocompleteSelect = autocompleteSelect;
200
+ // export const unnnicAutocomplete = autocomplete;
201
+ // export const unnnicAutocompleteSelect = autocompleteSelect;
193
202
  export const unnnicTag = tag;
194
203
  export const unnnicAccordion = accordion;
195
204
  export const unnnicIndicator = indicator;
@@ -215,9 +224,16 @@ export const unnnicCardNumber = CardNumber;
215
224
  export const unnnicChartRainbow = chartRainbow;
216
225
  export const unnnicChartBar = chartBar;
217
226
  export const unnnicChartLine = chartLine;
218
- export const unnnicTextEditor = textEditor;
219
227
  export const unnnicMoodRating = moodRating;
220
228
  export const unnnicStarRating = starRating;
221
229
  export const unnnicAudioRecorder = audioRecorder;
222
230
  export const unnnicCircleProgressBar = circleProgressBar;
223
231
  export const unnnicProgressBar = progressBar;
232
+ export const unnnicChatsContact = ChatsContact;
233
+ export const unnnicChatsDashboardTagLive = ChatsDashboardTagLive;
234
+ export const unnnicChatsHeader = ChatsHeader;
235
+ export const unnnicChatsMessage = ChatsMessage;
236
+ export const unnnicChatsNavbar = ChatsNavbar;
237
+ export const unnnicChatsUserAvatar = ChatsUserAvatar;
238
+ export const unnnicChartMultiLine = ChartMultiLine;
239
+ export const unnnicEmojiPicker = EmojiPicker;
package/src/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import { components } from '@/components';
2
+
3
+ export default {
4
+ install(Vue) {
5
+ Object.keys(components).forEach((name) => {
6
+ Vue.component(name, components[name]);
7
+ });
8
+ },
9
+ ...components,
10
+ };
@@ -1,19 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Drag your file here or",
5
- "highlight": "search it"
6
- },
7
- "invalid": {
8
- "subtitle": "File not supported, select supported formats:"
9
- },
10
- "subtitle": "Supported formats:"
11
- },
12
- "import_card": {
13
- "importing": "Importing"
14
- },
15
- "select_smart": {
16
- "without_results": "No results found",
17
- "without_multiple_selected": "No option selected"
18
- }
19
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Drag your file here or",
5
+ "highlight": "search it"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "File not supported, select supported formats:"
9
+ },
10
+ "subtitle": "Supported formats:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importing"
14
+ }
15
+ }
@@ -1,19 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Arrastra tu archivo aquí o",
5
- "highlight": "búscalo"
6
- },
7
- "invalid": {
8
- "subtitle": "Archivo no compatible, seleccione los formatos compatibles:"
9
- },
10
- "subtitle": "Formatos compatibles:"
11
- },
12
- "import_card": {
13
- "importing": "Importando"
14
- },
15
- "select_smart": {
16
- "without_results": "Ningún resultado encontrado",
17
- "without_multiple_selected": "Ninguna opción seleccionada"
18
- }
19
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Arrastra tu archivo aquí o",
5
+ "highlight": "búscalo"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "Archivo no compatible, seleccione los formatos compatibles:"
9
+ },
10
+ "subtitle": "Formatos compatibles:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importando"
14
+ }
15
+ }
@@ -1,19 +1,15 @@
1
- {
2
- "upload_area": {
3
- "title": {
4
- "text": "Arraste seu arquivo aqui, ou",
5
- "highlight": "procure-o"
6
- },
7
- "invalid": {
8
- "subtitle": "Arquivo não compatível, selecione formatos suportados:"
9
- },
10
- "subtitle": "Formatos suportados:"
11
- },
12
- "import_card": {
13
- "importing": "Importando"
14
- },
15
- "select_smart": {
16
- "without_results": "Nenhum resultado encontrado",
17
- "without_multiple_selected": "Nenhuma opção selecionada"
18
- }
19
- }
1
+ {
2
+ "upload_area": {
3
+ "title": {
4
+ "text": "Arraste seu arquivo aqui, ou",
5
+ "highlight": "procure-o"
6
+ },
7
+ "invalid": {
8
+ "subtitle": "Arquivo não compatível, selecione formatos suportados:"
9
+ },
10
+ "subtitle": "Formatos suportados:"
11
+ },
12
+ "import_card": {
13
+ "importing": "Importando"
14
+ }
15
+ }
package/src/main.js CHANGED
@@ -1,13 +1,8 @@
1
- import Vue from 'vue';
2
- import vClickOutside from 'v-click-outside';
3
- import i18n from './utils/plugins/i18n';
1
+ import { createApp } from 'vue';
4
2
  import App from './App.vue';
3
+ import Unnnic from './index.js';
5
4
 
6
- Vue.config.productionTip = false;
5
+ const app = createApp(App);
7
6
 
8
- Vue.use(vClickOutside);
9
-
10
- new Vue({
11
- i18n,
12
- render: (h) => h(App),
13
- }).$mount('#app');
7
+ app.use(Unnnic);
8
+ app.mount('#app');
@@ -0,0 +1,60 @@
1
+ import { get } from 'lodash';
2
+
3
+ export default {
4
+ props: {
5
+ locale: {
6
+ type: String,
7
+ },
8
+ translations: {
9
+ type: Object,
10
+ },
11
+ },
12
+
13
+ methods: {
14
+ i18n(...args) {
15
+ const [key, defaults] = args;
16
+
17
+ const locale = (this.locale || get(this, '$i18n.locale'))?.toLowerCase();
18
+
19
+ let text = get(
20
+ this.translations,
21
+ `${key}.${locale}`,
22
+ get(this.translations, key),
23
+ );
24
+
25
+ if (!text) {
26
+ text = get(get(this.defaultTranslations, key), locale, defaults);
27
+ }
28
+
29
+ if (text?.includes('|') && typeof args[1] === 'number') {
30
+ const count = args[1];
31
+ const pluralization = text.split('|');
32
+
33
+ if (pluralization.length === 3) {
34
+ text = pluralization[count] || pluralization[2];
35
+ } else if (pluralization.length === 2) {
36
+ text = count === 1 ? pluralization[0] : pluralization[1];
37
+ }
38
+ }
39
+
40
+ let vars = {};
41
+
42
+ Object.values(args)
43
+ .slice(1)
44
+ .forEach((argument) => {
45
+ if (!(argument instanceof Array) && argument instanceof Object) {
46
+ vars = argument;
47
+ }
48
+ });
49
+
50
+ Object.keys(vars).forEach((varName) => {
51
+ text = text?.replaceAll(
52
+ new RegExp(`{ *${varName} *}`, 'g'),
53
+ vars[varName],
54
+ );
55
+ });
56
+
57
+ return text;
58
+ },
59
+ },
60
+ };