@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,81 +1,83 @@
1
1
  import './NmorphCalendar.css';
2
2
  import f from "./NmorphCalendar.vue2.js";
3
- import { openBlock as o, createElementBlock as r, normalizeStyle as k, normalizeClass as i, renderSlot as n, createVNode as s, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as C, createTextVNode as _, toDisplayString as m } from "vue";
3
+ import { openBlock as o, createElementBlock as n, normalizeStyle as k, normalizeClass as h, renderSlot as r, createVNode as s, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as C, createTextVNode as _, toDisplayString as m } from "vue";
4
4
  /* empty css */
5
5
  import v from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const T = ["data-date", "onClick"];
7
- function B(d, M, p, a, w, x) {
8
- return o(), r(
6
+ const g = ["data-date", "onClick"];
7
+ function T(d, p, B, a, M, w) {
8
+ return o(), n(
9
9
  "div",
10
10
  {
11
- class: i(a.modifiers),
11
+ class: h(a.modifiers),
12
12
  style: k(a.styles)
13
13
  },
14
14
  [
15
- n(d.$slots, "header", {}, () => [
15
+ r(d.$slots, "header", {}, () => [
16
16
  s(a.NmorphCalendarHeader, {
17
17
  year: a.initialDate.getFullYear(),
18
18
  month: a.initialDate.getMonth(),
19
+ design: a.props.design,
19
20
  "show-previous-month-button": a.showHeaderButtons.showPreviousMonthButton,
20
21
  "show-today-button": a.showHeaderButtons.showTodayButton,
21
22
  "show-next-month-button": a.showHeaderButtons.showNextMonthButton,
22
23
  onClickNextMonth: a.setNextMonth,
23
24
  onClickPreviousMonth: a.setPreviousMonth,
24
25
  onClickToday: a.setTodayMonth
25
- }, null, 8, ["year", "month", "show-previous-month-button", "show-today-button", "show-next-month-button"])
26
+ }, null, 8, ["year", "month", "design", "show-previous-month-button", "show-today-button", "show-next-month-button"])
26
27
  ]),
27
- n(d.$slots, "content", {}, () => [
28
+ r(d.$slots, "content", {}, () => [
28
29
  s(a.NmorphTable, {
29
30
  data: a.calendar,
30
31
  bordered: "",
31
- "row-hover": !1
32
+ "row-hover": !1,
33
+ design: a.props.design
32
34
  }, {
33
35
  default: l(() => [
34
- (o(!0), r(
36
+ (o(!0), n(
35
37
  c,
36
38
  null,
37
- y(a.days, (t) => (o(), D(a.NmorphTableColumn, {
38
- key: `${t}`,
39
- prop: t,
40
- label: t.toUpperCase()
39
+ y(a.days, (e) => (o(), D(a.NmorphTableColumn, {
40
+ key: `${e}`,
41
+ prop: e,
42
+ label: e.toUpperCase()
41
43
  }, {
42
44
  default: l(({ scope: b }) => [
43
- (o(!0), r(
45
+ (o(!0), n(
44
46
  c,
45
47
  null,
46
- y(b.rows, (e, h) => (o(), D(a.NmorphTableCell, {
47
- key: h,
48
- row: h
48
+ y(b.rows, (t, i) => (o(), D(a.NmorphTableCell, {
49
+ key: i,
50
+ row: i
49
51
  }, {
50
52
  default: l(() => [
51
53
  C("div", {
52
- "data-date": `${a.dateData(e[t]).date}`,
53
- class: i([
54
+ "data-date": `${a.dateData(t[e]).date}`,
55
+ class: h([
54
56
  "nmorph-calendar-date",
55
- `nmorph-calendar-date--${a.dateData(e[t]).monthType}`,
57
+ `nmorph-calendar-date--${a.dateData(t[e]).monthType}`,
56
58
  {
57
- "nmorph-calendar-date--today": a.dateData(e[t]).isToday && !a.dateData(e[t]).hidden && a.props.markToday
59
+ "nmorph-calendar-date--today": a.dateData(t[e]).isToday && !a.dateData(t[e]).hidden && a.props.markToday
58
60
  },
59
- { "nmorph-calendar-date--hidden": a.dateData(e[t]).hidden },
61
+ { "nmorph-calendar-date--hidden": a.dateData(t[e]).hidden },
60
62
  {
61
- "nmorph-calendar-date--selected": a.isValueSelected(a.dateData(e[t]).date)
63
+ "nmorph-calendar-date--selected": a.isValueSelected(a.dateData(t[e]).date)
62
64
  }
63
65
  ]),
64
- onClick: (S) => a.clickDate(a.dateData(e[t]))
66
+ onClick: (x) => a.clickDate(a.dateData(t[e]))
65
67
  }, [
66
- n(d.$slots, "date-cell", {
68
+ r(d.$slots, "date-cell", {
67
69
  scope: {
68
- ...a.dateData(e[t]),
69
- selected: a.isValueSelected(a.dateData(e[t]).date)
70
+ ...a.dateData(t[e]),
71
+ selected: a.isValueSelected(a.dateData(t[e]).date)
70
72
  }
71
73
  }, () => [
72
74
  _(
73
- m(a.dateData(e[t]).hidden ? "-" : a.dateData(e[t]).value),
75
+ m(a.dateData(t[e]).hidden ? "-" : a.dateData(t[e]).value),
74
76
  1
75
77
  /* TEXT */
76
78
  )
77
79
  ])
78
- ], 10, T)
80
+ ], 10, g)
79
81
  ]),
80
82
  _: 2
81
83
  /* DYNAMIC */
@@ -93,14 +95,14 @@ function B(d, M, p, a, w, x) {
93
95
  ]),
94
96
  _: 3
95
97
  /* FORWARDED */
96
- }, 8, ["data"])
98
+ }, 8, ["data", "design"])
97
99
  ])
98
100
  ],
99
101
  6
100
102
  /* CLASS, STYLE */
101
103
  );
102
104
  }
103
- const z = /* @__PURE__ */ v(f, [["render", B], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/NmorphCalendar.vue"]]);
105
+ const z = /* @__PURE__ */ v(f, [["render", T], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/NmorphCalendar.vue"]]);
104
106
  export {
105
107
  z as default
106
108
  };
@@ -1,5 +1,5 @@
1
1
  import './NmorphCalendar.css';
2
- import { defineComponent as R, ref as x, onMounted as O, reactive as k, watch as v, computed as i } from "vue";
2
+ import { defineComponent as R, ref as x, onMounted as O, reactive as k, watch as v, computed as s } from "vue";
3
3
  import { useModifiers as j } from "../../../utils/create-modifiers.js";
4
4
  import { createCssSizeVariables as z } from "../../../utils/common.js";
5
5
  import W from "./inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js";
@@ -16,17 +16,18 @@ const ue = /* @__PURE__ */ R({
16
16
  range: { type: null, required: !1, default: void 0 },
17
17
  type: { type: null, required: !1, default: "date" },
18
18
  modelValue: { type: [Date, Array, null], required: !1, default: () => /* @__PURE__ */ new Date() },
19
- cellHeight: { type: [Number, String], required: !1, default: void 0 }
19
+ cellHeight: { type: [Number, String], required: !1, default: void 0 },
20
+ design: { type: null, required: !1, default: "nmorph" }
20
21
  },
21
22
  emits: ["update:model-value", "update-initial-date"],
22
23
  setup(N, { expose: b, emit: _ }) {
23
24
  b();
24
- const r = N, s = _, { days: h } = Z(), y = () => {
25
- o.value = M.value;
25
+ const r = N, i = _, { days: h } = Z(), y = () => {
26
+ l.value = M.value;
26
27
  }, C = () => {
27
- o.value = /* @__PURE__ */ new Date();
28
+ l.value = /* @__PURE__ */ new Date();
28
29
  }, g = () => {
29
- o.value = A.value;
30
+ l.value = A.value;
30
31
  }, u = () => {
31
32
  throw new Error("model value and type prop not matched");
32
33
  }, c = (e) => {
@@ -36,36 +37,36 @@ const ue = /* @__PURE__ */ R({
36
37
  return d(e);
37
38
  u();
38
39
  }
39
- const l = Array.isArray(e) && e.every((a) => a instanceof Date);
40
+ const o = Array.isArray(e) && e.every((a) => a instanceof Date);
40
41
  if (r.type === "dates") {
41
- if (l)
42
+ if (o)
42
43
  return e.map((a) => d(a));
43
44
  u();
44
45
  }
45
46
  if (r.type === "daterange") {
46
- if (l)
47
+ if (o)
47
48
  return e.map((a) => d(a)).slice(0, 2);
48
49
  u();
49
50
  }
50
- }, B = (e) => {
51
+ }, q = (e) => {
51
52
  if (t.value === null) return;
52
- const { monthType: l, hidden: a } = e;
53
+ const { monthType: o, hidden: a } = e;
53
54
  if (a) return;
54
- l === "next" && g(), l === "previous" && y();
55
+ o === "next" && g(), o === "previous" && y();
55
56
  const { date: n } = e;
56
- if (r.type === "date" && (t.value = n, s("update:model-value", t.value)), r.type === "dates") {
57
+ if (r.type === "date" && (t.value = n, i("update:model-value", t.value)), r.type === "dates") {
57
58
  if (!Array.isArray(t.value)) return u();
58
59
  const m = n.toDateString(), w = t.value.map((P) => P.toDateString()).indexOf(m);
59
- w !== -1 ? t.value.splice(w, 1) : t.value.push(n), s("update:model-value", t.value);
60
+ w !== -1 ? t.value.splice(w, 1) : t.value.push(n), i("update:model-value", t.value);
60
61
  }
61
62
  if (r.type === "daterange") {
62
63
  if (!Array.isArray(t.value)) return u();
63
- t.value.length === 0 ? t.value.push(n) : t.value.length === 1 ? n < t.value[0] ? t.value = [n, t.value[0]] : t.value.push(n) : t.value = [n], s("update:model-value", t.value.slice(0, 2));
64
+ t.value.length === 0 ? t.value.push(n) : t.value.length === 1 ? n < t.value[0] ? t.value = [n, t.value[0]] : t.value.push(n) : t.value = [n], i("update:model-value", t.value.slice(0, 2));
64
65
  }
65
- }, D = (e, l) => {
66
- const [a, n] = l;
67
- return l.length === 1 ? e.toDateString() === a.toDateString() : a && n ? e >= d(a) && e <= d(n) : !1;
68
- }, V = (e) => {
66
+ }, D = (e, o) => {
67
+ const [a, n] = o;
68
+ return o.length === 1 ? e.toDateString() === a.toDateString() : a && n ? e >= d(a) && e <= d(n) : !1;
69
+ }, B = (e) => {
69
70
  if (t.value === null) return !1;
70
71
  if (r.type === "date")
71
72
  return Array.isArray(t.value) ? u() : t.value.toDateString() === e.toDateString();
@@ -73,15 +74,15 @@ const ue = /* @__PURE__ */ R({
73
74
  return Array.isArray(t.value) ? !!t.value.find((a) => a.toDateString() === e.toDateString()) : u();
74
75
  if (r.type === "daterange")
75
76
  return Array.isArray(t.value) ? D(e, t.value) : u();
76
- }, o = x(r.initialDate), t = x(c(r.modelValue));
77
+ }, l = x(r.initialDate), t = x(c(r.modelValue));
77
78
  O(() => {
78
- s("update:model-value", t.value);
79
+ i("update:model-value", t.value);
79
80
  });
80
81
  let p = k([]);
81
82
  const f = () => {
82
- p = [], K(o, r.range).forEach((l) => {
83
+ p = [], K(l, r.range).forEach((o) => {
83
84
  const a = {};
84
- l.forEach((n, m) => {
85
+ o.forEach((n, m) => {
85
86
  const T = h[m];
86
87
  a[T] = n;
87
88
  }), p.push(a);
@@ -90,41 +91,41 @@ const ue = /* @__PURE__ */ R({
90
91
  v(
91
92
  () => r.initialDate,
92
93
  (e) => {
93
- o.value = e;
94
+ l.value = e;
94
95
  },
95
96
  {
96
97
  deep: !0
97
98
  }
98
- ), v(o, () => {
99
- f(), s("update-initial-date", o.value);
99
+ ), v(l, () => {
100
+ f(), i("update-initial-date", l.value);
100
101
  }), v(
101
102
  () => r.modelValue,
102
103
  (e) => {
103
104
  t.value = c(e);
104
105
  }
105
106
  );
106
- const M = i(() => new Date(o.value.setMonth(o.value.getMonth() - 1))), A = i(() => new Date(o.value.setMonth(o.value.getMonth() + 1))), q = i(() => {
107
- const { range: e } = r, l = e ? F(o.value, e[0]) : !0, a = e ? G(o.value, e[1]) : !0, n = J(e);
107
+ const M = s(() => new Date(l.value.setMonth(l.value.getMonth() - 1))), A = s(() => new Date(l.value.setMonth(l.value.getMonth() + 1))), V = s(() => {
108
+ const { range: e } = r, o = e ? F(l.value, e[0]) : !0, a = e ? G(l.value, e[1]) : !0, n = J(e);
108
109
  return {
109
- showPreviousMonthButton: l,
110
+ showPreviousMonthButton: o,
110
111
  showNextMonthButton: a,
111
112
  showTodayButton: n
112
113
  };
113
- }), E = i(
114
+ }), E = s(
114
115
  () => j({
115
116
  "nmorph-calendar": []
116
117
  })
117
- ), H = i(
118
+ ), H = s(
118
119
  () => z({
119
- "--table-data-cell-height": r.cellHeight
120
+ "--nmorph-private-calendar-cell-height": r.cellHeight
120
121
  })
121
122
  ), I = (e) => e;
122
123
  f();
123
- const S = { props: r, emit: s, days: h, setPreviousMonth: y, setTodayMonth: C, setNextMonth: g, wrongType: u, convertValue: c, clickDate: B, isDateInRange: D, isValueSelected: V, initialDate: o, selectedValue: t, get calendar() {
124
+ const S = { props: r, emit: i, days: h, setPreviousMonth: y, setTodayMonth: C, setNextMonth: g, wrongType: u, convertValue: c, clickDate: q, isDateInRange: D, isValueSelected: B, initialDate: l, selectedValue: t, get calendar() {
124
125
  return p;
125
126
  }, set calendar(e) {
126
127
  p = e;
127
- }, updateCalendar: f, prevMonth: M, nextMonth: A, showHeaderButtons: q, modifiers: E, styles: H, dateData: I, get NmorphTable() {
128
+ }, updateCalendar: f, prevMonth: M, nextMonth: A, showHeaderButtons: V, modifiers: E, styles: H, dateData: I, get NmorphTable() {
128
129
  return U;
129
130
  }, get NmorphTableColumn() {
130
131
  return Q;
@@ -1 +1 @@
1
- .nmorph-calendar-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:8px}.nmorph-calendar-header .nmorph-calendar-header__actions{display:flex}.nmorph-calendar-header .nmorph-calendar-header__action:nth-child(2){margin:0 var(--indentation-03)}.nmorph-calendar-header .nmorph-calendar-header__text{width:160px;margin-right:8px;font-weight:800;font-size:var(--font-size-extra-large);line-height:var(--line-height-loose)}
1
+ .nmorph-calendar-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:8px}.nmorph-calendar-header .nmorph-calendar-header__actions{display:flex}.nmorph-calendar-header .nmorph-calendar-header__action:nth-child(2){margin:0 var(--indentation-03)}.nmorph-calendar-header .nmorph-calendar-header__text{width:160px;margin-right:8px;font-weight:var(--font-weight-extrabold);font-size:var(--nmorph-typography-title-large-font-size);line-height:var(--nmorph-typography-title-large-line-height)}
@@ -1,17 +1,17 @@
1
1
  import './NmorphCalendarHeader.css';
2
- import s from "./NmorphCalendarHeader.vue2.js";
3
- import { openBlock as r, createElementBlock as _, normalizeClass as f, renderSlot as p, createElementVNode as m, toDisplayString as c, createBlock as l, withCtx as n, createVNode as t, createCommentVNode as d } from "vue";
2
+ import h from "./NmorphCalendarHeader.vue2.js";
3
+ import { openBlock as n, createElementBlock as _, normalizeClass as f, renderSlot as p, createElementVNode as m, toDisplayString as c, createBlock as d, withCtx as r, createVNode as t, createCommentVNode as i } from "vue";
4
4
  /* empty css */
5
5
  import N from "../../../../../_virtual/_plugin-vue_export-helper.js";
6
- const k = { class: "nmorph-calendar-header__text" }, v = { class: "nmorph-calendar-header__actions" };
7
- function u(h, e, a, o, y, B) {
8
- return r(), _(
6
+ const k = { class: "nmorph-calendar-header__text" }, g = { class: "nmorph-calendar-header__actions" };
7
+ function v(s, e, a, o, y, B) {
8
+ return n(), _(
9
9
  "div",
10
10
  {
11
11
  class: f(o.modifiers)
12
12
  },
13
13
  [
14
- p(h.$slots, "default", {}, () => [
14
+ p(s.$slots, "default", {}, () => [
15
15
  m(
16
16
  "div",
17
17
  k,
@@ -19,15 +19,16 @@ function u(h, e, a, o, y, B) {
19
19
  1
20
20
  /* TEXT */
21
21
  ),
22
- m("div", v, [
23
- a.showPreviousMonthButton ? (r(), l(o.NmorphButton, {
22
+ m("div", g, [
23
+ a.showPreviousMonthButton ? (n(), d(o.NmorphButton, {
24
24
  key: 0,
25
25
  class: "nmorph-calendar-header__action",
26
- onClick: e[0] || (e[0] = (i) => o.emit("click-previous-month"))
26
+ design: o.props.design,
27
+ onClick: e[0] || (e[0] = (l) => o.emit("click-previous-month"))
27
28
  }, {
28
- default: n(() => [
29
+ default: r(() => [
29
30
  t(o.NmorphIcon, null, {
30
- default: n(() => [
31
+ default: r(() => [
31
32
  t(o.NmorphIconArrowLeft)
32
33
  ]),
33
34
  _: 1
@@ -36,21 +37,23 @@ function u(h, e, a, o, y, B) {
36
37
  ]),
37
38
  _: 1
38
39
  /* STABLE */
39
- })) : d("v-if", !0),
40
- a.showTodayButton ? (r(), l(o.NmorphButton, {
40
+ }, 8, ["design"])) : i("v-if", !0),
41
+ a.showTodayButton ? (n(), d(o.NmorphButton, {
41
42
  key: 1,
42
43
  class: "nmorph-calendar-header__action",
43
44
  text: "Today",
44
- onClick: e[1] || (e[1] = (i) => o.emit("click-today"))
45
- })) : d("v-if", !0),
46
- a.showNextMonthButton ? (r(), l(o.NmorphButton, {
45
+ design: o.props.design,
46
+ onClick: e[1] || (e[1] = (l) => o.emit("click-today"))
47
+ }, null, 8, ["design"])) : i("v-if", !0),
48
+ a.showNextMonthButton ? (n(), d(o.NmorphButton, {
47
49
  key: 2,
48
50
  class: "nmorph-calendar-header__action",
49
- onClick: e[2] || (e[2] = (i) => o.emit("click-next-month"))
51
+ design: o.props.design,
52
+ onClick: e[2] || (e[2] = (l) => o.emit("click-next-month"))
50
53
  }, {
51
- default: n(() => [
54
+ default: r(() => [
52
55
  t(o.NmorphIcon, null, {
53
- default: n(() => [
56
+ default: r(() => [
54
57
  t(o.NmorphIconArrowRight)
55
58
  ]),
56
59
  _: 1
@@ -59,7 +62,7 @@ function u(h, e, a, o, y, B) {
59
62
  ]),
60
63
  _: 1
61
64
  /* STABLE */
62
- })) : d("v-if", !0)
65
+ }, 8, ["design"])) : i("v-if", !0)
63
66
  ])
64
67
  ])
65
68
  ],
@@ -67,7 +70,7 @@ function u(h, e, a, o, y, B) {
67
70
  /* CLASS */
68
71
  );
69
72
  }
70
- const g = /* @__PURE__ */ N(s, [["render", u], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue"]]);
73
+ const I = /* @__PURE__ */ N(h, [["render", v], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue"]]);
71
74
  export {
72
- g as default
75
+ I as default
73
76
  };
@@ -1,19 +1,20 @@
1
1
  import './NmorphCalendarHeader.css';
2
2
  import { defineComponent as u, computed as i } from "vue";
3
3
  import { useModifiers as h } from "../../../../../utils/create-modifiers.js";
4
- import c from "../../../../../assets/icons/arrow-right.svg.js";
5
- import s from "../../../../../assets/icons/arrow-left.svg.js";
6
- import a from "../../../../basic/nmorph-icon/NmorphIcon.vue.js";
4
+ import s from "../../../../../assets/icons/arrow-right.svg.js";
5
+ import a from "../../../../../assets/icons/arrow-left.svg.js";
6
+ import c from "../../../../basic/nmorph-icon/NmorphIcon.vue.js";
7
7
  import { getMonthName as d } from "../../utils.js";
8
8
  import f from "../../../../basic/nmorph-button/NmorphButton.vue.js";
9
- const I = /* @__PURE__ */ u({
9
+ const q = /* @__PURE__ */ u({
10
10
  __name: "NmorphCalendarHeader",
11
11
  props: {
12
12
  year: { type: Number, required: !0 },
13
13
  month: { type: Number, required: !0 },
14
14
  showPreviousMonthButton: { type: Boolean, required: !0 },
15
15
  showNextMonthButton: { type: Boolean, required: !0 },
16
- showTodayButton: { type: Boolean, required: !0 }
16
+ showTodayButton: { type: Boolean, required: !0 },
17
+ design: { type: null, required: !1, default: "nmorph" }
17
18
  },
18
19
  emits: ["click-previous-month", "click-today", "click-next-month"],
19
20
  setup(r, { expose: o, emit: t }) {
@@ -27,15 +28,15 @@ const I = /* @__PURE__ */ u({
27
28
  }, get getMonthName() {
28
29
  return d;
29
30
  }, get NmorphIcon() {
30
- return a;
31
+ return c;
31
32
  }, get NmorphIconArrowLeft() {
32
- return s;
33
+ return a;
33
34
  }, get NmorphIconArrowRight() {
34
- return c;
35
+ return s;
35
36
  } };
36
37
  return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
37
38
  }
38
39
  });
39
40
  export {
40
- I as default
41
+ q as default
41
42
  };
@@ -1 +1 @@
1
- .nmorph-card{--card-padding: var(--indentation-04);display:flex;flex-direction:column;width:fit-content;max-width:100%;padding:var(--card-padding);border-radius:var(--nmorph-card-radius, var(--default-border-radius))}.nmorph-card.nmorph-card--fill{width:100%}.nmorph-card .nmorph-card__content{height:100%;padding:var(--nmorph-card-content-padding, 0)}.nmorph-card .nmorph-card__header{font-weight:600;font-size:var(--font-size-large);line-height:var(--line-height-loose)}.nmorph-card .nmorph-card__footer{height:fit-content;margin-top:4px;font-weight:400;font-size:var(--font-size-extra-small);line-height:var(--line-height-regular)}.nmorph-card.nmorph--shadow-combined{background:var(--nmorph-main-color);border:var(--nmorph-card-combined-border-width) solid var(--nmorph-main-color);box-shadow:var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color),inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),inset calc(-1 * var(--base-shadow-width)) calc(-.5 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}
1
+ .nmorph-card{--nmorph-private-card-padding: var(--indentation-04);--nmorph-private-card-background: var(--nmorph-main-color);--nmorph-private-card-border: none;--nmorph-private-card-shadow: none;position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:fit-content;max-width:100%;padding:var(--nmorph-private-card-padding);background:var(--nmorph-private-card-background);border:var(--nmorph-private-card-border);border-radius:var(--nmorph-private-card-radius, var(--default-border-radius));box-shadow:var(--nmorph-private-card-shadow)}.nmorph-card.nmorph-card--fill{width:100%}.nmorph-card .nmorph-card__content{height:100%;padding:var(--nmorph-private-card-content-padding, 0)}.nmorph-card .nmorph-card__header{font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height)}.nmorph-card .nmorph-card__footer{height:fit-content;margin-top:4px;font-weight:var(--nmorph-typography-body-small-font-weight);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-card.nmorph-card--nmorph{--nmorph-private-card-background: var(--nmorph-main-color)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--outset{--nmorph-private-card-shadow: var(--nmorph-shadow-outset)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--inset{--nmorph-private-card-shadow: var(--nmorph-shadow-inset)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--combined{--nmorph-private-card-border: var(--nmorph-private-card-combined-border-width) solid var(--nmorph-main-color);--nmorph-private-card-shadow: var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color), calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color), inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color), inset calc(-1 * var(--base-shadow-width)) calc(-.5 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-card.nmorph-card--plain{--nmorph-private-card-background: var(--nmorph-main-color);--nmorph-private-card-border: var(--nmorph-plain-border);--nmorph-private-card-shadow: none}
@@ -1,11 +1,12 @@
1
1
  import './NmorphCard.css';
2
- import { defineComponent as f, useSlots as c, computed as a } from "vue";
3
- import { useModifiers as m } from "../../../utils/create-modifiers.js";
2
+ import { defineComponent as m, useSlots as c, computed as o } from "vue";
3
+ import { useModifiers as g } from "../../../utils/create-modifiers.js";
4
4
  import { toCssSize as d } from "../../../utils/common.js";
5
- import { NmorphShadowType as g } from "../../../types/common.types.js";
6
- const v = /* @__PURE__ */ f({
5
+ import { NmorphShadowType as h } from "../../../types/common.types.js";
6
+ const q = /* @__PURE__ */ m({
7
7
  __name: "NmorphCard",
8
8
  props: {
9
+ design: { type: null, required: !1, default: "nmorph" },
9
10
  shadowType: { type: null, required: !1, default: "outset" },
10
11
  combinedShadowBorderWidth: { type: Number, required: !1, default: 0 },
11
12
  cardPadding: { type: [Number, String], required: !1, default: void 0 },
@@ -16,27 +17,27 @@ const v = /* @__PURE__ */ f({
16
17
  fill: { type: Boolean, required: !1, default: !0 },
17
18
  tag: { type: String, required: !1, default: "div" }
18
19
  },
19
- setup(n, { expose: s }) {
20
- s();
21
- const e = n, p = c(), u = a(
22
- () => m({
23
- nmorph: [g[e.shadowType]],
24
- "nmorph-card": [e.shadowType, e.fill ? "fill" : "fit-content"]
20
+ setup(s, { expose: p }) {
21
+ p();
22
+ const e = s, u = c(), r = o(() => e.design || "nmorph"), l = o(
23
+ () => g({
24
+ nmorph: [r.value === "nmorph" ? h[e.shadowType] : ""],
25
+ "nmorph-card": [r.value, e.shadowType, e.fill ? "fill" : "fit-content"]
25
26
  })
26
- ), l = a(() => {
27
- const r = e.padding !== void 0 ? d(e.padding) : d(e.cardPadding), o = d(e.radius), i = d(e.contentPadding);
27
+ ), f = o(() => {
28
+ const t = e.padding !== void 0 ? d(e.padding) : d(e.cardPadding), a = d(e.radius), n = d(e.contentPadding);
28
29
  return {
29
30
  ...e.shadowType === "combined" && {
30
- "--nmorph-card-combined-border-width": `${e.combinedShadowBorderWidth}px`
31
+ "--nmorph-private-card-combined-border-width": `${e.combinedShadowBorderWidth}px`
31
32
  },
32
- ...r !== void 0 && { "--card-padding": r, padding: r },
33
- ...o !== void 0 && { "--nmorph-card-radius": o },
34
- ...i !== void 0 && { "--nmorph-card-content-padding": i }
33
+ ...t !== void 0 && { "--nmorph-private-card-padding": t, padding: t },
34
+ ...a !== void 0 && { "--nmorph-private-card-radius": a },
35
+ ...n !== void 0 && { "--nmorph-private-card-content-padding": n }
35
36
  };
36
- }), t = { props: e, slots: p, modifiers: u, styles: l };
37
- return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
37
+ }), i = { props: e, slots: u, resolvedDesign: r, modifiers: l, styles: f };
38
+ return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
38
39
  }
39
40
  });
40
41
  export {
41
- v as default
42
+ q as default
42
43
  };
@@ -0,0 +1 @@
1
+ .nmorph-carousel{--nmorph-private-carousel-height: 500px;--nmorph-private-carousel-frame-border: 10px;position:relative;box-sizing:border-box;height:var(--nmorph-private-carousel-height);overflow:hidden;border-radius:var(--default-border-radius)}.nmorph-carousel .nmorph-carousel__wrapper{display:flex;height:100%}.nmorph-carousel .transition-enabled{transition:transform .4s ease}.nmorph-carousel .nmorph-carousel__element-indicator-wrapper{padding:4px;cursor:pointer}.nmorph-carousel .nmorph-carousel__elements-indicator{position:absolute;bottom:16px;display:flex;justify-content:center;width:100%}.nmorph-carousel .nmorph-carousel__element-indicator{width:30px;height:2px;margin-right:var(--indentation-02);background:var(--nmorph-gray-color)}.nmorph-carousel .nmorph-carousel__element-indicator--active{background:var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__action-btn{position:absolute;top:50%;padding:var(--indentation-03);background:var(--nmorph-info-color);border-radius:var(--default-border-radius);transform:translateY(-50%);cursor:pointer}.nmorph-carousel .nmorph-carousel__action-btn:hover{background:var(--nmorph-info-color)}.nmorph-carousel .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__prev{right:var(--indentation-02);rotate:-90deg}.nmorph-carousel .nmorph-carousel__next{left:var(--indentation-02);rotate:90deg}.nmorph-carousel .nmorph-carousel__item{flex-shrink:0;width:100%;height:100%}.nmorph-carousel--nmorph{background:var(--nmorph-main-color);border:var(--nmorph-private-carousel-frame-border) solid var(--nmorph-main-color)}.nmorph-carousel--plain{background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn{color:var(--nmorph-text-color);background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-carousel--plain .nmorph-carousel__action-btn:hover{color:var(--nmorph-accent-color);background:var(--nmorph-main-color);border-color:var(--nmorph-accent-color)}
@@ -1,12 +1,14 @@
1
+ import './NmorphCarousel.css';
1
2
  import d from "./NmorphCarousel.vue2.js";
2
- import { openBlock as o, createElementBlock as e, normalizeClass as t, createElementVNode as n, normalizeStyle as h, Fragment as i, renderList as s, createVNode as l, withCtx as m, renderSlot as u } from "vue";
3
- import p from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ import { openBlock as o, createElementBlock as e, normalizeClass as c, createElementVNode as n, normalizeStyle as h, Fragment as i, renderList as s, createVNode as l, withCtx as m, renderSlot as p } from "vue";
4
+ /* empty css */
5
+ import u from "../../../_virtual/_plugin-vue_export-helper.js";
4
6
  const v = ["id"], f = { class: "nmorph-carousel__elements-indicator" }, C = ["onClick"];
5
7
  function k(_, N, I, r, b, w) {
6
8
  return o(), e(
7
9
  "div",
8
10
  {
9
- class: t(r.modifiers)
11
+ class: c(r.modifiers)
10
12
  },
11
13
  [
12
14
  n(
@@ -35,15 +37,15 @@ function k(_, N, I, r, b, w) {
35
37
  (o(!0), e(
36
38
  i,
37
39
  null,
38
- s(r.carouselData, (a, c) => (o(), e("div", {
39
- key: c,
40
+ s(r.carouselData, (a, t) => (o(), e("div", {
41
+ key: t,
40
42
  class: "nmorph-carousel__element-indicator-wrapper",
41
- onClick: (y) => r.elementIndicator(c)
43
+ onClick: (y) => r.elementIndicator(t)
42
44
  }, [
43
45
  n(
44
46
  "div",
45
47
  {
46
- class: t(["nmorph-carousel__element-indicator", { "nmorph-carousel__element-indicator--active": r.isCurrentElementActive(c) }])
48
+ class: c(["nmorph-carousel__element-indicator", { "nmorph-carousel__element-indicator--active": r.isCurrentElementActive(t) }])
47
49
  },
48
50
  null,
49
51
  2
@@ -78,13 +80,13 @@ function k(_, N, I, r, b, w) {
78
80
  /* STABLE */
79
81
  })
80
82
  ]),
81
- u(_.$slots, "default")
83
+ p(_.$slots, "default")
82
84
  ],
83
85
  2
84
86
  /* CLASS */
85
87
  );
86
88
  }
87
- const E = /* @__PURE__ */ p(d, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-carousel/NmorphCarousel.vue"]]);
89
+ const z = /* @__PURE__ */ u(d, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-carousel/NmorphCarousel.vue"]]);
88
90
  export {
89
- E as default
91
+ z as default
90
92
  };
@@ -1,39 +1,42 @@
1
- import { defineComponent as N, ref as p, computed as a, provide as D, watch as d } from "vue";
2
- import { useModifiers as M } from "../../../utils/create-modifiers.js";
3
- import { generateUUID as w } from "../../../utils/common.js";
4
- import b from "../../basic/nmorph-icon/NmorphIcon.vue.js";
5
- import y from "../../../assets/icons/chevron-down.svg.js";
1
+ import './NmorphCarousel.css';
2
+ import { defineComponent as N, ref as p, computed as u, provide as w, watch as d } from "vue";
3
+ import { useModifiers as D } from "../../../utils/create-modifiers.js";
4
+ import { generateUUID as M } from "../../../utils/common.js";
5
+ import y from "../../basic/nmorph-icon/NmorphIcon.vue.js";
6
+ import b from "../../../assets/icons/chevron-down.svg.js";
6
7
  const A = /* @__PURE__ */ N({
7
8
  __name: "NmorphCarousel",
8
9
  props: {
10
+ design: { type: null, required: !1, default: "nmorph" },
9
11
  loop: { type: Boolean, required: !1, default: !0 }
10
12
  },
11
13
  emits: ["change"],
12
- setup(v, { expose: f, emit: h }) {
13
- f();
14
- const e = p(0), u = v, l = h, _ = a(
15
- () => M({
16
- "nmorph-carousel": []
14
+ setup(f, { expose: v, emit: h }) {
15
+ v();
16
+ const e = p(0), o = f, l = h, g = u(
17
+ () => D({
18
+ nmorph: [o.design === "nmorph" ? "shadow-outset" : ""],
19
+ "nmorph-carousel": [o.design]
17
20
  })
18
- ), n = p([]), s = w();
19
- D("carousel-data", { data: n, carouselId: s });
20
- const r = a(() => n.value.length), c = (t) => r.value ? u.loop ? (t + r.value) % r.value : Math.min(Math.max(t, 0), r.value - 1) : 0, o = (t) => {
21
- const m = c(t);
21
+ ), a = p([]), s = M();
22
+ w("carousel-data", { data: a, carouselId: s });
23
+ const r = u(() => a.value.length), i = (t) => r.value ? o.loop ? (t + r.value) % r.value : Math.min(Math.max(t, 0), r.value - 1) : 0, n = (t) => {
24
+ const m = i(t);
22
25
  m !== e.value && (e.value = m);
23
- }, I = () => o(e.value - 1), S = () => o(e.value + 1), g = a(() => `translateX(-${e.value * 100}%)`), x = (t) => t === e.value, C = (t) => {
24
- o(t);
26
+ }, _ = () => n(e.value - 1), I = () => n(e.value + 1), S = u(() => `translateX(-${e.value * 100}%)`), x = (t) => t === e.value, C = (t) => {
27
+ n(t);
25
28
  };
26
29
  d(r, (t) => {
27
30
  e.value > t - 1 && (e.value = Math.max(t - 1, 0));
28
31
  }), d(e, () => {
29
32
  l("change", e.value);
30
33
  });
31
- const i = { currentSlide: e, props: u, emit: l, modifiers: _, carouselData: n, carouselId: s, slideCount: r, normalizeSlideIndex: c, goToSlide: o, prevSlide: I, nextSlide: S, translateX: g, isCurrentElementActive: x, elementIndicator: C, get NmorphIcon() {
32
- return b;
33
- }, get NmorphIconChevronDown() {
34
+ const c = { currentSlide: e, props: o, emit: l, modifiers: g, carouselData: a, carouselId: s, slideCount: r, normalizeSlideIndex: i, goToSlide: n, prevSlide: _, nextSlide: I, translateX: S, isCurrentElementActive: x, elementIndicator: C, get NmorphIcon() {
34
35
  return y;
36
+ }, get NmorphIconChevronDown() {
37
+ return b;
35
38
  } };
36
- return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
39
+ return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
37
40
  }
38
41
  });
39
42
  export {