@nmorph/nmorph-ui-kit 2.2.9 → 2.2.12

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 (494) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/assets/icons/add-location.svg.js +35 -0
  3. package/dist/assets/icons/aim.svg.js +28 -0
  4. package/dist/assets/icons/alarm-clock.svg.js +28 -0
  5. package/dist/assets/icons/apple.svg.js +21 -0
  6. package/dist/assets/icons/archive.svg.js +28 -0
  7. package/dist/assets/icons/arrow-down.svg.js +21 -0
  8. package/dist/assets/icons/arrow-left.svg.js +21 -0
  9. package/dist/assets/icons/arrow-right.svg.js +21 -0
  10. package/dist/assets/icons/arrow-up.svg.js +21 -0
  11. package/dist/assets/icons/audio.svg.js +21 -0
  12. package/dist/assets/icons/avatar.svg.js +21 -0
  13. package/dist/assets/icons/back.svg.js +28 -0
  14. package/dist/assets/icons/bell-filled.svg.js +21 -0
  15. package/dist/assets/icons/bell.svg.js +35 -0
  16. package/dist/assets/icons/bicycle.svg.js +15 -0
  17. package/dist/assets/icons/bottom-left.svg.js +28 -0
  18. package/dist/assets/icons/bottom-right.svg.js +28 -0
  19. package/dist/assets/icons/bottom.svg.js +21 -0
  20. package/dist/assets/icons/burger.svg.js +21 -0
  21. package/dist/assets/icons/calendar.svg.js +21 -0
  22. package/dist/assets/icons/camera.svg.js +21 -0
  23. package/dist/assets/icons/caret-bottom.svg.js +21 -0
  24. package/dist/assets/icons/caret-left.svg.js +21 -0
  25. package/dist/assets/icons/caret-right.svg.js +21 -0
  26. package/dist/assets/icons/caret-top.svg.js +21 -0
  27. package/dist/assets/icons/cellphone.svg.js +21 -0
  28. package/dist/assets/icons/chat-dot-round.svg.js +28 -0
  29. package/dist/assets/icons/chat-dot-square.svg.js +28 -0
  30. package/dist/assets/icons/chat-line-round.svg.js +28 -0
  31. package/dist/assets/icons/chat-line-square.svg.js +28 -0
  32. package/dist/assets/icons/chat-round.svg.js +21 -0
  33. package/dist/assets/icons/chat-square.svg.js +21 -0
  34. package/dist/assets/icons/check.svg.js +21 -0
  35. package/dist/assets/icons/checked.svg.js +21 -0
  36. package/dist/assets/icons/cherry.svg.js +21 -0
  37. package/dist/assets/icons/chevron-double-down.svg.js +21 -0
  38. package/dist/assets/icons/chevron-down.svg.js +21 -0
  39. package/dist/assets/icons/chrome-filled.svg.js +36 -0
  40. package/dist/assets/icons/circle-check-filled.svg.js +21 -0
  41. package/dist/assets/icons/circle-check.svg.js +28 -0
  42. package/dist/assets/icons/circle-close-filled.svg.js +21 -0
  43. package/dist/assets/icons/circle-close.svg.js +28 -0
  44. package/dist/assets/icons/circle-plus-filled.svg.js +21 -0
  45. package/dist/assets/icons/circle-plus.svg.js +35 -0
  46. package/dist/assets/icons/clock.svg.js +35 -0
  47. package/dist/assets/icons/close.svg.js +21 -0
  48. package/dist/assets/icons/cloudy.svg.js +21 -0
  49. package/dist/assets/icons/code.svg.js +21 -0
  50. package/dist/assets/icons/coffee-cup.svg.js +21 -0
  51. package/dist/assets/icons/coffee.svg.js +21 -0
  52. package/dist/assets/icons/coin.svg.js +35 -0
  53. package/dist/assets/icons/collection-tag.svg.js +21 -0
  54. package/dist/assets/icons/collection.svg.js +28 -0
  55. package/dist/assets/icons/compass.svg.js +28 -0
  56. package/dist/assets/icons/connection.svg.js +28 -0
  57. package/dist/assets/icons/coordinate.svg.js +28 -0
  58. package/dist/assets/icons/copy-document.svg.js +28 -0
  59. package/dist/assets/icons/copy.svg.js +21 -0
  60. package/dist/assets/icons/cpu.svg.js +28 -0
  61. package/dist/assets/icons/credit-card.svg.js +28 -0
  62. package/dist/assets/icons/crop.svg.js +28 -0
  63. package/dist/assets/icons/cross.svg.js +21 -0
  64. package/dist/assets/icons/delete-filled.svg.js +21 -0
  65. package/dist/assets/icons/delete.svg.js +21 -0
  66. package/dist/assets/icons/dessert.svg.js +21 -0
  67. package/dist/assets/icons/discount.svg.js +28 -0
  68. package/dist/assets/icons/doc.svg.js +21 -0
  69. package/dist/assets/icons/document-add.svg.js +21 -0
  70. package/dist/assets/icons/document-checked.svg.js +21 -0
  71. package/dist/assets/icons/document-copy.svg.js +21 -0
  72. package/dist/assets/icons/document-delete.svg.js +21 -0
  73. package/dist/assets/icons/document-remove.svg.js +21 -0
  74. package/dist/assets/icons/document.svg.js +21 -0
  75. package/dist/assets/icons/download.svg.js +21 -0
  76. package/dist/assets/icons/edit-pen.svg.js +21 -0
  77. package/dist/assets/icons/edit.svg.js +28 -0
  78. package/dist/assets/icons/enlarge.svg.js +18 -0
  79. package/dist/assets/icons/error.svg.js +28 -0
  80. package/dist/assets/icons/exit-square.svg.js +31 -0
  81. package/dist/assets/icons/exit.svg.js +28 -0
  82. package/dist/assets/icons/expand.svg.js +21 -0
  83. package/dist/assets/icons/eye-blocked.svg.js +28 -0
  84. package/dist/assets/icons/eye.svg.js +21 -0
  85. package/dist/assets/icons/failed.svg.js +21 -0
  86. package/dist/assets/icons/files.svg.js +21 -0
  87. package/dist/assets/icons/film.svg.js +28 -0
  88. package/dist/assets/icons/filter.svg.js +21 -0
  89. package/dist/assets/icons/finished.svg.js +21 -0
  90. package/dist/assets/icons/flag.svg.js +21 -0
  91. package/dist/assets/icons/fold.svg.js +21 -0
  92. package/dist/assets/icons/folder-add.svg.js +21 -0
  93. package/dist/assets/icons/folder-checked.svg.js +21 -0
  94. package/dist/assets/icons/folder-delete.svg.js +21 -0
  95. package/dist/assets/icons/folder-opened.svg.js +21 -0
  96. package/dist/assets/icons/folder.svg.js +21 -0
  97. package/dist/assets/icons/food.svg.js +21 -0
  98. package/dist/assets/icons/fork-spoon.svg.js +21 -0
  99. package/dist/assets/icons/full-screen.svg.js +21 -0
  100. package/dist/assets/icons/goblet-full.svg.js +21 -0
  101. package/dist/assets/icons/gold-medal.svg.js +29 -0
  102. package/dist/assets/icons/goods-filled.svg.js +21 -0
  103. package/dist/assets/icons/goods.svg.js +21 -0
  104. package/dist/assets/icons/google.svg.js +42 -0
  105. package/dist/assets/icons/grape.svg.js +21 -0
  106. package/dist/assets/icons/grid.svg.js +21 -0
  107. package/dist/assets/icons/guide.svg.js +28 -0
  108. package/dist/assets/icons/handbag.svg.js +22 -0
  109. package/dist/assets/icons/headset.svg.js +21 -0
  110. package/dist/assets/icons/histogram.svg.js +21 -0
  111. package/dist/assets/icons/hot-water.svg.js +21 -0
  112. package/dist/assets/icons/house.svg.js +21 -0
  113. package/dist/assets/icons/ice-cream-round.svg.js +21 -0
  114. package/dist/assets/icons/ice-drink.svg.js +21 -0
  115. package/dist/assets/icons/image.svg.js +33 -0
  116. package/dist/assets/icons/info-filled.svg.js +21 -0
  117. package/dist/assets/icons/info.svg.js +28 -0
  118. package/dist/assets/icons/key.svg.js +21 -0
  119. package/dist/assets/icons/knife-fork.svg.js +21 -0
  120. package/dist/assets/icons/lightning.svg.js +28 -0
  121. package/dist/assets/icons/link.svg.js +21 -0
  122. package/dist/assets/icons/list.svg.js +21 -0
  123. package/dist/assets/icons/loader.svg.js +16 -0
  124. package/dist/assets/icons/loading.svg.js +32 -0
  125. package/dist/assets/icons/location-filled.svg.js +21 -0
  126. package/dist/assets/icons/location-information.svg.js +35 -0
  127. package/dist/assets/icons/location.svg.js +28 -0
  128. package/dist/assets/icons/lock.svg.js +28 -0
  129. package/dist/assets/icons/logo.svg.js +49 -0
  130. package/dist/assets/icons/lollipop.svg.js +21 -0
  131. package/dist/assets/icons/magic-stick.svg.js +21 -0
  132. package/dist/assets/icons/magnet.svg.js +21 -0
  133. package/dist/assets/icons/male.svg.js +35 -0
  134. package/dist/assets/icons/management.svg.js +21 -0
  135. package/dist/assets/icons/map-location.svg.js +28 -0
  136. package/dist/assets/icons/medal.svg.js +28 -0
  137. package/dist/assets/icons/memo.svg.js +36 -0
  138. package/dist/assets/icons/menu.svg.js +21 -0
  139. package/dist/assets/icons/message-box.svg.js +21 -0
  140. package/dist/assets/icons/message.svg.js +28 -0
  141. package/dist/assets/icons/mic.svg.js +21 -0
  142. package/dist/assets/icons/microphone.svg.js +21 -0
  143. package/dist/assets/icons/minus-thin.svg.js +25 -0
  144. package/dist/assets/icons/minus.svg.js +21 -0
  145. package/dist/assets/icons/money.svg.js +35 -0
  146. package/dist/assets/icons/monitor.svg.js +21 -0
  147. package/dist/assets/icons/moon.svg.js +21 -0
  148. package/dist/assets/icons/more-filled.svg.js +21 -0
  149. package/dist/assets/icons/more.svg.js +21 -0
  150. package/dist/assets/icons/mostly-cloudy.svg.js +21 -0
  151. package/dist/assets/icons/mouse.svg.js +28 -0
  152. package/dist/assets/icons/mug.svg.js +21 -0
  153. package/dist/assets/icons/mute-notification.svg.js +28 -0
  154. package/dist/assets/icons/mute.svg.js +28 -0
  155. package/dist/assets/icons/no-smoking.svg.js +21 -0
  156. package/dist/assets/icons/notebook.svg.js +28 -0
  157. package/dist/assets/icons/notification.svg.js +28 -0
  158. package/dist/assets/icons/office-building.svg.js +35 -0
  159. package/dist/assets/icons/operation.svg.js +21 -0
  160. package/dist/assets/icons/opportunity.svg.js +21 -0
  161. package/dist/assets/icons/orange.svg.js +21 -0
  162. package/dist/assets/icons/paperclip.svg.js +21 -0
  163. package/dist/assets/icons/partly-cloudy.svg.js +28 -0
  164. package/dist/assets/icons/pause.svg.js +21 -0
  165. package/dist/assets/icons/pear.svg.js +21 -0
  166. package/dist/assets/icons/phone-filled.svg.js +21 -0
  167. package/dist/assets/icons/phone.svg.js +21 -0
  168. package/dist/assets/icons/picture.svg.js +28 -0
  169. package/dist/assets/icons/pie-chart.svg.js +28 -0
  170. package/dist/assets/icons/place.svg.js +35 -0
  171. package/dist/assets/icons/platform.svg.js +21 -0
  172. package/dist/assets/icons/play.svg.js +21 -0
  173. package/dist/assets/icons/plus-thin.svg.js +25 -0
  174. package/dist/assets/icons/plus.svg.js +21 -0
  175. package/dist/assets/icons/pointer.svg.js +21 -0
  176. package/dist/assets/icons/position.svg.js +21 -0
  177. package/dist/assets/icons/postcard.svg.js +28 -0
  178. package/dist/assets/icons/pouring.svg.js +21 -0
  179. package/dist/assets/icons/present.svg.js +42 -0
  180. package/dist/assets/icons/price-tag.svg.js +28 -0
  181. package/dist/assets/icons/printer.svg.js +21 -0
  182. package/dist/assets/icons/promotion.svg.js +21 -0
  183. package/dist/assets/icons/quartz-watch.svg.js +36 -0
  184. package/dist/assets/icons/question-filled.svg.js +21 -0
  185. package/dist/assets/icons/rank.svg.js +21 -0
  186. package/dist/assets/icons/reading-lamp.svg.js +28 -0
  187. package/dist/assets/icons/reading.svg.js +28 -0
  188. package/dist/assets/icons/record.svg.js +21 -0
  189. package/dist/assets/icons/refresh-left.svg.js +21 -0
  190. package/dist/assets/icons/refresh-right.svg.js +21 -0
  191. package/dist/assets/icons/refresh.svg.js +21 -0
  192. package/dist/assets/icons/refrigerator.svg.js +21 -0
  193. package/dist/assets/icons/remove-filled.svg.js +21 -0
  194. package/dist/assets/icons/remove.svg.js +28 -0
  195. package/dist/assets/icons/right.svg.js +21 -0
  196. package/dist/assets/icons/rotate-left.svg.js +18 -0
  197. package/dist/assets/icons/rotate-right.svg.js +18 -0
  198. package/dist/assets/icons/scale-to-original.svg.js +21 -0
  199. package/dist/assets/icons/school.svg.js +35 -0
  200. package/dist/assets/icons/scissor.svg.js +21 -0
  201. package/dist/assets/icons/search.svg.js +21 -0
  202. package/dist/assets/icons/select.svg.js +21 -0
  203. package/dist/assets/icons/sell.svg.js +21 -0
  204. package/dist/assets/icons/semi-select.svg.js +21 -0
  205. package/dist/assets/icons/service.svg.js +21 -0
  206. package/dist/assets/icons/setting.svg.js +21 -0
  207. package/dist/assets/icons/share.svg.js +21 -0
  208. package/dist/assets/icons/ship.svg.js +21 -0
  209. package/dist/assets/icons/shop.svg.js +21 -0
  210. package/dist/assets/icons/shopping-bag.svg.js +28 -0
  211. package/dist/assets/icons/shopping-cart-full.svg.js +28 -0
  212. package/dist/assets/icons/shopping-cart.svg.js +21 -0
  213. package/dist/assets/icons/shrink.svg.js +18 -0
  214. package/dist/assets/icons/smoking.svg.js +28 -0
  215. package/dist/assets/icons/soccer.svg.js +21 -0
  216. package/dist/assets/icons/sold-out.svg.js +21 -0
  217. package/dist/assets/icons/sort-down.svg.js +21 -0
  218. package/dist/assets/icons/sort-up.svg.js +21 -0
  219. package/dist/assets/icons/sort.svg.js +21 -0
  220. package/dist/assets/icons/stamp.svg.js +21 -0
  221. package/dist/assets/icons/star-filled.svg.js +21 -0
  222. package/dist/assets/icons/star.svg.js +21 -0
  223. package/dist/assets/icons/stop.svg.js +21 -0
  224. package/dist/assets/icons/success-filled.svg.js +21 -0
  225. package/dist/assets/icons/success.svg.js +21 -0
  226. package/dist/assets/icons/sugar.svg.js +21 -0
  227. package/dist/assets/icons/sunny.svg.js +21 -0
  228. package/dist/assets/icons/sunrise.svg.js +21 -0
  229. package/dist/assets/icons/sunset.svg.js +21 -0
  230. package/dist/assets/icons/switch-button.svg.js +28 -0
  231. package/dist/assets/icons/switch-filled.svg.js +29 -0
  232. package/dist/assets/icons/switch.svg.js +21 -0
  233. package/dist/assets/icons/takeaway-box.svg.js +21 -0
  234. package/dist/assets/icons/ticket.svg.js +21 -0
  235. package/dist/assets/icons/tickets.svg.js +21 -0
  236. package/dist/assets/icons/time.svg.js +18 -0
  237. package/dist/assets/icons/timer.svg.js +35 -0
  238. package/dist/assets/icons/toilet-paper.svg.js +28 -0
  239. package/dist/assets/icons/tools.svg.js +21 -0
  240. package/dist/assets/icons/top-left.svg.js +28 -0
  241. package/dist/assets/icons/top-right.svg.js +28 -0
  242. package/dist/assets/icons/top.svg.js +21 -0
  243. package/dist/assets/icons/trend-charts.svg.js +21 -0
  244. package/dist/assets/icons/triangle-down.svg.js +21 -0
  245. package/dist/assets/icons/trophy-base.svg.js +22 -0
  246. package/dist/assets/icons/trophy.svg.js +21 -0
  247. package/dist/assets/icons/turn-off.svg.js +28 -0
  248. package/dist/assets/icons/umbrella.svg.js +21 -0
  249. package/dist/assets/icons/unlock.svg.js +28 -0
  250. package/dist/assets/icons/upload-filled.svg.js +21 -0
  251. package/dist/assets/icons/upload.svg.js +21 -0
  252. package/dist/assets/icons/user-filled.svg.js +21 -0
  253. package/dist/assets/icons/user.svg.js +21 -0
  254. package/dist/assets/icons/users.svg.js +28 -0
  255. package/dist/assets/icons/van.svg.js +21 -0
  256. package/dist/assets/icons/video-pause.svg.js +21 -0
  257. package/dist/assets/icons/video-play.svg.js +21 -0
  258. package/dist/assets/icons/video.svg.js +28 -0
  259. package/dist/assets/icons/view.svg.js +21 -0
  260. package/dist/assets/icons/wallet-filled.svg.js +21 -0
  261. package/dist/assets/icons/wallet.svg.js +35 -0
  262. package/dist/assets/icons/warn-triangle-filled.svg.js +22 -0
  263. package/dist/assets/icons/warning.svg.js +28 -0
  264. package/dist/assets/icons/watch.svg.js +35 -0
  265. package/dist/assets/icons/wind-power.svg.js +21 -0
  266. package/dist/assets/icons/zoom-in.svg.js +18 -0
  267. package/dist/assets/icons/zoom-out.svg.js +18 -0
  268. package/dist/components/basic/nmorph-button/NmorphButton.css +1 -0
  269. package/dist/components/basic/nmorph-button/NmorphButton.vue.js +71 -0
  270. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +57 -0
  271. package/dist/components/basic/nmorph-button/types.js +6 -0
  272. package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -0
  273. package/dist/components/basic/nmorph-icon/NmorphIcon.vue.js +26 -0
  274. package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +31 -0
  275. package/dist/components/basic/nmorph-icon/types.js +4 -0
  276. package/dist/components/basic/nmorph-link/NmorphLink.css +1 -0
  277. package/dist/components/basic/nmorph-link/NmorphLink.vue.js +46 -0
  278. package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +30 -0
  279. package/dist/components/basic/nmorph-link/types.js +4 -0
  280. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +38 -0
  281. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +95 -0
  282. package/dist/components/basic/nmorph-scroll/types.js +5 -0
  283. package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -0
  284. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +120 -0
  285. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +74 -0
  286. package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -0
  287. package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +69 -0
  288. package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +51 -0
  289. package/dist/components/data/nmorph-calendar/NmorphCalendar.css +1 -0
  290. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +105 -0
  291. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +133 -0
  292. package/dist/components/data/nmorph-calendar/hooks/use-calendar-texts.js +11 -0
  293. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.css +1 -0
  294. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +73 -0
  295. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +41 -0
  296. package/dist/components/data/nmorph-calendar/utils.js +83 -0
  297. package/dist/components/data/nmorph-card/NmorphCard.css +1 -0
  298. package/dist/components/data/nmorph-card/NmorphCard.vue.js +35 -0
  299. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +24 -0
  300. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +93 -0
  301. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +52 -0
  302. package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.js +25 -0
  303. package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue2.js +24 -0
  304. package/dist/components/data/nmorph-collapse/NmorphCollapse.vue.js +20 -0
  305. package/dist/components/data/nmorph-collapse/NmorphCollapse.vue2.js +40 -0
  306. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -0
  307. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +63 -0
  308. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +45 -0
  309. package/dist/components/data/nmorph-image/NmorphImage.vue.js +52 -0
  310. package/dist/components/data/nmorph-image/NmorphImage.vue2.js +36 -0
  311. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -0
  312. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +197 -0
  313. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +104 -0
  314. package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -0
  315. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +96 -0
  316. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +73 -0
  317. package/dist/components/data/nmorph-progress/NmorphProgress.css +1 -0
  318. package/dist/components/data/nmorph-progress/NmorphProgress.vue.js +89 -0
  319. package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +31 -0
  320. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.css +1 -0
  321. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.js +61 -0
  322. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +26 -0
  323. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.css +1 -0
  324. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +36 -0
  325. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +30 -0
  326. package/dist/components/data/nmorph-skeleton/types.js +4 -0
  327. package/dist/components/data/nmorph-table/NmorphTable.css +1 -0
  328. package/dist/components/data/nmorph-table/NmorphTable.vue.js +176 -0
  329. package/dist/components/data/nmorph-table/NmorphTable.vue2.js +52 -0
  330. package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js +23 -0
  331. package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue2.js +26 -0
  332. package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js +19 -0
  333. package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue2.js +31 -0
  334. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.css +1 -0
  335. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +53 -0
  336. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +34 -0
  337. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +35 -0
  338. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +32 -0
  339. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -0
  340. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.js +42 -0
  341. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +36 -0
  342. package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -0
  343. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.js +85 -0
  344. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +49 -0
  345. package/dist/components/feedback/nmorph-alert/types.js +4 -0
  346. package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -0
  347. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +36 -0
  348. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +18 -0
  349. package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -0
  350. package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +60 -0
  351. package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +66 -0
  352. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -0
  353. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +111 -0
  354. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +37 -0
  355. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -0
  356. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +97 -0
  357. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +65 -0
  358. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -0
  359. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +96 -0
  360. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +55 -0
  361. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.css +1 -0
  362. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +42 -0
  363. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +46 -0
  364. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -0
  365. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +61 -0
  366. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +66 -0
  367. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -0
  368. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.js +88 -0
  369. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +70 -0
  370. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.js +28 -0
  371. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue2.js +24 -0
  372. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js +56 -0
  373. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue2.js +52 -0
  374. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.css +1 -0
  375. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +114 -0
  376. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +38 -0
  377. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.css +1 -0
  378. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +74 -0
  379. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +74 -0
  380. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -0
  381. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +104 -0
  382. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +78 -0
  383. package/dist/components/form/nmorph-file-upload/types.js +16 -0
  384. package/dist/components/form/nmorph-form/NmorphForm.vue.js +23 -0
  385. package/dist/components/form/nmorph-form/NmorphForm.vue2.js +23 -0
  386. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -0
  387. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +39 -0
  388. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +45 -0
  389. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.css +1 -0
  390. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.js +46 -0
  391. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +28 -0
  392. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -0
  393. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +34 -0
  394. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue2.js +27 -0
  395. package/dist/components/form/nmorph-form/use-form-item-input.js +15 -0
  396. package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -0
  397. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +140 -0
  398. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +79 -0
  399. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.css +1 -0
  400. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +71 -0
  401. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +139 -0
  402. package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -0
  403. package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +94 -0
  404. package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +38 -0
  405. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.css +1 -0
  406. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +42 -0
  407. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +41 -0
  408. package/dist/components/form/nmorph-select/NmorphSelect.css +1 -0
  409. package/dist/components/form/nmorph-select/NmorphSelect.vue.js +157 -0
  410. package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +128 -0
  411. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -0
  412. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +38 -0
  413. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +43 -0
  414. package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -0
  415. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue.js +43 -0
  416. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +44 -0
  417. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -0
  418. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +32 -0
  419. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue2.js +35 -0
  420. package/dist/components/form/nmorph-slider/NmorphSlider.css +1 -0
  421. package/dist/components/form/nmorph-slider/NmorphSlider.vue.js +73 -0
  422. package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +83 -0
  423. package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -0
  424. package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +63 -0
  425. package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +57 -0
  426. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +67 -0
  427. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +63 -0
  428. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.css +1 -0
  429. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +56 -0
  430. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +50 -0
  431. package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.css +1 -0
  432. package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.js +48 -0
  433. package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue2.js +24 -0
  434. package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.js +36 -0
  435. package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue2.js +26 -0
  436. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -0
  437. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.js +49 -0
  438. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +42 -0
  439. package/dist/components/navigation/nmorph-tabs/NmorphTabs.css +1 -0
  440. package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue.js +73 -0
  441. package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue2.js +39 -0
  442. package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.js +30 -0
  443. package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue2.js +32 -0
  444. package/dist/components/navigation/nmorph-tabs/utils.js +11 -0
  445. package/dist/components/others/nmorph-divider/NmorphDivider.css +1 -0
  446. package/dist/components/others/nmorph-divider/NmorphDivider.vue.js +20 -0
  447. package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +21 -0
  448. package/dist/components/others/nmorph-overlay/NmorphOverlay.css +1 -0
  449. package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +30 -0
  450. package/dist/components/others/nmorph-overlay/NmorphOverlay.vue2.js +30 -0
  451. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -0
  452. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +56 -0
  453. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +55 -0
  454. package/dist/components/providers/nmorph-notification-provider/types.js +4 -0
  455. package/dist/hooks/use-common-styles.js +538 -0
  456. package/dist/hooks/use-field-validation.js +74 -0
  457. package/dist/hooks/use-form-validation.js +30 -0
  458. package/dist/hooks/use-nmorph-translation.js +15 -0
  459. package/dist/hooks/use-placement.js +57 -0
  460. package/dist/hooks/use-z-index.js +14 -0
  461. package/dist/index.es.js +710 -12297
  462. package/dist/index.umd.js +27 -28
  463. package/dist/locales/en.js +29 -0
  464. package/dist/locales/ru.js +29 -0
  465. package/dist/locales/zh.js +29 -0
  466. package/dist/nuxt.mjs +40 -8
  467. package/dist/outside-hooks/use-nmorph-browser.js +21 -0
  468. package/dist/outside-hooks/use-nmorph-notification.js +29 -0
  469. package/dist/outside-hooks/use-nmorph-theme.js +147 -0
  470. package/dist/outside-hooks/use-nmorph-z-index.js +8 -0
  471. package/dist/outside-hooks/use-nmorph.js +9 -0
  472. package/dist/outside-utils/index.js +23 -0
  473. package/dist/package.json.js +7 -0
  474. package/dist/plugin.d.ts +2 -0
  475. package/dist/plugin.js +48 -0
  476. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +1 -1
  477. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -3
  478. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +14 -2
  479. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -0
  480. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -0
  481. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +4 -3
  482. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +1 -0
  483. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +4 -3
  484. package/dist/src/main.d.ts +1 -8
  485. package/dist/src/nuxt/module.d.ts +3 -1
  486. package/dist/src/plugin.d.ts +8 -0
  487. package/dist/src/types/index.d.ts +9 -2
  488. package/dist/style.css +1 -1
  489. package/dist/types/index.js +20 -0
  490. package/dist/utils/case-transformers.js +4 -0
  491. package/dist/utils/common.js +8 -0
  492. package/dist/utils/create-modifiers.js +8 -0
  493. package/dist/utils/theme-style.js +71 -0
  494. package/package.json +11 -3
@@ -0,0 +1,30 @@
1
+ import './NmorphOverlay.css';
2
+ import t from "./NmorphOverlay.vue2.js";
3
+ import { openBlock as n, createElementBlock as i, withModifiers as e, normalizeStyle as s, normalizeClass as m, createElementVNode as a, renderSlot as p } from "vue";
4
+ /* empty css */
5
+ import c from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ function d(l, r, f, o, _, v) {
7
+ return n(), i(
8
+ "div",
9
+ {
10
+ class: m(o.modifiers),
11
+ style: s({ "--nmorph-overlay-z-index": o.zIndex }),
12
+ onClick: e(o.clickHandler, ["stop"])
13
+ },
14
+ [
15
+ a("div", {
16
+ class: "nmorph-overlay__slot",
17
+ onClick: r[0] || (r[0] = e(() => {
18
+ }, ["stop"]))
19
+ }, [
20
+ p(l.$slots, "default")
21
+ ])
22
+ ],
23
+ 6
24
+ /* CLASS, STYLE */
25
+ );
26
+ }
27
+ const x = /* @__PURE__ */ c(t, [["render", d], ["__file", "/builds/ketjo/nmorph/library/src/components/others/nmorph-overlay/NmorphOverlay.vue"]]);
28
+ export {
29
+ x as default
30
+ };
@@ -0,0 +1,30 @@
1
+ import './NmorphOverlay.css';
2
+ import { defineComponent as d, computed as t } from "vue";
3
+ import { useModifiers as m } from "../../../utils/create-modifiers.js";
4
+ import { useZIndex as c } from "../../../hooks/use-z-index.js";
5
+ const h = /* @__PURE__ */ d({
6
+ __name: "NmorphOverlay",
7
+ props: {
8
+ show: { type: Boolean, required: !0 },
9
+ transparent: { type: Boolean, required: !1, default: !1 },
10
+ zIndex: { type: Number, required: !1 }
11
+ },
12
+ emits: ["on-outside-click"],
13
+ setup(n, { expose: s, emit: i }) {
14
+ s();
15
+ const e = n, p = c(
16
+ t(() => e.show),
17
+ () => e.zIndex
18
+ ), a = t(
19
+ () => m({
20
+ "nmorph-overlay": [`${e.show && "show"}`, `${e.transparent && "transparent"}`]
21
+ })
22
+ ), u = () => {
23
+ r("on-outside-click");
24
+ }, r = i, o = { props: e, zIndex: p, modifiers: a, clickHandler: u, emit: r };
25
+ return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
26
+ }
27
+ });
28
+ export {
29
+ h as default
30
+ };
@@ -0,0 +1 @@
1
+ .nmorph-notification-provider{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__notification{width:fit-content;height:fit-content;margin:1rem;pointer-events:all;transition:transform .5s ease,opacity .5s ease-in-out}.nmorph-notification-provider .nmorph-notification-provider__list{display:flex;flex-direction:column;width:fit-content;max-width:100vw;position:fixed;pointer-events:none}.nmorph-notification-provider .nmorph-notification-move{transition:transform .5s ease}.nmorph-notification-provider .nmorph-notification-provider__list--top-left{top:0;left:0;align-items:flex-start}.nmorph-notification-provider .nmorph-notification-provider__list--top-right{top:0;right:0;align-items:flex-end}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left{bottom:0;left:0;align-items:flex-start}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right{right:0;bottom:0;align-items:flex-end}.nmorph-notification-provider .nmorph-notification-provider__list--top-center{top:0;left:50%;align-items:center;transform:translate(-50%)}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center{bottom:0;left:50%;align-items:center;transform:translate(-50%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-leave-active{transition:transform .5s ease,opacity .5s ease-in-out}.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-enter-from,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-enter-from{transform:translate(-100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-enter-from,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-enter-from{transform:translate(100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-enter-from{transform:translateY(-100%)}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-enter-from{transform:translateY(100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-leave-to,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-leave-to{transform:translate(-100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-leave-to,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-leave-to{transform:translate(100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-leave-to{transform:translateY(-100%)}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-leave-to{transform:translateY(100%)}.nmorph-notification-provider .nmorph-notification-enter-from{opacity:0}.nmorph-notification-provider .nmorph-notification-enter-to{transform:translate(0);opacity:1}.nmorph-notification-provider .nmorph-notification-leave-active{overflow:hidden}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon{--color: var(--nmorph-text-color);display:flex;align-items:center;width:var(--width);min-width:var(--width);height:var(--height);min-height:var(--height)}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--small{--width: 14px;--height: 14px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--medium{--width: 20px;--height: 20px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--large{--width: 32px;--height: 32px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon__content{display:flex;align-items:center;justify-content:center;width:var(--width);min-width:var(--width);height:var(--height);min-height:var(--height);overflow:hidden}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert__close .nmorph-icon,.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert__content,.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert__content-title{--color: var(--nmorph-white-color)}.nmorph-notification-provider .nmorph-notification-leave-active.nmorph-alert--success .nmorph-alert__icon .nmorph-icon{--color: var(--nmorph-success-color)}.nmorph-notification-provider .nmorph-notification-leave-active.nmorph-alert--error .nmorph-alert__icon .nmorph-icon{--color: var(--nmorph-error-color)}.nmorph-notification-provider .nmorph-notification-leave-active.nmorph-alert--warning .nmorph-alert__icon .nmorph-icon{--color: var(--nmorph-warn-color)}.nmorph-notification-provider .nmorph-notification-leave-active.nmorph-alert--info .nmorph-alert__icon .nmorph-icon{--color: var(--nmorph-info-color)}.nmorph-notification-provider .nmorph-notification-leave-active svg{width:100%;height:100%;fill:var(--color);stroke-width:0}.nmorph-notification-provider .nmorph-notification-leave-active path{stroke:var(--color)}.nmorph-notification-provider .nmorph-notification-leave-to{opacity:0;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-provider__notification--closing,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-provider__notification--closing{position:absolute;transform:translate(-100%);opacity:0;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-provider__notification--closing,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-provider__notification--closing{position:absolute;transform:translate(100%);opacity:0;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-provider__notification--closing{position:absolute;transform:translateY(-100%);opacity:0;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-provider__notification--closing{position:absolute;transform:translateY(100%);opacity:0;pointer-events:none}
@@ -0,0 +1,56 @@
1
+ import './NmorphNotificationProvider.css';
2
+ import c from "./NmorphNotificationProvider.vue2.js";
3
+ import { openBlock as i, createElementBlock as n, normalizeStyle as a, Fragment as t, renderList as l, createBlock as s, TransitionGroup as d, normalizeClass as m, withCtx as p, mergeProps as f } from "vue";
4
+ /* empty css */
5
+ import _ from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ function h(v, u, y, o, k, x) {
7
+ return i(), n(
8
+ "div",
9
+ {
10
+ class: "nmorph-notification-provider",
11
+ style: a({ zIndex: o.zIndex })
12
+ },
13
+ [
14
+ (i(!0), n(
15
+ t,
16
+ null,
17
+ l(o.notificationGroups, (e) => (i(), s(d, {
18
+ key: e.placement,
19
+ name: "nmorph-notification",
20
+ tag: "div",
21
+ class: m(`nmorph-notification-provider__list nmorph-notification-provider__list--${e.placement}`)
22
+ }, {
23
+ default: p(() => [
24
+ (i(!0), n(
25
+ t,
26
+ null,
27
+ l(e.notifications, (r) => (i(), s(o.NmorphAlert, f({
28
+ key: r.id,
29
+ style: { width: r.width },
30
+ class: [
31
+ "nmorph-notification-provider__notification",
32
+ o.closingIds.includes(r.id) && "nmorph-notification-provider__notification--closing"
33
+ ],
34
+ ref_for: !0
35
+ }, r, {
36
+ onClose: () => o.closeHandler(r.id)
37
+ }), null, 16, ["style", "class", "onClose"]))),
38
+ 128
39
+ /* KEYED_FRAGMENT */
40
+ ))
41
+ ]),
42
+ _: 2
43
+ /* DYNAMIC */
44
+ }, 1032, ["class"]))),
45
+ 128
46
+ /* KEYED_FRAGMENT */
47
+ ))
48
+ ],
49
+ 4
50
+ /* STYLE */
51
+ );
52
+ }
53
+ const w = /* @__PURE__ */ _(c, [["render", h], ["__file", "/builds/ketjo/nmorph/library/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue"]]);
54
+ export {
55
+ w as default
56
+ };
@@ -0,0 +1,55 @@
1
+ import './NmorphNotificationProvider.css';
2
+ import { defineComponent as g, ref as u, computed as v, watch as x } from "vue";
3
+ import { NmorphNotificationPlacement as q } from "./types.js";
4
+ import A from "../../feedback/nmorph-alert/NmorphAlert.vue.js";
5
+ const h = 500, z = /* @__PURE__ */ g({
6
+ __name: "NmorphNotificationProvider",
7
+ props: {
8
+ notifications: { type: Array, required: !0 },
9
+ placement: { type: null, required: !1, default: "top-right" },
10
+ zIndex: { type: Number, required: !1, default: 1e3 },
11
+ quantity: { type: Number, required: !1, default: 100 }
12
+ },
13
+ setup(N, { expose: _ }) {
14
+ _();
15
+ const c = (e) => typeof e.id == "string" && e.id.length > 0, a = u([]), o = u([]), r = u([]), d = Object.values(q), f = (e) => {
16
+ r.value = r.value.filter((i) => i.id !== e), o.value = o.value.filter((i) => i !== e);
17
+ }, p = (e, i = !0) => {
18
+ o.value.includes(e) || (i && !a.value.includes(e) && (a.value = [...a.value, e]), o.value = [...o.value, e], setTimeout(() => f(e), h));
19
+ }, s = N, y = v(
20
+ () => d.map((e) => {
21
+ const i = r.value.filter(
22
+ (n) => (n.placement ?? s.placement) === e
23
+ ), t = Math.max(i.length - s.quantity, 0);
24
+ return {
25
+ placement: e,
26
+ notifications: i.slice(t)
27
+ };
28
+ }).filter((e) => e.notifications.length > 0)
29
+ );
30
+ x(
31
+ () => s.notifications,
32
+ (e) => {
33
+ const i = e.filter(c).filter((t) => !a.value.includes(t.id));
34
+ r.value = r.value.map((t) => {
35
+ const n = i.find((l) => l.id === t.id);
36
+ return n ? { ...t, ...n } : t;
37
+ }), i.forEach((t) => {
38
+ r.value.some(
39
+ (l) => l.id === t.id
40
+ ) || r.value.push(t);
41
+ }), r.value.filter(
42
+ (t) => !i.some((n) => n.id === t.id)
43
+ ).forEach((t) => p(t.id, !1));
44
+ },
45
+ { deep: !0, immediate: !0 }
46
+ );
47
+ const I = v(() => s.zIndex), m = { ANIMATION_DURATION: h, hasNotificationId: c, removedIds: a, closingIds: o, renderedNotifications: r, placementList: d, removeRenderedNotification: f, closeHandler: p, props: s, notificationGroups: y, zIndex: I, get NmorphAlert() {
48
+ return A;
49
+ } };
50
+ return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
51
+ }
52
+ });
53
+ export {
54
+ z as default
55
+ };
@@ -0,0 +1,4 @@
1
+ var r = /* @__PURE__ */ ((t) => (t["top-left"] = "top-left", t["top-center"] = "top-center", t["top-right"] = "top-right", t["bottom-left"] = "bottom-left", t["bottom-center"] = "bottom-center", t["bottom-right"] = "bottom-right", t))(r || {});
2
+ export {
3
+ r as NmorphNotificationPlacement
4
+ };