@nmorph/nmorph-ui-kit 2.2.59 → 3.0.0

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 (315) hide show
  1. package/dist/assets/icons/expand.svg.js +13 -6
  2. package/dist/assets/icons/hand.svg.js +21 -0
  3. package/dist/assets/icons/list-simple.svg.js +21 -0
  4. package/dist/assets/icons/pagination.svg.js +18 -5
  5. package/dist/assets/icons/speaker-off.svg.js +28 -0
  6. package/dist/assets/icons/speaker.svg.js +21 -0
  7. package/dist/assets/icons/triangle-down.svg.js +6 -6
  8. package/dist/assets/icons/video-camera-off.svg.js +28 -0
  9. package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
  10. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +20 -20
  11. package/dist/components/basic/nmorph-button/types.js +12 -4
  12. package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
  13. package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +10 -10
  14. package/dist/components/basic/nmorph-icon/NmorphIcons.js +405 -395
  15. package/dist/components/basic/nmorph-icon/types.js +6 -2
  16. package/dist/components/basic/nmorph-layout/NmorphLayout.css +1 -1
  17. package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +7 -7
  18. package/dist/components/basic/nmorph-link/NmorphLink.css +1 -1
  19. package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +7 -7
  20. package/dist/components/basic/nmorph-link/types.js +7 -2
  21. package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
  22. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +4 -3
  23. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +123 -112
  24. package/dist/components/basic/nmorph-scroll/types.js +13 -3
  25. package/dist/components/basic/nmorph-space/NmorphSpace.css +1 -1
  26. package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +9 -9
  27. package/dist/components/basic/nmorph-text/NmorphText.vue.js +19 -0
  28. package/dist/components/basic/nmorph-text/NmorphText.vue2.js +50 -0
  29. package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.css +1 -1
  30. package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue2.js +22 -12
  31. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
  32. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue2.js +8 -6
  33. package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
  34. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +54 -51
  35. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +41 -36
  36. package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
  37. package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +47 -51
  38. package/dist/components/data/nmorph-calendar/NmorphCalendar.css +1 -1
  39. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +34 -32
  40. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +35 -34
  41. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.css +1 -1
  42. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +25 -22
  43. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +10 -9
  44. package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
  45. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +20 -19
  46. package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -0
  47. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +12 -10
  48. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
  49. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
  50. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +29 -17
  51. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +35 -29
  52. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
  53. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +12 -12
  54. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue2.js +103 -89
  55. package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
  56. package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +12 -12
  57. package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
  58. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +2 -2
  59. package/dist/components/data/nmorph-image/NmorphImage.css +1 -1
  60. package/dist/components/data/nmorph-image/NmorphImage.vue2.js +32 -20
  61. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
  62. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +66 -62
  63. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +53 -51
  64. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
  65. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +17 -15
  66. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue2.js +56 -54
  67. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
  68. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +21 -21
  69. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +9 -8
  70. package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
  71. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +50 -50
  72. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +23 -23
  73. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
  74. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +14 -12
  75. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +22 -18
  76. package/dist/components/data/nmorph-progress/NmorphProgress.css +1 -1
  77. package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +22 -22
  78. package/dist/components/data/nmorph-qr-code/NmorphQRCode.css +1 -1
  79. package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +18 -19
  80. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.css +1 -1
  81. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +5 -5
  82. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.css +1 -1
  83. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +7 -7
  84. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +4 -4
  85. package/dist/components/data/nmorph-skeleton/types.js +6 -2
  86. package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
  87. package/dist/components/data/nmorph-table/NmorphTable.vue2.js +13 -13
  88. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.css +1 -1
  89. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +36 -40
  90. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +14 -23
  91. package/dist/components/data/nmorph-tag-list/NmorphTagList.css +1 -1
  92. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +38 -44
  93. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +14 -29
  94. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
  95. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +34 -34
  96. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
  97. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +26 -22
  98. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.css +1 -1
  99. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +6 -6
  100. package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -1
  101. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +10 -10
  102. package/dist/components/feedback/nmorph-alert/types.js +6 -1
  103. package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
  104. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +16 -16
  105. package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -1
  106. package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +36 -35
  107. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.css +1 -1
  108. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +9 -9
  109. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -1
  110. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +33 -33
  111. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
  112. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +21 -21
  113. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
  114. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +21 -18
  115. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +20 -20
  116. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
  117. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +15 -15
  118. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +30 -31
  119. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +20 -21
  120. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +28 -28
  121. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -1
  122. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +27 -27
  123. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
  124. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +40 -38
  125. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +94 -108
  126. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +14 -19
  127. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +55 -64
  128. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +32 -37
  129. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
  130. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +10 -10
  131. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +1 -1
  132. package/dist/components/form/nmorph-file-upload/types.js +34 -16
  133. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
  134. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +12 -12
  135. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +7 -7
  136. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +6 -6
  137. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -1
  138. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +12 -13
  139. package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
  140. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +41 -37
  141. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +28 -28
  142. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.css +1 -1
  143. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +19 -19
  144. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +37 -37
  145. package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
  146. package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +4 -4
  147. package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +21 -21
  148. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +18 -18
  149. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +21 -21
  150. package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
  151. package/dist/components/form/nmorph-select/NmorphSelect.vue.js +86 -77
  152. package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +52 -52
  153. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -1
  154. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -21
  155. package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
  156. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +27 -23
  157. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
  158. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +13 -11
  159. package/dist/components/form/nmorph-slider/NmorphSlider.css +1 -1
  160. package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +52 -47
  161. package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
  162. package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +26 -26
  163. package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
  164. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +35 -36
  165. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +49 -36
  166. package/dist/components/form/nmorph-textarea/NmorphTextarea.css +1 -1
  167. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +18 -18
  168. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
  169. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +1 -1
  170. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +44 -44
  171. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.css +1 -1
  172. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +11 -11
  173. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +15 -15
  174. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
  175. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +9 -9
  176. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -1
  177. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +6 -5
  178. package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue2.js +20 -20
  179. package/dist/components/others/nmorph-divider/NmorphDivider.css +1 -1
  180. package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +9 -8
  181. package/dist/components/others/nmorph-overlay/NmorphOverlay.css +1 -1
  182. package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +13 -13
  183. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
  184. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +35 -25
  185. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +22 -25
  186. package/dist/components/providers/nmorph-notification-provider/types.js +9 -2
  187. package/dist/emoji/base.js +571 -20
  188. package/dist/hooks/use-common-styles.js +228 -49
  189. package/dist/hooks/use-field-validation.js +42 -45
  190. package/dist/hooks/use-virtual-list.js +65 -57
  191. package/dist/icons.js +405 -395
  192. package/dist/index.es.js +854 -840
  193. package/dist/index.umd.js +245 -75
  194. package/dist/package.json.js +1 -1
  195. package/dist/plugin.js +37 -34
  196. package/dist/src/components/basic/index.d.ts +2 -0
  197. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +2 -2
  198. package/dist/src/components/basic/nmorph-button/types.d.ts +17 -19
  199. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
  200. package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +5 -0
  201. package/dist/src/components/basic/nmorph-icon/types.d.ts +7 -6
  202. package/dist/src/components/basic/nmorph-link/types.d.ts +9 -8
  203. package/dist/src/components/basic/nmorph-scroll/types.d.ts +16 -14
  204. package/dist/src/components/basic/nmorph-text/NmorphText.vue.d.ts +20 -0
  205. package/dist/src/components/basic/nmorph-text/types.d.ts +12 -0
  206. package/dist/src/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.d.ts +5 -1
  207. package/dist/src/components/data/nmorph-audio-meter/types.d.ts +4 -0
  208. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -0
  209. package/dist/src/components/data/nmorph-avatar/types.d.ts +3 -2
  210. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +3 -2
  211. package/dist/src/components/data/nmorph-badge/types.d.ts +3 -8
  212. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -0
  213. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -1
  214. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +2 -0
  215. package/dist/src/components/data/nmorph-calendar/types.d.ts +2 -1
  216. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
  217. package/dist/src/components/data/nmorph-card/types.d.ts +2 -1
  218. package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -0
  219. package/dist/src/components/data/nmorph-carousel/types.d.ts +2 -0
  220. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
  221. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +2 -2
  222. package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +7 -1
  223. package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +6 -0
  224. package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -2
  225. package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +1 -1
  226. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -0
  227. package/dist/src/components/data/nmorph-image/types.d.ts +2 -1
  228. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -1
  229. package/dist/src/components/data/nmorph-image-preview/types.d.ts +2 -0
  230. package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +2 -0
  231. package/dist/src/components/data/nmorph-media-gallery/types.d.ts +2 -0
  232. package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -0
  233. package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -0
  234. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
  235. package/dist/src/components/data/nmorph-pagination/types.d.ts +2 -2
  236. package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +4 -0
  237. package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +2 -3
  238. package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -5
  239. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +1 -1
  240. package/dist/src/components/data/nmorph-table/types.d.ts +2 -2
  241. package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +3 -4
  242. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +2 -3
  243. package/dist/src/components/data/nmorph-tag-list/types.d.ts +2 -2
  244. package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +3 -1
  245. package/dist/src/components/data/nmorph-video-preview/types.d.ts +2 -0
  246. package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +1 -1
  247. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
  248. package/dist/src/components/feedback/nmorph-alert/types.d.ts +8 -7
  249. package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +1 -1
  250. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +1 -1
  251. package/dist/src/components/feedback/nmorph-dialog/types.d.ts +1 -4
  252. package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +1 -1
  253. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -2
  254. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
  255. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +2 -17
  256. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +2 -15
  257. package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +4 -6
  258. package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
  259. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +2 -1
  260. package/dist/src/components/form/nmorph-date-picker/types.d.ts +1 -0
  261. package/dist/src/components/form/nmorph-file-upload/types.d.ts +55 -55
  262. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +1 -1
  263. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +1 -1
  264. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +2 -2
  265. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +2 -2
  266. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
  267. package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
  268. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +2 -14
  269. package/dist/src/components/form/nmorph-radio/types.d.ts +6 -4
  270. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +2 -14
  271. package/dist/src/components/form/nmorph-radio-group/types.d.ts +4 -6
  272. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
  273. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
  274. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +2 -1
  275. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +1 -1
  276. package/dist/src/components/form/nmorph-select-button/types.d.ts +1 -0
  277. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -10
  278. package/dist/src/components/form/nmorph-slider/types.d.ts +1 -1
  279. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
  280. package/dist/src/components/form/nmorph-switch/types.d.ts +1 -1
  281. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +4 -1
  282. package/dist/src/components/form/nmorph-text-input/types.d.ts +3 -0
  283. package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
  284. package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +1 -1
  285. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -2
  286. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +1 -1
  287. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -1
  288. package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +2 -1
  289. package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +1 -0
  290. package/dist/src/components/others/nmorph-divider/types.d.ts +2 -0
  291. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -1
  292. package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +8 -8
  293. package/dist/src/hooks/use-field-validation.d.ts +21 -24
  294. package/dist/src/hooks/use-nmorph-translation.d.ts +2 -2
  295. package/dist/src/types/app.types.d.ts +0 -5
  296. package/dist/src/types/common.types.d.ts +91 -35
  297. package/dist/src/types/date.types.d.ts +6 -5
  298. package/dist/src/types/image.types.d.ts +16 -12
  299. package/dist/src/types/selection.types.d.ts +19 -14
  300. package/dist/src/types/table.types.d.ts +6 -5
  301. package/dist/src/types/translation.types.d.ts +7 -6
  302. package/dist/src/utils/common.d.ts +2 -2
  303. package/dist/src/utils/file-types.d.ts +1 -1
  304. package/dist/src/utils/theme-style.d.ts +2 -0
  305. package/dist/style.css +1 -1
  306. package/dist/types/common.types.js +73 -8
  307. package/dist/types/date.types.js +6 -2
  308. package/dist/types/image.types.js +12 -3
  309. package/dist/types/table.types.js +5 -2
  310. package/dist/types/translation.types.js +6 -2
  311. package/dist/utils/common.js +3 -3
  312. package/dist/utils/file-types.js +6 -7
  313. package/dist/utils/theme-style.js +42 -48
  314. package/package.json +1 -1
  315. package/dist/types/selection.types.js +0 -4
@@ -1,15 +1,15 @@
1
1
  import './NmorphEmojiPicker.css';
2
- import { defineComponent as de, ref as L, computed as l, watch as z, nextTick as fe } from "vue";
2
+ import { defineComponent as me, ref as v, computed as l, watch as D, nextTick as fe } from "vue";
3
3
  import { useModifiers as ge } from "../../../utils/create-modifiers.js";
4
- import { createCssSizeVariables as ye } from "../../../utils/common.js";
5
- import he from "../../form/nmorph-text-input/NmorphTextInput.vue.js";
6
- import be from "../../basic/nmorph-scroll/NmorphScroll.vue.js";
7
- import je from "../../../assets/icons/smile.svg.js";
8
- import ke from "../../../assets/icons/search.svg.js";
9
- import Se from "../../../assets/icons/burger.svg.js";
4
+ import { createCssVariables as ye, createCssSizeVariables as he } from "../../../utils/common.js";
5
+ import be from "../../form/nmorph-text-input/NmorphTextInput.vue.js";
6
+ import je from "../../basic/nmorph-scroll/NmorphScroll.vue.js";
7
+ import ke from "../../../assets/icons/smile.svg.js";
8
+ import Se from "../../../assets/icons/search.svg.js";
9
+ import ve from "../../../assets/icons/burger.svg.js";
10
10
  import Le from "../../basic/nmorph-icon/NmorphIcon.vue.js";
11
11
  import xe from "../../form/nmorph-checkbox/NmorphCheckbox.vue.js";
12
- const _e = /* @__PURE__ */ de({
12
+ const Me = /* @__PURE__ */ me({
13
13
  __name: "NmorphEmojiPicker",
14
14
  props: {
15
15
  language: { type: String, required: !1, default: "en" },
@@ -20,13 +20,19 @@ const _e = /* @__PURE__ */ de({
20
20
  width: { type: [Number, String], required: !1, default: "300px" },
21
21
  height: { type: [Number, String], required: !1, default: "260px" },
22
22
  columns: { type: Number, required: !1, default: 8 },
23
+ cellSize: { type: [Number, String], required: !1, default: void 0 },
24
+ toggleSize: { type: [Number, String], required: !1, default: void 0 },
25
+ scrollbarSize: { type: [Number, String], required: !1, default: void 0 },
26
+ hoverBackground: { type: String, required: !1, default: void 0 },
27
+ activeBackground: { type: String, required: !1, default: void 0 },
28
+ focusRing: { type: String, required: !1, default: void 0 },
23
29
  disabled: { type: Boolean, required: !1, default: !1 },
24
30
  hideShadow: { type: Boolean, required: !1, default: !1 }
25
31
  },
26
32
  emits: ["select", "expand", "collapse"],
27
33
  setup(oe, { expose: ne, emit: ae }) {
28
34
  ne();
29
- const i = oe, x = ae, H = L(""), y = L(i.initialExpanded), f = L(""), N = L(0), V = L(null), F = {
35
+ const a = oe, L = ae, V = v(""), y = v(a.initialExpanded), f = v(""), x = v(0), H = v(null), R = {
30
36
  searchPlaceholder: "Search emoji",
31
37
  searchLabel: "Search emoji",
32
38
  quickLabel: "Frequent emoji",
@@ -35,131 +41,131 @@ const _e = /* @__PURE__ */ de({
35
41
  noResults: "No emoji found",
36
42
  categoryLabel: "Emoji categories",
37
43
  resultsLabel: "Emoji results"
38
- }, d = (e) => !!e && typeof e == "object" && !Array.isArray(e), q = (e) => e.trim().toLocaleLowerCase(i.language || void 0), m = (e, r) => {
44
+ }, m = (e) => !!e && typeof e == "object" && !Array.isArray(e), I = (e) => e.trim().toLocaleLowerCase(a.language || void 0), d = (e, r) => {
39
45
  for (const n of r) {
40
46
  const t = e[n];
41
47
  if (typeof t == "string" && t.trim()) return t.trim();
42
48
  if (typeof t == "number") return String(t);
43
49
  }
44
50
  return "";
45
- }, h = (e) => Array.isArray(e) ? e.flatMap(h) : typeof e == "string" ? e.trim() ? [e.trim()] : [] : typeof e == "number" ? [String(e)] : d(e) ? Object.values(e).flatMap(h) : [], b = (e, r, n) => {
51
+ }, h = (e) => Array.isArray(e) ? e.flatMap(h) : typeof e == "string" ? e.trim() ? [e.trim()] : [] : typeof e == "number" ? [String(e)] : m(e) ? Object.values(e).flatMap(h) : [], b = (e, r, n) => {
46
52
  for (const t of r) {
47
- const a = e[t], o = typeof a == "number" ? a : Number(a);
53
+ const i = e[t], o = typeof i == "number" ? i : Number(i);
48
54
  if (Number.isFinite(o)) return o;
49
55
  }
50
56
  return n;
51
- }, K = (e, r) => {
57
+ }, B = (e, r) => {
52
58
  for (const n of r) {
53
59
  const t = e[n];
54
60
  if (Array.isArray(t)) return t;
55
61
  }
56
62
  }, j = (e) => {
57
63
  if (typeof e == "string") return e.trim();
58
- if (!d(e)) return "";
59
- const r = m(e, ["emoji", "native", "char", "unicode", "value"]);
64
+ if (!m(e)) return "";
65
+ const r = d(e, ["emoji", "native", "char", "unicode", "value"]);
60
66
  if (r) return r;
61
- const n = K(e, ["skinToneVariants", "skins", "variants"])?.[0];
67
+ const n = B(e, ["skinToneVariants", "skins", "variants"])?.[0];
62
68
  return j(n);
63
- }, R = (e) => !!j(e), $ = (e) => Array.isArray(e) ? e.map((r) => {
69
+ }, F = (e) => !!j(e), $ = (e) => Array.isArray(e) ? e.map((r) => {
64
70
  const n = j(r);
65
71
  if (!n) return null;
66
72
  if (typeof r == "string") return { emoji: n };
67
- const t = d(r) ? r : {};
73
+ const t = m(r) ? r : {};
68
74
  return {
69
75
  emoji: n,
70
- annotation: m(t, ["annotation", "label", "name", "description"]),
76
+ annotation: d(t, ["annotation", "label", "name", "description"]),
71
77
  tags: h(t.tags || t.keywords || t.aliases || t.shortcodes),
72
- tone: m(t, ["tone", "skinTone", "skin_tone"])
78
+ tone: d(t, ["tone", "skinTone", "skin_tone"])
73
79
  };
74
80
  }).filter((r) => !!r) : [], P = (e, r, n) => {
75
- if (!d(e))
81
+ if (!m(e))
76
82
  return {
77
83
  key: r,
78
84
  label: r,
79
85
  sort: n
80
86
  };
81
- const t = m(e, ["group", "category", "groupName", "categoryName"]) || r, a = m(e, ["groupLabel", "categoryLabel"]) || t, o = b(e, ["groupOrder", "categoryOrder"], Number(t));
87
+ const t = d(e, ["group", "category", "groupName", "categoryName"]) || r, i = d(e, ["groupLabel", "categoryLabel"]) || t, o = b(e, ["groupOrder", "categoryOrder"], Number(t));
82
88
  return {
83
89
  key: t,
84
- label: a,
90
+ label: i,
85
91
  sort: Number.isFinite(o) ? o : n
86
92
  };
87
- }, Q = (e, r, n, t, a) => {
93
+ }, Q = (e, r, n, t, i) => {
88
94
  const o = j(e);
89
95
  if (!o) return null;
90
- const s = d(e) ? e : {}, c = P(s, r, t), u = m(s, ["annotation", "label", "name", "description"]) || o, p = h(s.tags || s.keywords || s.aliases || s.shortcodes), A = b(s, ["order", "sortOrder", "sort_order", "index"], a), D = s.skinToneVariants || s.skins || s.variants, v = $(D).filter((I) => I.emoji !== o), S = c.key || r, te = c.label || n || S, me = q(
91
- [o, u, te, ...p, ...v.map((I) => I.annotation || I.emoji)].filter(Boolean).join(" ")
96
+ const s = m(e) ? e : {}, c = P(s, r, t), u = d(s, ["annotation", "label", "name", "description"]) || o, p = h(s.tags || s.keywords || s.aliases || s.shortcodes), w = b(s, ["order", "sortOrder", "sort_order", "index"], i), T = s.skinToneVariants || s.skins || s.variants, q = $(T).filter((A) => A.emoji !== o), S = c.key || r, te = c.label || n || S, de = I(
97
+ [o, u, te, ...p, ...q.map((A) => A.annotation || A.emoji)].filter(Boolean).join(" ")
92
98
  );
93
99
  return {
94
- key: `${S}-${A}-${o}`,
100
+ key: `${S}-${w}-${o}`,
95
101
  emoji: o,
96
102
  annotation: u,
97
103
  tags: p,
98
104
  groupKey: S,
99
105
  groupLabel: te,
100
106
  groupSort: c.sort,
101
- order: A,
102
- skinToneVariants: v,
103
- searchText: me
107
+ order: w,
108
+ skinToneVariants: q,
109
+ searchText: de
104
110
  };
105
- }, E = (e) => {
106
- if (!(!d(e) || R(e)))
107
- return K(e, ["emojis", "items", "children", "data"]);
111
+ }, N = (e) => {
112
+ if (!(!m(e) || F(e)))
113
+ return B(e, ["emojis", "items", "children", "data"]);
108
114
  }, U = (e) => {
109
- const r = [], n = (a, o = "emoji", s = o, c = 0, u = r.length) => {
115
+ const r = [], n = (i, o = "emoji", s = o, c = 0, u = r.length) => {
110
116
  const p = Q(
111
- a,
117
+ i,
112
118
  o,
113
119
  s,
114
120
  c,
115
121
  u
116
122
  );
117
123
  p && r.push(p);
118
- }, t = (a, o, s) => {
119
- const c = E(a);
124
+ }, t = (i, o, s) => {
125
+ const c = N(i);
120
126
  if (!c) {
121
- n(a, "emoji", "emoji", 0, s);
127
+ n(i, "emoji", "emoji", 0, s);
122
128
  return;
123
129
  }
124
- const u = d(a) ? a : {}, p = m(u, ["group", "category", "name", "label"]) || o, A = m(u, ["label", "name", "title", "groupLabel", "categoryLabel"]) || p, D = b(u, ["order", "groupOrder", "categoryOrder"], s);
125
- c.forEach((v, S) => n(v, p, A, D, S));
130
+ const u = m(i) ? i : {}, p = d(u, ["group", "category", "name", "label"]) || o, w = d(u, ["label", "name", "title", "groupLabel", "categoryLabel"]) || p, T = b(u, ["order", "groupOrder", "categoryOrder"], s);
131
+ c.forEach((q, S) => n(q, p, w, T, S));
126
132
  };
127
133
  if (Array.isArray(e))
128
- e.forEach((a, o) => {
129
- E(a) ? t(a, `group-${o + 1}`, o) : n(a, "emoji", "emoji", 0, o);
134
+ e.forEach((i, o) => {
135
+ N(i) ? t(i, `group-${o + 1}`, o) : n(i, "emoji", "emoji", 0, o);
130
136
  });
131
- else if (d(e)) {
132
- const a = E(e);
133
- if (a) {
134
- const o = m(e, ["group", "category", "name", "label"]) || "emoji", s = m(e, ["label", "name", "title", "groupLabel", "categoryLabel"]) || o, c = b(e, ["order", "groupOrder", "categoryOrder"], 0);
135
- a.forEach((u, p) => n(u, o, s, c, p));
137
+ else if (m(e)) {
138
+ const i = N(e);
139
+ if (i) {
140
+ const o = d(e, ["group", "category", "name", "label"]) || "emoji", s = d(e, ["label", "name", "title", "groupLabel", "categoryLabel"]) || o, c = b(e, ["order", "groupOrder", "categoryOrder"], 0);
141
+ i.forEach((u, p) => n(u, o, s, c, p));
136
142
  } else
137
143
  Object.entries(e).forEach(([o, s], c) => {
138
144
  Array.isArray(s) ? s.forEach((u, p) => n(u, o, o, c, p)) : t(s, o, c);
139
145
  });
140
146
  }
141
- return r.sort((a, o) => a.groupSort !== o.groupSort ? a.groupSort - o.groupSort : a.order - o.order);
142
- }, O = l(() => ({
143
- ...F,
144
- ...i.i18n
145
- })), C = l(() => ({
146
- ...i.i18n?.categories || {},
147
- ...i.i18n?.categoryLabels || {}
148
- })), g = l(() => U(i.dataSource)), J = l(() => {
147
+ return r.sort((i, o) => i.groupSort !== o.groupSort ? i.groupSort - o.groupSort : i.order - o.order);
148
+ }, C = l(() => ({
149
+ ...R,
150
+ ...a.i18n
151
+ })), K = l(() => ({
152
+ ...a.i18n?.categories || {},
153
+ ...a.i18n?.categoryLabels || {}
154
+ })), g = l(() => U(a.dataSource)), J = l(() => {
149
155
  const e = /* @__PURE__ */ new Map();
150
156
  return g.value.forEach((r) => e.set(r.emoji, r.annotation || r.emoji)), e;
151
- }), M = l(() => Array.from(new Set(i.quickList.map((e) => e.trim()).filter(Boolean)))), W = l(() => !y.value && M.value.length > 0), k = l(() => q(H.value)), _ = l(() => {
157
+ }), O = l(() => Array.from(new Set(a.quickList.map((e) => e.trim()).filter(Boolean)))), W = l(() => !y.value && O.value.length > 0), k = l(() => I(V.value)), z = l(() => {
152
158
  const e = /* @__PURE__ */ new Map();
153
159
  return g.value.forEach((r) => {
154
160
  e.has(r.groupKey) || e.set(r.groupKey, {
155
161
  key: r.groupKey,
156
- label: C.value[r.groupKey] || r.groupLabel,
162
+ label: K.value[r.groupKey] || r.groupLabel,
157
163
  sort: r.groupSort
158
164
  });
159
165
  }), Array.from(e.values()).sort((r, n) => r.sort - n.sort);
160
166
  });
161
- z(
162
- _,
167
+ D(
168
+ z,
163
169
  (e) => {
164
170
  if (!e.length) {
165
171
  f.value = "";
@@ -168,87 +174,95 @@ const _e = /* @__PURE__ */ de({
168
174
  e.some((r) => r.key === f.value) || (f.value = e[0].key);
169
175
  },
170
176
  { immediate: !0 }
171
- ), z(
172
- () => i.initialExpanded,
177
+ ), D(
178
+ () => a.initialExpanded,
173
179
  (e) => {
174
180
  y.value = e;
175
181
  }
176
- ), z([k, f], () => {
177
- N.value = 0;
182
+ ), D([k, f], () => {
183
+ x.value = 0;
178
184
  });
179
185
  const X = l(() => k.value ? g.value.filter((e) => e.searchText.includes(k.value)) : f.value ? g.value.filter((e) => e.groupKey === f.value) : g.value), Y = l(() => {
180
186
  const e = /* @__PURE__ */ new Map();
181
187
  return X.value.forEach((r) => {
182
- const n = C.value[r.groupKey] || r.groupLabel, t = e.get(r.groupKey) || {
188
+ const n = K.value[r.groupKey] || r.groupLabel, t = e.get(r.groupKey) || {
183
189
  key: r.groupKey,
184
190
  label: n,
185
191
  items: []
186
192
  };
187
193
  t.items.push(r), e.set(r.groupKey, t);
188
194
  }), Array.from(e.values());
189
- }), B = l(() => Y.value.flatMap((e) => e.items)), Z = l(
190
- () => _.value.find((e) => e.key === f.value)?.label || O.value.resultsLabel
191
- ), se = l(() => k.value ? O.value.resultsLabel : Z.value), T = l(() => !i.initialExpanded && M.value.length > 0), ie = l(
195
+ }), M = l(() => Y.value.flatMap((e) => e.items)), Z = l(
196
+ () => z.value.find((e) => e.key === f.value)?.label || C.value.resultsLabel
197
+ ), ie = l(() => k.value ? C.value.resultsLabel : Z.value), _ = l(() => !a.initialExpanded && O.value.length > 0), se = l(
192
198
  () => ge({
193
199
  "nmorph-emoji-picker": [
194
200
  W.value && "compact",
195
201
  y.value && "expanded",
196
- T.value && "collapsible",
197
- i.disabled && "disabled",
198
- i.hideShadow && "hide-shadow",
202
+ _.value && "collapsible",
203
+ a.disabled && "disabled",
204
+ a.hideShadow && "hide-shadow",
199
205
  !g.value.length && "empty"
200
206
  ]
201
207
  })
202
208
  ), le = l(() => ({
209
+ ...he({
210
+ "--nmorph-private-emoji-picker-width": a.width,
211
+ "--nmorph-private-emoji-picker-height": a.height,
212
+ "--nmorph-private-emoji-picker-cell-size": a.cellSize,
213
+ "--nmorph-private-emoji-picker-toggle-size": a.toggleSize,
214
+ "--nmorph-private-emoji-picker-scrollbar-size": a.scrollbarSize
215
+ }),
203
216
  ...ye({
204
- "--nmorph-emoji-picker-width": i.width,
205
- "--nmorph-emoji-picker-height": i.height
217
+ "--nmorph-private-emoji-picker-hover-background": a.hoverBackground,
218
+ "--nmorph-private-emoji-picker-active-background": a.activeBackground,
219
+ "--nmorph-private-emoji-picker-focus-ring": a.focusRing
206
220
  }),
207
- "--nmorph-emoji-picker-columns": Math.max(1, Math.floor(i.columns))
221
+ "--nmorph-private-emoji-picker-columns": Math.max(1, Math.floor(a.columns))
208
222
  })), ce = (e) => J.value.get(e) || e, ue = (e) => {
209
- i.disabled || x("select", e);
223
+ a.disabled || L("select", e);
210
224
  }, G = () => {
211
- i.disabled || (y.value = !0, x("expand"));
225
+ a.disabled || (y.value = !0, L("expand"));
212
226
  }, ee = () => {
213
- i.disabled || !T.value || (y.value = !1, x("collapse"));
227
+ a.disabled || !_.value || (y.value = !1, L("collapse"));
214
228
  }, pe = (e) => {
215
229
  if (e) {
216
230
  G();
217
231
  return;
218
232
  }
219
233
  ee();
220
- }, w = async (e) => {
221
- const r = V.value?.querySelectorAll(".nmorph-emoji-picker__emoji");
234
+ }, E = async (e) => {
235
+ const r = H.value?.querySelectorAll(".nmorph-emoji-picker__emoji");
222
236
  if (!r?.length) return;
223
237
  const n = Math.min(Math.max(e, 0), r.length - 1);
224
- N.value = n, await fe(), r[n]?.focus();
225
- }, re = { props: i, emit: x, searchQuery: H, expanded: y, selectedGroup: f, activeIndex: N, gridRef: V, fallbackTexts: F, isRecord: d, normalizeSearchValue: q, getStringCandidate: m, toStringList: h, getNumberCandidate: b, getArrayCandidate: K, getEmojiValue: j, hasEmojiValue: R, normalizeVariants: $, getGroupData: P, normalizeEmojiItem: Q, getGroupedChildren: E, normalizeDataSource: U, texts: O, categoryLabels: C, allEmoji: g, labelByEmoji: J, quickItems: M, showCompact: W, query: k, categoryOptions: _, visibleItems: X, visibleSections: Y, visibleFlatItems: B, activeCategoryLabel: Z, bodyLabel: se, canCollapse: T, modifiers: ie, styles: le, getEmojiLabel: ce, selectEmoji: ue, expandHandler: G, collapseHandler: ee, toggleExpandedHandler: pe, focusEmojiButton: w, gridKeydownHandler: (e) => {
226
- if (i.disabled || !B.value.length || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return;
227
- const r = Math.max(1, Math.floor(i.columns)), n = B.value.length - 1, t = {
238
+ x.value = n, await fe(), r[n]?.focus();
239
+ }, re = { props: a, emit: L, searchQuery: V, expanded: y, selectedGroup: f, activeIndex: x, gridRef: H, fallbackTexts: R, isRecord: m, normalizeSearchValue: I, getStringCandidate: d, toStringList: h, getNumberCandidate: b, getArrayCandidate: B, getEmojiValue: j, hasEmojiValue: F, normalizeVariants: $, getGroupData: P, normalizeEmojiItem: Q, getGroupedChildren: N, normalizeDataSource: U, texts: C, categoryLabels: K, allEmoji: g, labelByEmoji: J, quickItems: O, showCompact: W, query: k, categoryOptions: z, visibleItems: X, visibleSections: Y, visibleFlatItems: M, activeCategoryLabel: Z, bodyLabel: ie, canCollapse: _, modifiers: se, styles: le, getEmojiLabel: ce, selectEmoji: ue, expandHandler: G, collapseHandler: ee, toggleExpandedHandler: pe, focusEmojiButton: E, gridKeydownHandler: (e) => {
240
+ if (a.disabled || !M.value.length || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return;
241
+ const r = Math.max(1, Math.floor(a.columns)), n = M.value.length - 1, t = {
228
242
  ArrowRight: 1,
229
243
  ArrowLeft: -1,
230
244
  ArrowDown: r,
231
245
  ArrowUp: -r
232
246
  };
233
- e.key in t && (e.preventDefault(), w(N.value + t[e.key])), e.key === "Home" && (e.preventDefault(), w(0)), e.key === "End" && (e.preventDefault(), w(n));
247
+ e.key in t && (e.preventDefault(), E(x.value + t[e.key])), e.key === "Home" && (e.preventDefault(), E(0)), e.key === "End" && (e.preventDefault(), E(n));
234
248
  }, get NmorphCheckbox() {
235
249
  return xe;
236
250
  }, get NmorphIcon() {
237
251
  return Le;
238
252
  }, get NmorphIconBurger() {
239
- return Se;
253
+ return ve;
240
254
  }, get NmorphIconSearch() {
241
- return ke;
255
+ return Se;
242
256
  }, get NmorphIconSmile() {
243
- return je;
257
+ return ke;
244
258
  }, get NmorphScroll() {
245
- return be;
259
+ return je;
246
260
  }, get NmorphTextInput() {
247
- return he;
261
+ return be;
248
262
  } };
249
263
  return Object.defineProperty(re, "__isScriptSetup", { enumerable: !1, value: !0 }), re;
250
264
  }
251
265
  });
252
266
  export {
253
- _e as default
267
+ Me as default
254
268
  };
@@ -1 +1 @@
1
- .nmorph-empty{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:var(--nmorph-empty-min-height);padding:var(--nmorph-empty-padding);color:var(--nmorph-text-color);text-align:center;border-radius:var(--default-border-radius)}.nmorph-empty .nmorph-empty__icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-empty-icon-size);height:var(--nmorph-empty-icon-size);color:var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__icon .nmorph-icon{--color: var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__title{max-width:100%;font-weight:600;font-size:var(--font-size-large);line-height:var(--line-height-regular);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__description{max-width:min(420px,100%);color:var(--nmorph-semi-contrast-text-color);font-weight:400;font-size:var(--font-size-small);line-height:var(--line-height-loose);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__action{display:flex;justify-content:center;max-width:100%;margin-top:4px}.nmorph-empty.nmorph-empty--nmorph{background:var(--nmorph-main-color)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-inset{box-shadow:var(--nmorph-shadow-inset)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-outset{box-shadow:var(--nmorph-shadow-outset)}.nmorph-empty.nmorph-empty--common{border:1px solid var(--nmorph-gray-color)}
1
+ .nmorph-empty{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:var(--nmorph-private-empty-min-height);padding:var(--nmorph-private-empty-padding);color:var(--nmorph-text-color);text-align:center;border-radius:var(--default-border-radius)}.nmorph-empty .nmorph-empty__icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-empty-icon-size);height:var(--nmorph-private-empty-icon-size);color:var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__title{max-width:100%;font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__description{max-width:min(420px,100%);color:var(--nmorph-semi-contrast-text-color);font-weight:var(--nmorph-typography-body-font-weight);font-size:var(--nmorph-typography-body-font-size);line-height:var(--nmorph-typography-body-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__action{display:flex;justify-content:center;max-width:100%;margin-top:4px}.nmorph-empty.nmorph-empty--nmorph{background:var(--nmorph-main-color)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-inset{box-shadow:var(--nmorph-shadow-inset)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-outset{box-shadow:var(--nmorph-shadow-outset)}.nmorph-empty.nmorph-empty--plain{border:var(--nmorph-plain-border)}
@@ -2,10 +2,10 @@ import './NmorphEmpty.css';
2
2
  import { defineComponent as m, useSlots as u, computed as t } from "vue";
3
3
  import { useModifiers as f } from "../../../utils/create-modifiers.js";
4
4
  import { createCssSizeVariables as c, toCssSize as h } from "../../../utils/common.js";
5
- import { NmorphShadowType as g } from "../../../types/common.types.js";
6
- import y from "../../../assets/icons/folder-opened.svg.js";
5
+ import { NmorphShadowType as y } from "../../../types/common.types.js";
6
+ import g from "../../../assets/icons/folder-opened.svg.js";
7
7
  import S from "../../basic/nmorph-icon/NmorphIcon.vue.js";
8
- const v = /* @__PURE__ */ m({
8
+ const z = /* @__PURE__ */ m({
9
9
  __name: "NmorphEmpty",
10
10
  props: {
11
11
  title: { type: String, required: !1, default: "No data" },
@@ -13,7 +13,7 @@ const v = /* @__PURE__ */ m({
13
13
  iconSize: { type: [Number, String], required: !1, default: 56 },
14
14
  minHeight: { type: [Number, String], required: !1, default: 160 },
15
15
  padding: { type: [Number, String], required: !1, default: "var(--indentation-05)" },
16
- design: { type: String, required: !1, default: "nmorph" },
16
+ design: { type: null, required: !1, default: "nmorph" },
17
17
  shadowType: { type: null, required: !1, default: "inset" },
18
18
  hideIcon: { type: Boolean, required: !1, default: !1 },
19
19
  role: { type: String, required: !1, default: "status" },
@@ -22,21 +22,21 @@ const v = /* @__PURE__ */ m({
22
22
  },
23
23
  setup(o, { expose: n }) {
24
24
  n();
25
- const e = o, r = u(), s = t(() => !e.hideIcon || !!r.icon), a = t(() => !!(e.description || r.description)), p = t(() => e.ariaLabel || e.title), d = t(
25
+ const e = o, r = u(), a = t(() => !e.hideIcon || !!r.icon), p = t(() => !!(e.description || r.description)), s = t(() => e.ariaLabel || e.title), d = t(
26
26
  () => f({
27
- nmorph: [e.design === "nmorph" ? g[e.shadowType] : ""],
27
+ nmorph: [e.design === "nmorph" ? y[e.shadowType] : ""],
28
28
  "nmorph-empty": [e.design]
29
29
  })
30
30
  ), l = t(
31
31
  () => c({
32
- "--nmorph-empty-icon-size": e.iconSize,
33
- "--nmorph-empty-min-height": e.minHeight,
34
- "--nmorph-empty-padding": e.padding
32
+ "--nmorph-private-empty-icon-size": e.iconSize,
33
+ "--nmorph-private-empty-min-height": e.minHeight,
34
+ "--nmorph-private-empty-padding": e.padding
35
35
  })
36
- ), i = { props: e, slots: r, hasIcon: s, hasDescription: a, label: p, modifiers: d, styles: l, get NmorphIcon() {
36
+ ), i = { props: e, slots: r, hasIcon: a, hasDescription: p, label: s, modifiers: d, styles: l, get NmorphIcon() {
37
37
  return S;
38
38
  }, get NmorphIconFolderOpened() {
39
- return y;
39
+ return g;
40
40
  }, get toCssSize() {
41
41
  return h;
42
42
  } };
@@ -44,5 +44,5 @@ const v = /* @__PURE__ */ m({
44
44
  }
45
45
  });
46
46
  export {
47
- v as default
47
+ z as default
48
48
  };
@@ -1 +1 @@
1
- .nmorph-file-card{display:flex;gap:var(--indentation-03);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--nmorph-file-card-height, auto);min-height:var(--nmorph-file-card-height, 64px);padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-file-card .nmorph-file-card__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border-radius:var(--default-border-radius);--color: currentColor}.nmorph-file-card .nmorph-file-card__icon-action{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 36%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-file-card .nmorph-file-card__icon-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 48%,transparent)}.nmorph-file-card .nmorph-file-card__icon-action .nmorph-icon{--nmorph-icon-color: var(--nmorph-contrast-text-color);--color: var(--nmorph-contrast-text-color)}.nmorph-file-card .nmorph-file-card__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-01);min-width:0}.nmorph-file-card .nmorph-file-card__info{display:flex;flex-direction:column;gap:2px;min-width:0}.nmorph-file-card .nmorph-file-card__name,.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-card .nmorph-file-card__name{font-weight:600;font-size:var(--font-size-small);line-height:var(--line-height-regular)}.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{font-size:var(--font-size-extra-small);line-height:var(--line-height-regular)}.nmorph-file-card .nmorph-file-card__meta{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__error{color:var(--nmorph-error-text-color)}.nmorph-file-card .nmorph-file-card__audio-preview,.nmorph-file-card .nmorph-file-card__video-preview,.nmorph-file-card .nmorph-file-card__image-preview{width:100%;min-width:0}.nmorph-file-card .nmorph-file-card__image-preview{display:block;height:var(--nmorph-file-card-media-height, 120px);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-file-card .nmorph-file-card__image-preview .nmorph-file-card__image{display:block;width:100%;max-width:100%;height:100%;object-fit:cover}.nmorph-file-card .nmorph-file-card__badge{flex:0 0 auto;max-width:72px;padding:2px 6px;overflow:hidden;color:var(--nmorph-accent-color);font-weight:700;font-size:var(--font-size-extra-small);line-height:var(--line-height-regular);white-space:nowrap;text-transform:uppercase;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__visual-size{position:absolute;right:var(--indentation-02);bottom:var(--indentation-02);z-index:2;display:inline-flex;align-items:center;min-width:0;max-width:calc(100% - var(--indentation-04));min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);font-size:var(--font-size-extra-small);line-height:var(--line-height-regular);white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-file-card .nmorph-file-card__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-file-card .nmorph-file-card__action-link,.nmorph-file-card .nmorph-file-card__action-loader{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:inherit;line-height:1;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-file-card .nmorph-file-card__action-link .nmorph-icon{--color: currentColor}.nmorph-file-card .nmorph-file-card__action-loader{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__action-loader .nmorph-icon{--color: currentColor}.nmorph-file-card.nmorph-file-card--custom-actions,.nmorph-file-card.nmorph-file-card--compact{position:relative;padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--custom-actions .nmorph-file-card__actions,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{position:absolute;top:var(--indentation-03);right:var(--indentation-03);z-index:3}.nmorph-file-card.nmorph-file-card--compact{min-height:var(--nmorph-file-card-height, 52px);padding:var(--indentation-02);padding-inline-end:calc(var(--indentation-02) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__icon{width:30px;height:30px}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__audio-preview,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__video-preview{margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__image-preview{height:var(--nmorph-file-card-media-height, 96px);margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-02);right:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-audio.nmorph-file-card--no-actions .nmorph-file-card__body{padding-inline-end:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-visual{position:relative;display:block;gap:0;min-height:0;padding:0;padding-inline-end:0;overflow:hidden}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__body{position:relative;display:block;width:100%;min-width:0;height:100%}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__info{position:absolute;top:var(--indentation-02);left:var(--indentation-02);z-index:2;max-width:calc(100% - 48px);pointer-events:none}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__name{display:block;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview__media,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image{display:block;width:100%;max-width:none;height:var(--nmorph-file-card-media-height, 100%);border-radius:inherit;object-fit:cover}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link .nmorph-icon,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader .nmorph-icon{flex:0 0 auto;--nmorph-icon-color: var(--nmorph-contrast-text-color);--color: var(--nmorph-contrast-text-color)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link:hover{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-file-card__info{max-width:calc(100% - 112px)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-video-preview__actions{right:calc(var(--indentation-02) + 26px)}.nmorph-file-card.nmorph-file-card--media-image .nmorph-file-card__image-preview{border-radius:inherit}.nmorph-file-card.nmorph-file-card--error{outline:1px solid var(--nmorph-error-color)}.nmorph-file-card.nmorph-file-card--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-file-card.nmorph-file-card--soft .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--plain{background:transparent;box-shadow:none}.nmorph-file-card.nmorph-file-card--plain .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--icon-plain .nmorph-file-card__icon{background:transparent}
1
+ .nmorph-file-card{display:flex;gap:var(--indentation-03);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--nmorph-private-file-card-height, auto);min-height:var(--nmorph-private-file-card-height, 64px);padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-file-card .nmorph-file-card__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border-radius:var(--default-border-radius);--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__icon-action{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 36%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-file-card .nmorph-file-card__icon-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 48%,transparent)}.nmorph-file-card .nmorph-file-card__icon-action .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card .nmorph-file-card__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-01);min-width:0}.nmorph-file-card .nmorph-file-card__info{display:flex;flex-direction:column;gap:2px;min-width:0}.nmorph-file-card .nmorph-file-card__name,.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-card .nmorph-file-card__name{font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size);line-height:var(--nmorph-typography-label-line-height)}.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-file-card .nmorph-file-card__meta{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__error{color:var(--nmorph-error-text-color)}.nmorph-file-card .nmorph-file-card__audio-preview,.nmorph-file-card .nmorph-file-card__video-preview,.nmorph-file-card .nmorph-file-card__image-preview{width:100%;min-width:0}.nmorph-file-card .nmorph-file-card__image-preview{display:block;height:var(--nmorph-private-file-card-media-height, 120px);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-file-card .nmorph-file-card__image-preview .nmorph-file-card__image{display:block;width:100%;max-width:100%;height:100%;object-fit:cover}.nmorph-file-card .nmorph-file-card__badge{flex:0 0 auto;max-width:72px;padding:2px 6px;overflow:hidden;color:var(--nmorph-accent-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-transform:uppercase;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__visual-size{position:absolute;right:var(--indentation-02);bottom:var(--indentation-02);z-index:2;display:inline-flex;align-items:center;min-width:0;max-width:calc(100% - var(--indentation-04));min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-file-card .nmorph-file-card__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-file-card .nmorph-file-card__action-link,.nmorph-file-card .nmorph-file-card__action-loader{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:inherit;line-height:1;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-file-card .nmorph-file-card__action-link .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__action-loader{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__action-loader .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card.nmorph-file-card--custom-actions,.nmorph-file-card.nmorph-file-card--compact{position:relative;padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--custom-actions .nmorph-file-card__actions,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{position:absolute;top:var(--indentation-03);right:var(--indentation-03);z-index:3}.nmorph-file-card.nmorph-file-card--compact{min-height:var(--nmorph-private-file-card-height, 52px);padding:var(--indentation-02);padding-inline-end:calc(var(--indentation-02) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__icon{width:30px;height:30px}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__audio-preview,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__video-preview{margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__image-preview{height:var(--nmorph-private-file-card-media-height, 96px);margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-02);right:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-audio.nmorph-file-card--no-actions .nmorph-file-card__body{padding-inline-end:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-visual{position:relative;display:block;gap:0;min-height:0;padding:0;padding-inline-end:0;overflow:hidden}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__body{position:relative;display:block;width:100%;min-width:0;height:100%}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__info{position:absolute;top:var(--indentation-02);left:var(--indentation-02);z-index:2;max-width:calc(100% - 48px);pointer-events:none}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__name{display:block;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview__media,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image{display:block;width:100%;max-width:none;height:var(--nmorph-private-file-card-media-height, 100%);border-radius:inherit;object-fit:cover}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link .nmorph-icon,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link:hover{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-file-card__info{max-width:calc(100% - 112px)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-video-preview__actions{right:calc(var(--indentation-02) + 26px)}.nmorph-file-card.nmorph-file-card--media-image .nmorph-file-card__image-preview{border-radius:inherit}.nmorph-file-card.nmorph-file-card--error{outline:1px solid var(--nmorph-error-color)}.nmorph-file-card.nmorph-file-card--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-file-card.nmorph-file-card--soft .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--plain{background:transparent;box-shadow:none}.nmorph-file-card.nmorph-file-card--plain .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--icon-plain .nmorph-file-card__icon{background:transparent}
@@ -54,8 +54,8 @@ const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
54
54
  () => d.value || a.value || i.value
55
55
  ), m = r(() => a.value || i.value), B = r(() => e.height ?? (e.compact ? "96px" : "120px")), L = r(
56
56
  () => J({
57
- "--nmorph-file-card-height": e.height,
58
- "--nmorph-file-card-media-height": B.value
57
+ "--nmorph-private-file-card-height": e.height,
58
+ "--nmorph-private-file-card-media-height": B.value
59
59
  })
60
60
  ), D = r(() => m.value ? e.showName : e.showName || e.showMeta && !!(e.error && e.errorText || S.value)), I = r(() => !e.previewSrc || e.loading || e.error ? [] : i.value ? [
61
61
  {
@@ -1 +1 @@
1
- .nmorph-image{--width: auto;--height: 100%;display:flex;justify-content:center;align-items:center;width:var(--width);height:var(--height)}.nmorph-image.nmorph--shadow-combined{border:var(--nmorph-image-frame-border) solid var(--nmorph-main-color)}.nmorph-image img{width:100%;height:100%;object-fit:var(--nmorph-image-fit)}.nmorph-image__loading,.nmorph-image__load-failed{padding:1rem}.nmorph-image--hide img{width:0;height:0;opacity:0}
1
+ .nmorph-image{--nmorph-private-image-width: auto;--nmorph-private-image-height: 100%;--nmorph-private-image-radius: var(--default-border-radius);--nmorph-private-image-background: transparent;--nmorph-private-image-border: none;--nmorph-private-image-shadow: none;position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:var(--nmorph-private-image-width);height:var(--nmorph-private-image-height);overflow:hidden;background:var(--nmorph-private-image-background);border:var(--nmorph-private-image-border);border-radius:var(--nmorph-private-image-radius);box-shadow:var(--nmorph-private-image-shadow)}.nmorph-image:not(.nmorph-image--plain){--nmorph-private-image-background: var(--nmorph-main-color);--nmorph-private-image-shadow: var(--nmorph-shadow-combined)}.nmorph-image:not(.nmorph-image--plain).nmorph-image--framed{--nmorph-private-image-border: var(--nmorph-private-image-frame-border) solid var(--nmorph-main-color)}.nmorph-image--plain.nmorph-image--framed{--nmorph-private-image-background: var(--nmorph-main-color);--nmorph-private-image-border: var(--nmorph-plain-border);--nmorph-private-image-shadow: none}.nmorph-image img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:var(--nmorph-private-image-fit)}.nmorph-image__loading,.nmorph-image__load-failed{display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:100%;padding:1rem;text-align:center}.nmorph-image--hide img{width:0;height:0;opacity:0}
@@ -1,37 +1,49 @@
1
1
  import './NmorphImage.css';
2
- import { defineComponent as _, computed as t, ref as s } from "vue";
3
- import { useModifiers as y } from "../../../utils/create-modifiers.js";
4
- import { useI18n as h } from "vue-i18n";
5
- const b = /* @__PURE__ */ _({
2
+ import { defineComponent as S, computed as r, ref as u } from "vue";
3
+ import { useModifiers as q } from "../../../utils/create-modifiers.js";
4
+ import { createCssSizeVariables as T } from "../../../utils/common.js";
5
+ import { useI18n as _ } from "vue-i18n";
6
+ const I = /* @__PURE__ */ S({
6
7
  __name: "NmorphImage",
7
8
  props: {
9
+ design: { type: null, required: !1, default: "nmorph" },
8
10
  loadingText: { type: String, required: !1, default: "" },
9
11
  loadFailedText: { type: String, required: !1, default: "" },
10
12
  frameBorder: { type: Number, required: !1, default: 4 },
11
13
  src: { type: String, required: !1 },
12
14
  srcSet: { type: String, required: !1, default: "" },
15
+ width: { type: [Number, String], required: !1, default: void 0 },
16
+ height: { type: [Number, String], required: !1, default: void 0 },
13
17
  fit: { type: null, required: !1, default: "cover" },
14
18
  alt: { type: String, required: !1, default: "" }
15
19
  },
16
20
  emits: ["error", "load"],
17
- setup(u, { expose: m, emit: f }) {
18
- m();
19
- const { t: o } = h(), e = u, p = t(() => e.loadingText ? e.loadingText : o("loadingText")), c = t(() => e.loadFailedText ? e.loadFailedText : o("loadFailedText")), r = s(!1), a = s(!1), d = f, g = (i) => {
20
- r.value = !0, a.value = !1, d("load", i);
21
- }, x = (i) => {
22
- r.value = !0, a.value = !0, d("error", i);
23
- }, l = t(() => r.value && a.value), v = t(
24
- () => y({
25
- nmorph: [e.frameBorder > 0 && "shadow-combined"],
26
- "nmorph-image": [(l.value || !r.value) && "hide"]
21
+ setup(m, { expose: p, emit: f }) {
22
+ p();
23
+ const { t: o } = _(), e = m, g = r(() => e.loadingText ? e.loadingText : o("loadingText")), c = r(() => e.loadFailedText ? e.loadFailedText : o("loadFailedText")), t = u(!1), a = u(!1), i = f, h = (l) => {
24
+ t.value = !0, a.value = !1, i("load", l);
25
+ }, v = (l) => {
26
+ t.value = !0, a.value = !0, i("error", l);
27
+ }, n = r(() => t.value && a.value), d = r(() => e.design || "nmorph"), x = r(
28
+ () => q({
29
+ nmorph: [d.value === "nmorph" ? "shadow-combined" : ""],
30
+ "nmorph-image": [
31
+ d.value,
32
+ e.frameBorder > 0 && "framed",
33
+ (n.value || !t.value) && "hide"
34
+ ]
27
35
  })
28
- ), T = t(() => ({
29
- "--nmorph-image-fit": e.fit || "cover",
30
- "--nmorph-image-frame-border": `${e.frameBorder}px`
31
- })), n = { t: o, props: e, computedLoadingText: p, computedLoadFailedText: c, imageLoadFinished: r, imageLoadError: a, emit: d, onImageLoad: g, onImageError: x, loadingFailed: l, modifiers: v, styles: T };
32
- return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
36
+ ), y = r(() => ({
37
+ ...T({
38
+ "--nmorph-private-image-width": e.width,
39
+ "--nmorph-private-image-height": e.height
40
+ }),
41
+ "--nmorph-private-image-fit": e.fit || "cover",
42
+ "--nmorph-private-image-frame-border": `${e.frameBorder}px`
43
+ })), s = { t: o, props: e, computedLoadingText: g, computedLoadFailedText: c, imageLoadFinished: t, imageLoadError: a, emit: i, onImageLoad: h, onImageError: v, loadingFailed: n, resolvedDesign: d, modifiers: x, styles: y };
44
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
33
45
  }
34
46
  });
35
47
  export {
36
- b as default
48
+ I as default
37
49
  };
@@ -1 +1 @@
1
- .nmorph-image-preview{--width: 50px;--height: 50px;--nmorph-image-preview-radius: var(--default-border-radius);width:var(--width);height:var(--height);overflow:hidden;border-radius:var(--nmorph-image-preview-radius)}.nmorph-image-preview .nmorph-image-preview__trigger{position:relative;width:100%;height:100%;cursor:pointer}.nmorph-image-preview .nmorph-image-preview__trigger:hover{filter:brightness(.8)}.nmorph-image-preview .nmorph-image-preview__trigger .nmorph-image{width:100%;height:100%}.nmorph-image-preview.nmorph-image-preview--gallery-trigger{width:auto;height:auto;overflow:visible}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger{display:flex;flex-wrap:wrap;gap:var(--nmorph-image-preview-trigger-gap, 8px);width:auto;height:auto}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger:hover{filter:none}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item{position:relative;display:block;width:var(--width);height:var(--height);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--nmorph-image-preview-radius);cursor:pointer}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item:hover{filter:brightness(.8)}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item .nmorph-image{width:100%;height:100%}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-more{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:var(--nmorph-white-color);font-weight:600;line-height:var(--line-height-regular);background:color-mix(in srgb,var(--nmorph-black-color) 60%,transparent);pointer-events:none}.nmorph-image-preview__portal{display:contents}.nmorph-image-preview__portal .nmorph-image-preview__content .nmorph-image{width:100%;height:100%;pointer-events:none}.nmorph-image-preview__portal .nmorph-image-preview__content .nmorph-image img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:auto}.nmorph-image-preview__portal .nmorph-image-preview__action-element{margin-right:var(--indentation-03)}
1
+ .nmorph-image-preview{--nmorph-private-image-preview-trigger-width: 50px;--nmorph-private-image-preview-trigger-height: 50px;--nmorph-private-image-preview-radius: var(--default-border-radius);width:var(--nmorph-private-image-preview-trigger-width);height:var(--nmorph-private-image-preview-trigger-height);overflow:hidden;border-radius:var(--nmorph-private-image-preview-radius)}.nmorph-image-preview .nmorph-image-preview__trigger{position:relative;width:100%;height:100%;cursor:pointer}.nmorph-image-preview .nmorph-image-preview__trigger:hover{filter:brightness(.8)}.nmorph-image-preview .nmorph-image-preview__trigger .nmorph-image{width:100%;height:100%}.nmorph-image-preview .nmorph-image-preview__trigger .nmorph-image__loading,.nmorph-image-preview .nmorph-image-preview__trigger .nmorph-image__load-failed{min-width:0;padding:var(--indentation-01);overflow:hidden;font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);overflow-wrap:anywhere}.nmorph-image-preview.nmorph-image-preview--gallery-trigger{width:auto;height:auto;overflow:visible}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger{display:flex;flex-wrap:wrap;gap:var(--nmorph-private-image-preview-trigger-gap, 8px);width:auto;height:auto}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger:hover{filter:none}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item{position:relative;display:block;width:var(--nmorph-private-image-preview-trigger-width);height:var(--nmorph-private-image-preview-trigger-height);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--nmorph-private-image-preview-radius);cursor:pointer}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item:hover{filter:brightness(.8)}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item .nmorph-image{width:100%;height:100%}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-more{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:var(--nmorph-white-color);font-weight:var(--font-weight-semibold);line-height:var(--nmorph-typography-body-line-height);background:color-mix(in srgb,var(--nmorph-black-color) 60%,transparent);pointer-events:none}.nmorph-image-preview__portal{display:contents}.nmorph-image-preview__portal .nmorph-image-preview__content .nmorph-image{width:100%;height:100%;pointer-events:none}.nmorph-image-preview__portal .nmorph-image-preview__content .nmorph-image img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:auto}.nmorph-image-preview__portal .nmorph-image-preview__action-element{margin-right:var(--indentation-03)}