@nmorph/nmorph-ui-kit 2.2.58 → 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.
- package/dist/assets/icons/expand.svg.js +13 -6
- package/dist/assets/icons/hand.svg.js +21 -0
- package/dist/assets/icons/list-simple.svg.js +21 -0
- package/dist/assets/icons/pagination.svg.js +18 -5
- package/dist/assets/icons/speaker-off.svg.js +28 -0
- package/dist/assets/icons/speaker.svg.js +21 -0
- package/dist/assets/icons/triangle-down.svg.js +6 -6
- package/dist/assets/icons/video-camera-off.svg.js +28 -0
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +20 -20
- package/dist/components/basic/nmorph-button/types.js +12 -4
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +10 -10
- package/dist/components/basic/nmorph-icon/NmorphIcons.js +405 -395
- package/dist/components/basic/nmorph-icon/types.js +6 -2
- package/dist/components/basic/nmorph-layout/NmorphLayout.css +1 -1
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +7 -7
- package/dist/components/basic/nmorph-link/NmorphLink.css +1 -1
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +7 -7
- package/dist/components/basic/nmorph-link/types.js +7 -2
- package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +4 -3
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +123 -112
- package/dist/components/basic/nmorph-scroll/types.js +13 -3
- package/dist/components/basic/nmorph-space/NmorphSpace.css +1 -1
- package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +9 -9
- package/dist/components/basic/nmorph-text/NmorphText.vue.js +19 -0
- package/dist/components/basic/nmorph-text/NmorphText.vue2.js +50 -0
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.css +1 -1
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue2.js +22 -12
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue2.js +8 -6
- package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +54 -51
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +41 -36
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +47 -51
- package/dist/components/data/nmorph-calendar/NmorphCalendar.css +1 -1
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +34 -32
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +35 -34
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.css +1 -1
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +25 -22
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +10 -9
- package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +20 -19
- package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -0
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +12 -10
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +29 -17
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +35 -29
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +12 -12
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue2.js +103 -89
- package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +12 -12
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +2 -2
- package/dist/components/data/nmorph-image/NmorphImage.css +1 -1
- package/dist/components/data/nmorph-image/NmorphImage.vue2.js +32 -20
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +66 -62
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +53 -51
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +17 -15
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue2.js +56 -54
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +21 -21
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +9 -8
- package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +50 -50
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +23 -23
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +14 -12
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +22 -18
- package/dist/components/data/nmorph-progress/NmorphProgress.css +1 -1
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +22 -22
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.css +1 -1
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +18 -19
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.css +1 -1
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +5 -5
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.css +1 -1
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +7 -7
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +4 -4
- package/dist/components/data/nmorph-skeleton/types.js +6 -2
- package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +13 -13
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.css +1 -1
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +36 -40
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +14 -23
- package/dist/components/data/nmorph-tag-list/NmorphTagList.css +1 -1
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +38 -44
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +14 -29
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +34 -34
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +26 -22
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.css +1 -1
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +6 -6
- package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -1
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +10 -10
- package/dist/components/feedback/nmorph-alert/types.js +6 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +16 -16
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -1
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +36 -35
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.css +1 -1
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +9 -9
- package/dist/components/feedback/nmorph-guide/NmorphGuide.css +1 -0
- package/dist/components/feedback/nmorph-guide/NmorphGuide.vue.js +15 -0
- package/dist/components/feedback/nmorph-guide/NmorphGuide.vue2.js +124 -0
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -0
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +105 -0
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue2.js +55 -0
- package/dist/components/feedback/nmorph-guide/types.js +4 -0
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +21 -21
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +21 -18
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +20 -20
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +15 -15
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +30 -31
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +20 -21
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +28 -28
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -1
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +27 -27
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +40 -38
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +94 -108
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +14 -19
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +55 -64
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +32 -37
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +10 -10
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +1 -1
- package/dist/components/form/nmorph-file-upload/types.js +34 -16
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +12 -12
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +7 -7
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +6 -6
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +12 -13
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +41 -37
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +28 -28
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.css +1 -1
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +19 -19
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +37 -37
- package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
- package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +4 -4
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +21 -21
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +18 -18
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +21 -21
- package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +86 -77
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +52 -52
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -1
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -21
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +27 -23
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +13 -11
- package/dist/components/form/nmorph-slider/NmorphSlider.css +1 -1
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +52 -47
- package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +26 -26
- package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +35 -36
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +49 -36
- package/dist/components/form/nmorph-textarea/NmorphTextarea.css +1 -1
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +18 -18
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +44 -44
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.css +1 -1
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +11 -11
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +15 -15
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +9 -9
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -1
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +6 -5
- package/dist/components/navigation/nmorph-stepper/NmorphStepper.css +1 -0
- package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue.js +48 -0
- package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue2.js +98 -0
- package/dist/components/others/nmorph-divider/NmorphDivider.css +1 -1
- package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +9 -8
- package/dist/components/others/nmorph-overlay/NmorphOverlay.css +1 -1
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +13 -13
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +35 -25
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +22 -25
- package/dist/components/providers/nmorph-notification-provider/types.js +9 -2
- package/dist/emoji/base.js +571 -20
- package/dist/hooks/use-common-styles.js +228 -49
- package/dist/hooks/use-field-validation.js +42 -45
- package/dist/hooks/use-virtual-list.js +65 -57
- package/dist/icons.js +405 -395
- package/dist/index.es.js +861 -839
- package/dist/index.umd.js +234 -64
- package/dist/package.json.js +1 -1
- package/dist/plugin.js +37 -34
- package/dist/src/components/basic/index.d.ts +2 -0
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +2 -2
- package/dist/src/components/basic/nmorph-button/types.d.ts +17 -19
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +5 -0
- package/dist/src/components/basic/nmorph-icon/types.d.ts +7 -6
- package/dist/src/components/basic/nmorph-link/types.d.ts +9 -8
- package/dist/src/components/basic/nmorph-scroll/types.d.ts +16 -14
- package/dist/src/components/basic/nmorph-text/NmorphText.vue.d.ts +20 -0
- package/dist/src/components/basic/nmorph-text/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.d.ts +5 -1
- package/dist/src/components/data/nmorph-audio-meter/types.d.ts +4 -0
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-avatar/types.d.ts +3 -2
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +3 -2
- package/dist/src/components/data/nmorph-badge/types.d.ts +3 -8
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-calendar/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-card/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-carousel/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +7 -1
- package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -2
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -0
- package/dist/src/components/data/nmorph-image/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-image-preview/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-gallery/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -0
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-pagination/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +4 -0
- package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +2 -3
- package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -5
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-table/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +3 -4
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +2 -3
- package/dist/src/components/data/nmorph-tag-list/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +1 -1
- package/dist/src/components/feedback/index.d.ts +3 -0
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-alert/types.d.ts +8 -7
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/types.d.ts +1 -4
- package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +48 -0
- package/dist/src/components/feedback/nmorph-guide/NmorphGuideStep.vue.d.ts +18 -0
- package/dist/src/components/feedback/nmorph-guide/types.d.ts +90 -0
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -2
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +2 -17
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +2 -15
- package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +4 -6
- package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +2 -1
- package/dist/src/components/form/nmorph-date-picker/types.d.ts +1 -0
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +55 -55
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +2 -2
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +2 -2
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +2 -14
- package/dist/src/components/form/nmorph-radio/types.d.ts +6 -4
- package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +2 -14
- package/dist/src/components/form/nmorph-radio-group/types.d.ts +4 -6
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +2 -1
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/types.d.ts +1 -0
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -10
- package/dist/src/components/form/nmorph-slider/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-switch/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +4 -1
- package/dist/src/components/form/nmorph-text-input/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +1 -1
- package/dist/src/components/navigation/index.d.ts +2 -0
- package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -2
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -1
- package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +2 -1
- package/dist/src/components/navigation/nmorph-stepper/NmorphStepper.vue.d.ts +27 -0
- package/dist/src/components/navigation/nmorph-stepper/types.d.ts +30 -0
- package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +1 -0
- package/dist/src/components/others/nmorph-divider/types.d.ts +2 -0
- package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -1
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +8 -8
- package/dist/src/hooks/use-field-validation.d.ts +21 -24
- package/dist/src/hooks/use-nmorph-translation.d.ts +2 -2
- package/dist/src/types/app.types.d.ts +0 -5
- package/dist/src/types/common.types.d.ts +91 -35
- package/dist/src/types/date.types.d.ts +6 -5
- package/dist/src/types/image.types.d.ts +16 -12
- package/dist/src/types/selection.types.d.ts +19 -14
- package/dist/src/types/table.types.d.ts +6 -5
- package/dist/src/types/translation.types.d.ts +7 -6
- package/dist/src/utils/common.d.ts +2 -2
- package/dist/src/utils/file-types.d.ts +1 -1
- package/dist/src/utils/theme-style.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/types/common.types.js +73 -8
- package/dist/types/date.types.js +6 -2
- package/dist/types/image.types.js +12 -3
- package/dist/types/table.types.js +5 -2
- package/dist/types/translation.types.js +6 -2
- package/dist/utils/common.js +3 -3
- package/dist/utils/file-types.js +6 -7
- package/dist/utils/theme-style.js +42 -48
- package/package.json +1 -1
- package/dist/types/selection.types.js +0 -4
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { nmorphCombined as
|
|
2
|
-
const
|
|
3
|
-
"nmorph-body-4":
|
|
4
|
-
"nmorph-body-3":
|
|
5
|
-
"nmorph-body-2":
|
|
6
|
-
"nmorph-body-1":
|
|
7
|
-
"nmorph-title-4":
|
|
1
|
+
import { nmorphPlainSurface as h, nmorphCombined as l, nmorphInset as t, nmorphOutset as p, title1 as s, title2 as m, title3 as c, title4 as g, body1 as n, body2 as d, body3 as b, body4 as v, typography as o } from "../utils/theme-style.js";
|
|
2
|
+
const y = {
|
|
3
|
+
"nmorph-body-4": v,
|
|
4
|
+
"nmorph-body-3": b,
|
|
5
|
+
"nmorph-body-2": d,
|
|
6
|
+
"nmorph-body-1": n,
|
|
7
|
+
"nmorph-title-4": g,
|
|
8
8
|
"nmorph-title-3": c,
|
|
9
|
-
"nmorph-title-2":
|
|
10
|
-
"nmorph-title-1":
|
|
11
|
-
"nmorph--shadow-outset":
|
|
12
|
-
"nmorph--shadow-inset":
|
|
13
|
-
"nmorph--shadow-combined":
|
|
9
|
+
"nmorph-title-2": m,
|
|
10
|
+
"nmorph-title-1": s,
|
|
11
|
+
"nmorph--shadow-outset": p,
|
|
12
|
+
"nmorph--shadow-inset": t,
|
|
13
|
+
"nmorph--shadow-combined": l,
|
|
14
|
+
"nmorph--plain-surface": h
|
|
14
15
|
}, w = () => {
|
|
15
|
-
let
|
|
16
|
+
let e = `
|
|
16
17
|
:root {
|
|
17
18
|
--font-size-tiny: 10px;
|
|
18
19
|
--font-size-extra-small: 12px;
|
|
@@ -22,11 +23,64 @@ const u = {
|
|
|
22
23
|
--font-size-large: 18px;
|
|
23
24
|
--font-size-extra-large: 20px;
|
|
24
25
|
|
|
26
|
+
--font-family-base: Helvetica, Roboto, Arial, sans-serif;
|
|
27
|
+
--font-family-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
|
|
28
|
+
|
|
29
|
+
--font-weight-regular: 400;
|
|
30
|
+
--font-weight-medium: 500;
|
|
31
|
+
--font-weight-semibold: 600;
|
|
32
|
+
--font-weight-bold: 700;
|
|
33
|
+
--font-weight-extrabold: 800;
|
|
34
|
+
|
|
25
35
|
--line-height-line: 1;
|
|
36
|
+
--line-height-control: 1.15;
|
|
26
37
|
--line-height-compact: 1.3;
|
|
27
38
|
--line-height-regular: 1.5;
|
|
28
39
|
--line-height-loose: 1.7;
|
|
29
40
|
|
|
41
|
+
--nmorph-typography-display-large-font-size: 32px;
|
|
42
|
+
--nmorph-typography-display-large-line-height: 1.15;
|
|
43
|
+
--nmorph-typography-display-large-font-weight: var(--font-weight-extrabold);
|
|
44
|
+
--nmorph-typography-display-medium-font-size: 24px;
|
|
45
|
+
--nmorph-typography-display-medium-line-height: 1.2;
|
|
46
|
+
--nmorph-typography-display-medium-font-weight: var(--font-weight-bold);
|
|
47
|
+
--nmorph-typography-title-large-font-size: var(--font-size-extra-large);
|
|
48
|
+
--nmorph-typography-title-large-line-height: var(--line-height-compact);
|
|
49
|
+
--nmorph-typography-title-large-font-weight: var(--font-weight-bold);
|
|
50
|
+
--nmorph-typography-title-font-size: var(--font-size-large);
|
|
51
|
+
--nmorph-typography-title-line-height: var(--line-height-compact);
|
|
52
|
+
--nmorph-typography-title-font-weight: var(--font-weight-semibold);
|
|
53
|
+
--nmorph-typography-title-small-font-size: var(--font-size-medium);
|
|
54
|
+
--nmorph-typography-title-small-line-height: var(--line-height-compact);
|
|
55
|
+
--nmorph-typography-title-small-font-weight: var(--font-weight-semibold);
|
|
56
|
+
--nmorph-typography-body-large-font-size: var(--font-size-base);
|
|
57
|
+
--nmorph-typography-body-large-line-height: var(--line-height-regular);
|
|
58
|
+
--nmorph-typography-body-large-font-weight: var(--font-weight-regular);
|
|
59
|
+
--nmorph-typography-body-font-size: var(--font-size-small);
|
|
60
|
+
--nmorph-typography-body-line-height: var(--line-height-regular);
|
|
61
|
+
--nmorph-typography-body-font-weight: var(--font-weight-regular);
|
|
62
|
+
--nmorph-typography-body-small-font-size: var(--font-size-extra-small);
|
|
63
|
+
--nmorph-typography-body-small-line-height: var(--line-height-regular);
|
|
64
|
+
--nmorph-typography-body-small-font-weight: var(--font-weight-regular);
|
|
65
|
+
--nmorph-typography-caption-font-size: var(--font-size-tiny);
|
|
66
|
+
--nmorph-typography-caption-line-height: var(--line-height-regular);
|
|
67
|
+
--nmorph-typography-caption-font-weight: var(--font-weight-regular);
|
|
68
|
+
--nmorph-typography-label-font-size: var(--font-size-small);
|
|
69
|
+
--nmorph-typography-label-line-height: var(--line-height-compact);
|
|
70
|
+
--nmorph-typography-label-font-weight: var(--font-weight-semibold);
|
|
71
|
+
--nmorph-typography-control-large-font-size: var(--font-size-base);
|
|
72
|
+
--nmorph-typography-control-large-line-height: var(--line-height-control);
|
|
73
|
+
--nmorph-typography-control-large-font-weight: var(--font-weight-regular);
|
|
74
|
+
--nmorph-typography-control-font-size: var(--font-size-small);
|
|
75
|
+
--nmorph-typography-control-line-height: var(--line-height-control);
|
|
76
|
+
--nmorph-typography-control-font-weight: var(--font-weight-regular);
|
|
77
|
+
--nmorph-typography-control-small-font-size: var(--font-size-extra-small);
|
|
78
|
+
--nmorph-typography-control-small-line-height: var(--line-height-control);
|
|
79
|
+
--nmorph-typography-control-small-font-weight: var(--font-weight-regular);
|
|
80
|
+
--nmorph-typography-control-tiny-font-size: var(--font-size-tiny);
|
|
81
|
+
--nmorph-typography-control-tiny-line-height: var(--line-height-line);
|
|
82
|
+
--nmorph-typography-control-tiny-font-weight: var(--font-weight-regular);
|
|
83
|
+
|
|
30
84
|
--border-radius-none: 0px;
|
|
31
85
|
--border-radius-20: 2px;
|
|
32
86
|
--border-radius-40: 4px;
|
|
@@ -39,12 +93,11 @@ const u = {
|
|
|
39
93
|
--default-border-radius: var(--border-radius-40);
|
|
40
94
|
|
|
41
95
|
--thick-component: 38px;
|
|
42
|
-
--
|
|
43
|
-
--
|
|
96
|
+
--basic-component: 30px;
|
|
97
|
+
--default-thickness-component: var(--basic-component);
|
|
98
|
+
--thin-component: 24px;
|
|
44
99
|
--extra-thin-component: 14px;
|
|
45
100
|
|
|
46
|
-
--form-container: 280px;
|
|
47
|
-
|
|
48
101
|
--default-indentation-input: 8px;
|
|
49
102
|
|
|
50
103
|
--indentation-00: 0;
|
|
@@ -80,6 +133,8 @@ const u = {
|
|
|
80
133
|
inset calc(-1 * var(--base-shadow-width)) calc(-0.5 * var(--base-shadow-width)) var(--base-shadow-blur)
|
|
81
134
|
var(--nmorph-dark-shade-color);
|
|
82
135
|
--nmorph-wrapper-padding: calc(var(--base-shadow-width) * 1.5);
|
|
136
|
+
--nmorph-plain-border-color: color-mix(in srgb, var(--nmorph-text-color) 18%, transparent);
|
|
137
|
+
--nmorph-plain-border: 1.5px solid var(--nmorph-plain-border-color);
|
|
83
138
|
|
|
84
139
|
--transition-04: 0.4s;
|
|
85
140
|
--transition-03: 0.3s;
|
|
@@ -110,9 +165,9 @@ const u = {
|
|
|
110
165
|
body {
|
|
111
166
|
margin: 0;
|
|
112
167
|
width: auto;
|
|
113
|
-
font-family:
|
|
168
|
+
font-family: var(--font-family-base);
|
|
114
169
|
|
|
115
|
-
${
|
|
170
|
+
${n()}
|
|
116
171
|
}
|
|
117
172
|
|
|
118
173
|
h1 {
|
|
@@ -260,7 +315,7 @@ const u = {
|
|
|
260
315
|
}
|
|
261
316
|
|
|
262
317
|
.nmorph-scroll {
|
|
263
|
-
--thumb-color: var(--nmorph-scroll-thumb-color, var(--nmorph-text-color));
|
|
318
|
+
--nmorph-private-scroll-thumb-color: var(--nmorph-scroll-thumb-color, var(--nmorph-text-color));
|
|
264
319
|
|
|
265
320
|
position: relative;
|
|
266
321
|
overflow: hidden;
|
|
@@ -298,7 +353,7 @@ const u = {
|
|
|
298
353
|
z-index: 1;
|
|
299
354
|
border-radius: var(--border-radius-40);
|
|
300
355
|
background: transparent;
|
|
301
|
-
${
|
|
356
|
+
${t()}
|
|
302
357
|
opacity: 0.78;
|
|
303
358
|
transition:
|
|
304
359
|
opacity ease-in-out 0.16s,
|
|
@@ -309,14 +364,14 @@ const u = {
|
|
|
309
364
|
.nmorph-scroll__bar--vertical {
|
|
310
365
|
top: 0;
|
|
311
366
|
right: 0;
|
|
312
|
-
width: var(--bar-width);
|
|
367
|
+
width: var(--nmorph-private-scroll-bar-width);
|
|
313
368
|
}
|
|
314
369
|
|
|
315
370
|
.nmorph-scroll__bar--horizontal {
|
|
316
371
|
right: 0;
|
|
317
372
|
bottom: 0;
|
|
318
373
|
left: 0;
|
|
319
|
-
height: var(--bar-height);
|
|
374
|
+
height: var(--nmorph-private-scroll-bar-height);
|
|
320
375
|
}
|
|
321
376
|
|
|
322
377
|
.nmorph-scroll__thumb {
|
|
@@ -324,7 +379,7 @@ const u = {
|
|
|
324
379
|
top: 0;
|
|
325
380
|
left: 0;
|
|
326
381
|
border-radius: var(--border-radius-40);
|
|
327
|
-
background-color: var(--thumb-color);
|
|
382
|
+
background-color: var(--nmorph-private-scroll-thumb-color);
|
|
328
383
|
cursor: pointer;
|
|
329
384
|
transition: background-color ease-in-out 0.16s;
|
|
330
385
|
touch-action: none;
|
|
@@ -348,8 +403,8 @@ const u = {
|
|
|
348
403
|
}
|
|
349
404
|
|
|
350
405
|
.nmorph-scroll::-webkit-scrollbar {
|
|
351
|
-
width: var(--bar-width);
|
|
352
|
-
height: var(--bar-height);
|
|
406
|
+
width: var(--nmorph-private-scroll-bar-width);
|
|
407
|
+
height: var(--nmorph-private-scroll-bar-height);
|
|
353
408
|
background-color: transparent;
|
|
354
409
|
cursor: pointer;
|
|
355
410
|
transition: width ease-in-out 0.2s;
|
|
@@ -378,11 +433,11 @@ const u = {
|
|
|
378
433
|
|
|
379
434
|
.nmorph-scroll::-webkit-scrollbar-track {
|
|
380
435
|
border-radius: var(--border-radius-40);
|
|
381
|
-
${
|
|
436
|
+
${t()}
|
|
382
437
|
}
|
|
383
438
|
|
|
384
439
|
.nmorph-scroll::-webkit-scrollbar-thumb {
|
|
385
|
-
background-color: var(--thumb-color);
|
|
440
|
+
background-color: var(--nmorph-private-scroll-thumb-color);
|
|
386
441
|
border-radius: var(--border-radius-40);
|
|
387
442
|
}
|
|
388
443
|
|
|
@@ -390,32 +445,156 @@ const u = {
|
|
|
390
445
|
background-color: transparent;
|
|
391
446
|
}
|
|
392
447
|
|
|
448
|
+
.nmorph-typography {
|
|
449
|
+
margin: 0;
|
|
450
|
+
color: var(--nmorph-private-text-color, var(--nmorph-text-color));
|
|
451
|
+
font-family: var(--font-family-base);
|
|
452
|
+
text-align: var(--nmorph-private-text-align, inherit);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.nmorph-typography--display-large {
|
|
456
|
+
${o("display-large")}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.nmorph-typography--display-medium {
|
|
460
|
+
${o("display-medium")}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.nmorph-typography--title-large {
|
|
464
|
+
${o("title-large")}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.nmorph-typography--title {
|
|
468
|
+
${o("title")}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.nmorph-typography--title-small {
|
|
472
|
+
${o("title-small")}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.nmorph-typography--body-large {
|
|
476
|
+
${o("body-large")}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.nmorph-typography--body {
|
|
480
|
+
${o("body")}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.nmorph-typography--body-small {
|
|
484
|
+
${o("body-small")}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.nmorph-typography--caption {
|
|
488
|
+
${o("caption")}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.nmorph-typography--label {
|
|
492
|
+
${o("label")}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.nmorph-typography--control-large {
|
|
496
|
+
${o("control-large")}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.nmorph-typography--control {
|
|
500
|
+
${o("control")}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.nmorph-typography--control-small {
|
|
504
|
+
${o("control-small")}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.nmorph-typography--control-tiny {
|
|
508
|
+
${o("control-tiny")}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.nmorph-typography--regular {
|
|
512
|
+
font-weight: var(--font-weight-regular);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.nmorph-typography--medium {
|
|
516
|
+
font-weight: var(--font-weight-medium);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.nmorph-typography--semibold {
|
|
520
|
+
font-weight: var(--font-weight-semibold);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.nmorph-typography--bold {
|
|
524
|
+
font-weight: var(--font-weight-bold);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.nmorph-typography--extrabold {
|
|
528
|
+
font-weight: var(--font-weight-extrabold);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.nmorph-typography--truncate {
|
|
532
|
+
overflow: hidden;
|
|
533
|
+
white-space: nowrap;
|
|
534
|
+
text-overflow: ellipsis;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.nmorph-typography--nowrap {
|
|
538
|
+
white-space: nowrap;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.nmorph-typography--line-clamp {
|
|
542
|
+
display: -webkit-box;
|
|
543
|
+
overflow: hidden;
|
|
544
|
+
-webkit-box-orient: vertical;
|
|
545
|
+
-webkit-line-clamp: var(--nmorph-private-text-line-clamp);
|
|
546
|
+
}
|
|
547
|
+
|
|
393
548
|
.nmorph--basic-component {
|
|
394
|
-
--height: var(--
|
|
549
|
+
--nmorph-private-control-height: var(--basic-component);
|
|
550
|
+
--nmorph-private-control-font-size: var(--nmorph-typography-control-font-size);
|
|
551
|
+
--nmorph-private-control-line-height: var(--nmorph-typography-control-line-height);
|
|
552
|
+
--nmorph-private-control-font-weight: var(--nmorph-typography-control-font-weight);
|
|
553
|
+
--nmorph-private-control-text-offset-y: 0px;
|
|
395
554
|
|
|
396
|
-
height: var(--height);
|
|
555
|
+
height: var(--nmorph-private-control-height);
|
|
556
|
+
font-weight: var(--nmorph-private-control-font-weight);
|
|
557
|
+
font-size: var(--nmorph-private-control-font-size);
|
|
558
|
+
line-height: var(--nmorph-private-control-line-height);
|
|
397
559
|
}
|
|
398
560
|
|
|
399
561
|
.nmorph--thin-component {
|
|
400
|
-
--height: var(--thin-component);
|
|
562
|
+
--nmorph-private-control-height: var(--thin-component);
|
|
563
|
+
--nmorph-private-control-font-size: var(--nmorph-typography-control-small-font-size);
|
|
564
|
+
--nmorph-private-control-line-height: var(--nmorph-typography-control-small-line-height);
|
|
565
|
+
--nmorph-private-control-font-weight: var(--nmorph-typography-control-small-font-weight);
|
|
566
|
+
--nmorph-private-control-text-offset-y: 1px;
|
|
401
567
|
|
|
402
|
-
height: var(--height);
|
|
568
|
+
height: var(--nmorph-private-control-height);
|
|
569
|
+
font-weight: var(--nmorph-private-control-font-weight);
|
|
570
|
+
font-size: var(--nmorph-private-control-font-size);
|
|
571
|
+
line-height: var(--nmorph-private-control-line-height);
|
|
403
572
|
}
|
|
404
573
|
|
|
405
574
|
.nmorph--extra-thin-component {
|
|
406
|
-
--height: var(--extra-thin-component);
|
|
575
|
+
--nmorph-private-control-height: var(--extra-thin-component);
|
|
576
|
+
--nmorph-private-control-font-size: var(--nmorph-typography-control-tiny-font-size);
|
|
577
|
+
--nmorph-private-control-line-height: var(--nmorph-typography-control-tiny-line-height);
|
|
578
|
+
--nmorph-private-control-font-weight: var(--nmorph-typography-control-tiny-font-weight);
|
|
579
|
+
--nmorph-private-control-text-offset-y: 0px;
|
|
407
580
|
|
|
408
|
-
height: var(--height);
|
|
581
|
+
height: var(--nmorph-private-control-height);
|
|
582
|
+
font-weight: var(--nmorph-private-control-font-weight);
|
|
583
|
+
font-size: var(--nmorph-private-control-font-size);
|
|
584
|
+
line-height: var(--nmorph-private-control-line-height);
|
|
409
585
|
}
|
|
410
586
|
|
|
411
587
|
.nmorph--thick-component {
|
|
412
|
-
--height: var(--thick-component);
|
|
413
|
-
|
|
414
|
-
height: var(--height);
|
|
415
|
-
|
|
588
|
+
--nmorph-private-control-height: var(--thick-component);
|
|
589
|
+
--nmorph-private-control-font-size: var(--nmorph-typography-control-large-font-size);
|
|
590
|
+
--nmorph-private-control-line-height: var(--nmorph-typography-control-large-line-height);
|
|
591
|
+
--nmorph-private-control-font-weight: var(--nmorph-typography-control-large-font-weight);
|
|
592
|
+
--nmorph-private-control-text-offset-y: 0px;
|
|
416
593
|
|
|
417
|
-
|
|
418
|
-
|
|
594
|
+
height: var(--nmorph-private-control-height);
|
|
595
|
+
font-weight: var(--nmorph-private-control-font-weight);
|
|
596
|
+
font-size: var(--nmorph-private-control-font-size);
|
|
597
|
+
line-height: var(--nmorph-private-control-line-height);
|
|
419
598
|
}
|
|
420
599
|
|
|
421
600
|
.nmorph-native-input:focus {
|
|
@@ -443,7 +622,7 @@ const u = {
|
|
|
443
622
|
|
|
444
623
|
.nmorph--focused {
|
|
445
624
|
.nmorph-icon svg {
|
|
446
|
-
--color: var(--nmorph-focus-text-color);
|
|
625
|
+
--nmorph-private-icon-color: var(--nmorph-focus-text-color);
|
|
447
626
|
}
|
|
448
627
|
}
|
|
449
628
|
|
|
@@ -489,19 +668,19 @@ const u = {
|
|
|
489
668
|
}
|
|
490
669
|
|
|
491
670
|
`;
|
|
492
|
-
for (const [
|
|
493
|
-
|
|
494
|
-
.${
|
|
671
|
+
for (const [a, i] of Object.entries(y))
|
|
672
|
+
e += `
|
|
673
|
+
.${a} {
|
|
495
674
|
${i()}
|
|
496
675
|
}
|
|
497
676
|
`;
|
|
498
|
-
return
|
|
499
|
-
},
|
|
677
|
+
return e;
|
|
678
|
+
}, u = () => {
|
|
500
679
|
if (typeof document > "u" || document.getElementById("nmorph-common-styles")) return;
|
|
501
|
-
const
|
|
502
|
-
|
|
680
|
+
const r = document.createElement("style");
|
|
681
|
+
r.id = "nmorph-common-styles", r.innerHTML = w(), document.head.appendChild(r);
|
|
503
682
|
};
|
|
504
683
|
export {
|
|
505
684
|
w as getCommonStyles,
|
|
506
|
-
|
|
685
|
+
u as useCommonStyles
|
|
507
686
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { isFileAllowedByTypes as
|
|
2
|
-
import { ref as
|
|
3
|
-
const
|
|
4
|
-
if (
|
|
1
|
+
import { isFileAllowedByTypes as M } from "../utils/file-types.js";
|
|
2
|
+
import { ref as m } from "vue";
|
|
3
|
+
const h = (n) => typeof File < "u" && n instanceof File, I = (n) => !!n && typeof n == "object" && "data" in n && h(n.data), q = (n) => {
|
|
4
|
+
if (h(n)) return [n];
|
|
5
5
|
if (!Array.isArray(n)) return null;
|
|
6
|
-
const
|
|
7
|
-
return
|
|
6
|
+
const l = n;
|
|
7
|
+
return l.length === 0 ? [] : l.every(h) ? l : l.every(I) ? l.map((a) => a.data) : null;
|
|
8
8
|
}, D = (n) => {
|
|
9
|
-
const { inputValue:
|
|
9
|
+
const { inputValue: l, rules: a } = n, f = m([]), d = m(!1), y = m(!1);
|
|
10
10
|
return {
|
|
11
|
-
touched:
|
|
12
|
-
valid:
|
|
13
|
-
errors:
|
|
11
|
+
touched: y,
|
|
12
|
+
valid: d,
|
|
13
|
+
errors: f,
|
|
14
14
|
validate: () => {
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
|
|
15
|
+
const v = a?.length > 0;
|
|
16
|
+
if (f.value = [], !v) {
|
|
17
|
+
d.value = !0;
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
if (
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
20
|
+
if (l === null) return;
|
|
21
|
+
const s = l, u = (i) => v && a.some((r) => i in r), g = typeof s == "string" && u("pattern"), T = typeof s == "number" && u("numberCompareType"), b = (typeof s == "string" || typeof s == "boolean") && u("booleanCompareType"), A = Array.isArray(s) && u("arrayCompareType"), C = u("fileMaxSize") || u("fileAllowedTypes") || u("fileMaxCount"), w = C ? q(s) : null, x = C && w !== null;
|
|
22
|
+
if (!T && !g && !b && !A && !x) {
|
|
23
23
|
console.warn("The input value and the provided rules do not match");
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
|
|
26
|
+
if (y.value || (y.value = !0), g) {
|
|
27
|
+
const i = a;
|
|
28
|
+
f.value = i.reduce((r, t) => (s.match(t.pattern) || r.push(t.error), r), []);
|
|
29
29
|
}
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
switch (
|
|
30
|
+
if (T) {
|
|
31
|
+
const i = (t, e, o) => {
|
|
32
|
+
switch (o) {
|
|
33
33
|
case "eq":
|
|
34
34
|
return t === e;
|
|
35
35
|
case "gt":
|
|
@@ -41,44 +41,41 @@ const v = (n) => typeof File < "u" && n instanceof File, S = (n) => !!n && typeo
|
|
|
41
41
|
case "gte":
|
|
42
42
|
return t >= e;
|
|
43
43
|
}
|
|
44
|
-
}, r =
|
|
45
|
-
|
|
44
|
+
}, r = a;
|
|
45
|
+
f.value = r.reduce((t, e) => (i(s, e.compareValue, e.numberCompareType) && t.push(e.error), t), []);
|
|
46
46
|
}
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
49
|
-
|
|
47
|
+
if (b) {
|
|
48
|
+
const i = a;
|
|
49
|
+
f.value = i.reduce((r, t) => {
|
|
50
50
|
let e = !1;
|
|
51
|
-
const { compareValue:
|
|
52
|
-
return
|
|
51
|
+
const { compareValue: o, booleanCompareType: c } = t;
|
|
52
|
+
return c === "not-eq" && (e = s === o), c === "eq" && (e = s !== o), e || r.push(t.error), r;
|
|
53
53
|
}, []);
|
|
54
54
|
}
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
57
|
-
switch (
|
|
55
|
+
if (A) {
|
|
56
|
+
const i = a, r = (t, e, o) => {
|
|
57
|
+
switch (o) {
|
|
58
58
|
case "contains-one":
|
|
59
|
-
return t.some((
|
|
59
|
+
return t.some((p) => e.includes(p));
|
|
60
60
|
case "full-eq":
|
|
61
61
|
if (t.length !== e.length) return !1;
|
|
62
|
-
const
|
|
63
|
-
return
|
|
62
|
+
const c = [...t].sort(), F = [...e].sort();
|
|
63
|
+
return c.every((p, R) => p === F[R]);
|
|
64
64
|
case "not-contains":
|
|
65
|
-
return !t.some((
|
|
65
|
+
return !t.some((p) => e.includes(p));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
f.value = i.reduce((t, e) => (r(
|
|
69
|
+
s.map((c) => String(c)),
|
|
70
70
|
e.compareValue,
|
|
71
71
|
e.arrayCompareType
|
|
72
72
|
) || t.push(e.error), t), []);
|
|
73
73
|
}
|
|
74
|
-
if (
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
const i = e.fileMaxSize ?? e.maxFileSize, f = e.fileAllowedTypes ?? e.allowedTypes, d = e.fileMaxCount ?? e.maxFiles;
|
|
78
|
-
return typeof i == "number" && r.some((c) => c.size > i) && t.push(e.error), f && r.some((c) => !z(c, f)) && t.push(e.error), typeof d == "number" && r.length > d && t.push(e.error), t;
|
|
79
|
-
}, []);
|
|
74
|
+
if (x) {
|
|
75
|
+
const i = a, r = w || [];
|
|
76
|
+
f.value = i.reduce((t, e) => (typeof e.fileMaxSize == "number" && r.some((o) => o.size > e.fileMaxSize) && t.push(e.error), e.fileAllowedTypes && r.some((o) => !M(o, e.fileAllowedTypes)) && t.push(e.error), typeof e.fileMaxCount == "number" && r.length > e.fileMaxCount && t.push(e.error), t), []);
|
|
80
77
|
}
|
|
81
|
-
|
|
78
|
+
d.value = f.value.length === 0;
|
|
82
79
|
}
|
|
83
80
|
};
|
|
84
81
|
};
|