@nmorph/nmorph-ui-kit 2.2.59 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/mute-speaker.svg.js +28 -0
- package/dist/assets/icons/pagination.svg.js +18 -5
- 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 +21 -19
- 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 +406 -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 +20 -16
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +16 -14
- 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/NmorphGuideStep.css +1 -1
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +33 -33
- 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 -31
- 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.vue2.js +20 -20
- 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 +406 -395
- package/dist/index.es.js +853 -838
- package/dist/index.umd.js +241 -71
- 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 +3 -2
- package/dist/src/components/basic/nmorph-button/types.d.ts +18 -19
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +6 -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 +2 -0
- package/dist/src/components/data/nmorph-media-tile/types.d.ts +2 -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/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 +1 -1
- 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 -4
- 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 -3
- 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/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/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,11 +1,11 @@
|
|
|
1
1
|
import './NmorphSelect.css';
|
|
2
|
-
import { defineComponent as de, computed as a, ref as
|
|
2
|
+
import { defineComponent as de, computed as a, ref as d, watch as v, nextTick as P, onMounted as ce, onUnmounted as ve, provide as V, toRef as fe } from "vue";
|
|
3
3
|
import { useModifiers as pe } from "../../../utils/create-modifiers.js";
|
|
4
|
-
import { createCssSizeVariables as me, getNmorphOptionHeight as he, toCssSize as
|
|
4
|
+
import { createCssSizeVariables as me, getNmorphOptionHeight as he, toCssSize as ye, resolveDomElement as ge } from "../../../utils/common.js";
|
|
5
5
|
import { useVirtualList as He } from "../../../hooks/use-virtual-list.js";
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { useFormItemModel as
|
|
8
|
-
import {
|
|
6
|
+
import { useI18n as qe } from "vue-i18n";
|
|
7
|
+
import { useFormItemModel as be, useFormItemInput as Ie } from "../nmorph-form/use-form-item-input.js";
|
|
8
|
+
import { NmorphComponentThickness as Ae } from "../../../types/common.types.js";
|
|
9
9
|
import xe from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
|
|
10
10
|
import Ne from "./components/nmorph-select-option/NmorphSelectOption.vue.js";
|
|
11
11
|
import Se from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
@@ -36,53 +36,53 @@ const Xe = /* @__PURE__ */ de({
|
|
|
36
36
|
id: { type: String, required: !1 },
|
|
37
37
|
name: { type: String, required: !1 },
|
|
38
38
|
autocomplete: { type: String, required: !1 },
|
|
39
|
-
|
|
39
|
+
thickness: { type: null, required: !1, default: "basic" },
|
|
40
40
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
41
41
|
tabindex: { type: Number, required: !1 }
|
|
42
42
|
},
|
|
43
43
|
emits: ["update:model-value"],
|
|
44
|
-
setup(
|
|
44
|
+
setup(W, { expose: z, emit: $ }) {
|
|
45
45
|
z();
|
|
46
|
-
const { t: E } =
|
|
46
|
+
const { t: E } = qe(), t = W, y = a(
|
|
47
47
|
() => t.noElementPlaceholder ? t.noElementPlaceholder : E("noElementPlaceholder")
|
|
48
|
-
),
|
|
48
|
+
), k = $, { modelValue: f, updateModelValue: g } = be(
|
|
49
49
|
t,
|
|
50
|
-
(e) =>
|
|
50
|
+
(e) => k("update:model-value", e),
|
|
51
51
|
""
|
|
52
|
-
), m = () => t.nullable ? null : "", H = a(() => t.multiple ?? Array.isArray(f.value)),
|
|
53
|
-
if (
|
|
52
|
+
), m = () => t.nullable ? null : "", H = a(() => t.multiple ?? Array.isArray(f.value)), q = (e) => H.value ? Array.isArray(e) ? e : e ? [e] : [] : Array.isArray(e) ? e[0] ?? m() : e ?? m(), l = d(q(f.value)), r = d(t.open), i = a(() => t.disabled || t.loading), b = a(() => t.optionsWidth === "auto"), I = d(!0), { id: A, name: F, autocomplete: U, tabindex: j } = Ie(t), x = (e) => {
|
|
53
|
+
if (i.value) return;
|
|
54
54
|
if (r.value = !1, !H.value) {
|
|
55
|
-
!t.valueRequired && l.value === e ? l.value = m() : l.value = e,
|
|
55
|
+
!t.valueRequired && l.value === e ? l.value = m() : l.value = e, g(l.value);
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
const n = Array.isArray(l.value) ? l.value : [], T = n.includes(e), ie = n.length === 1 && T;
|
|
59
|
-
t.valueRequired && ie || (T ? l.value = n.filter((se) => se !== e) : l.value = [...n, e],
|
|
60
|
-
}, h =
|
|
59
|
+
t.valueRequired && ie || (T ? l.value = n.filter((se) => se !== e) : l.value = [...n, e], g(l.value));
|
|
60
|
+
}, h = d(!1), G = () => {
|
|
61
61
|
h.value = !0;
|
|
62
62
|
}, J = () => {
|
|
63
63
|
h.value = !1;
|
|
64
64
|
}, K = a(
|
|
65
65
|
() => pe({
|
|
66
|
-
nmorph: [Ae[t.
|
|
66
|
+
nmorph: [Ae[t.thickness]],
|
|
67
67
|
"nmorph-select": [
|
|
68
|
-
|
|
68
|
+
i.value && "disabled",
|
|
69
69
|
f.value ? "on" : "off",
|
|
70
70
|
t.loading && "loading",
|
|
71
|
-
r.value && !
|
|
71
|
+
r.value && !i.value && "open",
|
|
72
72
|
t.fill && "fill",
|
|
73
|
-
|
|
73
|
+
b.value && "options-auto-width",
|
|
74
74
|
I.value ? "selected-line-outset" : "selected-line-inset",
|
|
75
75
|
h.value && "focus"
|
|
76
76
|
]
|
|
77
77
|
})
|
|
78
78
|
), Q = a(
|
|
79
79
|
() => me({
|
|
80
|
-
"--
|
|
80
|
+
"--nmorph-private-select-width": t.width
|
|
81
81
|
})
|
|
82
82
|
), X = () => {
|
|
83
|
-
|
|
83
|
+
i.value || (r.value = !r.value);
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
v(
|
|
86
86
|
r,
|
|
87
87
|
(e) => {
|
|
88
88
|
e && (I.value = !1);
|
|
@@ -92,63 +92,63 @@ const Xe = /* @__PURE__ */ de({
|
|
|
92
92
|
const N = () => {
|
|
93
93
|
r.value = !1;
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
v(
|
|
96
96
|
() => t.loading,
|
|
97
97
|
(e) => {
|
|
98
98
|
e && (r.value = !1);
|
|
99
99
|
}
|
|
100
|
-
),
|
|
100
|
+
), v(
|
|
101
101
|
f,
|
|
102
102
|
(e) => {
|
|
103
|
-
l.value =
|
|
103
|
+
l.value = q(e);
|
|
104
104
|
},
|
|
105
105
|
{ deep: !0 }
|
|
106
106
|
);
|
|
107
|
-
const
|
|
107
|
+
const c = a(() => t.options.length > 0 ? t.options : t.optionsMap), S = d(null), O = d([]), M = a(() => t.options), p = a(() => t.virtual && M.value.length > 0), _ = a(() => t.virtualItemHeight || he(t.thickness)), B = a(() => t.virtualOverscan), L = a(() => t.virtualDynamicHeight), s = He(M, {
|
|
108
108
|
enabled: p,
|
|
109
|
-
itemHeight:
|
|
110
|
-
overscan:
|
|
111
|
-
dynamic:
|
|
112
|
-
}), Y = a(() =>
|
|
113
|
-
|
|
109
|
+
itemHeight: _,
|
|
110
|
+
overscan: B,
|
|
111
|
+
dynamic: L
|
|
112
|
+
}), Y = a(() => s.virtualItems.value), Z = s.spacerStyle, ee = s.contentStyle, te = a(() => ye(t.virtualMaxHeight)), w = () => {
|
|
113
|
+
c.value.length > 0 || !S.value || (O.value = Array.from(S.value.querySelectorAll(".nmorph-select-option")).map((e) => e.getAttribute("value")).filter((e) => !!e));
|
|
114
114
|
}, o = a(
|
|
115
|
-
() =>
|
|
116
|
-
), le = a(() => p.value ? Array.isArray(l.value) ? l.value : l.value ? [l.value] : [] : o.value), u =
|
|
117
|
-
|
|
118
|
-
r.value && p.value &&
|
|
119
|
-
}),
|
|
115
|
+
() => c.value.length > 0 ? c.value.map((e) => e.value) : O.value
|
|
116
|
+
), le = a(() => p.value ? Array.isArray(l.value) ? l.value : l.value ? [l.value] : [] : o.value), u = d(0), D = a(() => o.value[u.value] || ""), ae = a(() => `${A.value}-listbox`), re = (e) => `${A.value}-option-${e.replace(/\s+/g, "-")}`;
|
|
117
|
+
v(u, (e) => {
|
|
118
|
+
r.value && p.value && s.scrollToIndex(e);
|
|
119
|
+
}), v(
|
|
120
120
|
o,
|
|
121
121
|
(e) => {
|
|
122
122
|
u.value >= e.length && (u.value = Math.max(e.length - 1, 0));
|
|
123
123
|
},
|
|
124
124
|
{ immediate: !0 }
|
|
125
|
-
),
|
|
125
|
+
), v(r, async (e) => {
|
|
126
126
|
if (e) {
|
|
127
|
-
if (await
|
|
127
|
+
if (await P(), w(), !Array.isArray(l.value) && l.value) {
|
|
128
128
|
const n = o.value.indexOf(l.value);
|
|
129
129
|
n !== -1 && (u.value = n);
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
s.refresh(), p.value && s.scrollToIndex(u.value);
|
|
132
132
|
}
|
|
133
|
-
}),
|
|
134
|
-
await
|
|
135
|
-
}),
|
|
133
|
+
}), ce(async () => {
|
|
134
|
+
await P(), w(), document.addEventListener("click", N);
|
|
135
|
+
}), ve(() => {
|
|
136
136
|
document.removeEventListener("click", N);
|
|
137
137
|
});
|
|
138
|
-
const ne = a(() => Array.isArray(l.value) ?
|
|
139
|
-
V("select-selected-value", l), V("select-change-selected-value", x), V("select-
|
|
140
|
-
const
|
|
141
|
-
() =>
|
|
142
|
-
),
|
|
143
|
-
|
|
138
|
+
const ne = a(() => Array.isArray(l.value) ? y.value : l.value ? c.value.find((e) => e.value === l.value)?.label : y.value), ue = a(() => c.value.length > 0 ? c.value.filter((n) => Array.isArray(l.value) && l.value.includes(n.value)).map((n) => ({ text: n.label, value: n.value })) : Array.isArray(l.value) ? l.value.map((n) => ({ text: n, value: n })) : l.value ? [{ text: l.value, value: l.value }] : []);
|
|
139
|
+
V("select-selected-value", l), V("select-change-selected-value", x), V("select-thickness", fe(t, "thickness"));
|
|
140
|
+
const R = d(null), oe = a(
|
|
141
|
+
() => b.value ? `${R.value?.clientWidth || 0}px` : void 0
|
|
142
|
+
), C = { t: E, props: t, computedNoElementPlaceholder: y, emit: k, modelValue: f, updateModelValue: g, getEmptySingleValue: m, isMultiple: H, normalizeModelValue: q, initialValue: l, open: r, disabledInput: i, autoOptionsWidth: b, selectedLineOutset: I, id: A, name: F, autocomplete: U, tabindex: j, changeHandler: x, focus: h, focusHandler: G, blurHandler: J, modifiers: K, styles: Q, clickHandler: X, closeHandler: N, optionsMap: c, optionsDOMRef: S, slotDomOptions: O, renderedOptions: M, virtualEnabled: p, virtualItemHeight: _, virtualOverscan: B, virtualDynamicHeight: L, virtualList: s, virtualOptions: Y, virtualSpacerStyle: Z, virtualContentStyle: ee, virtualMaxHeight: te, refreshDomOptions: w, domOptions: o, nativeOptions: le, currentIndex: u, currentFocusedEl: D, listboxId: ae, getOptionId: re, selectedValueTitle: ne, tags: ue, nmorphSelectDOMRef: R, optionsMinWidth: oe, spaceHandler: () => {
|
|
143
|
+
i.value || (r.value = !r.value);
|
|
144
144
|
}, arrowDownHandler: () => {
|
|
145
|
-
|
|
145
|
+
i.value || o.value.length !== 0 && (r.value || (r.value = !0), u.value = (u.value + 1) % o.value.length);
|
|
146
146
|
}, arrowUpHandler: () => {
|
|
147
|
-
|
|
147
|
+
i.value || o.value.length !== 0 && (r.value || (r.value = !0), u.value = (u.value - 1 + o.value.length) % o.value.length);
|
|
148
148
|
}, enterHandler: () => {
|
|
149
149
|
r.value && D.value && x(D.value);
|
|
150
150
|
}, setVirtualOptionRef: (e, n) => {
|
|
151
|
-
|
|
151
|
+
s.measureElement(n, ge(e));
|
|
152
152
|
}, escapeHandler: () => {
|
|
153
153
|
r.value = !1;
|
|
154
154
|
}, homeHandler: () => {
|
|
@@ -168,7 +168,7 @@ const Xe = /* @__PURE__ */ de({
|
|
|
168
168
|
}, get NmorphIconChevronDown() {
|
|
169
169
|
return Me;
|
|
170
170
|
} };
|
|
171
|
-
return Object.defineProperty(
|
|
171
|
+
return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
export {
|
package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-select-option{--hover-
|
|
1
|
+
.nmorph-select-option{--nmorph-private-select-option-hover-background: var(--nmorph-accent-color);--nmorph-private-select-option-hover-color: var(--nmorph-white-color);display:flex;gap:var(--indentation-01);justify-content:space-between;align-items:center;box-sizing:border-box;min-width:0;padding:var(--indentation-00) var(--default-indentation-input);cursor:pointer}.nmorph-select-option .nmorph-select-option__content{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(var(--nmorph-private-control-text-offset-y))}.nmorph-select-option .nmorph-select-option__content span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-select-option .nmorph-select-option__checked{flex:0 0 auto}.nmorph-select-option:not(.nmorph-select-option--disabled):hover{background:var(--nmorph-private-select-option-hover-background)}.nmorph-select-option:not(.nmorph-select-option--disabled):hover span{color:var(--nmorph-private-select-option-hover-color)}.nmorph-select-option:not(.nmorph-select-option--disabled):hover .nmorph-select-option__checked{--nmorph-private-icon-color: var(--nmorph-private-select-option-hover-color)}.nmorph-select-option.nmorph-select-option--focused:not(.nmorph-select-option--disabled){background:var(--nmorph-private-select-option-hover-background)}.nmorph-select-option.nmorph-select-option--focused:not(.nmorph-select-option--disabled) span{color:var(--nmorph-private-select-option-hover-color)}.nmorph-select-option.nmorph-select-option--focused:not(.nmorph-select-option--disabled) .nmorph-select-option__checked{--nmorph-private-icon-color: var(--nmorph-private-select-option-hover-color)}.nmorph-select-option.nmorph-select-option--disabled{cursor:not-allowed;opacity:.6;pointer-events:none}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './NmorphSelectOption.css';
|
|
2
|
-
import { defineComponent as g, inject as
|
|
2
|
+
import { defineComponent as g, inject as s, computed as t } from "vue";
|
|
3
3
|
import { useModifiers as y } from "../../../../../utils/create-modifiers.js";
|
|
4
4
|
import { createCssVariables as b } from "../../../../../utils/common.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
5
|
+
import { NmorphComponentThickness as S } from "../../../../../types/common.types.js";
|
|
6
|
+
import k from "../../../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
7
|
+
import q from "../../../../../assets/icons/success.svg.js";
|
|
8
|
+
const V = /* @__PURE__ */ g({
|
|
9
9
|
__name: "NmorphSelectOption",
|
|
10
10
|
props: {
|
|
11
11
|
value: { type: String, required: !0 },
|
|
@@ -16,41 +16,41 @@ const H = /* @__PURE__ */ g({
|
|
|
16
16
|
id: { type: String, required: !1 },
|
|
17
17
|
name: { type: String, required: !1 },
|
|
18
18
|
autocomplete: { type: String, required: !1 },
|
|
19
|
-
|
|
19
|
+
thickness: { type: null, required: !1 },
|
|
20
20
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
21
21
|
tabindex: { type: Number, required: !1 }
|
|
22
22
|
},
|
|
23
23
|
emits: ["change-value"],
|
|
24
|
-
setup(
|
|
24
|
+
setup(u, { expose: d, emit: p }) {
|
|
25
25
|
d();
|
|
26
|
-
const r =
|
|
27
|
-
"select-
|
|
26
|
+
const r = s("select-selected-value"), o = s("select-change-selected-value"), l = s(
|
|
27
|
+
"select-thickness",
|
|
28
28
|
void 0
|
|
29
|
-
), e =
|
|
30
|
-
e.disabled || (
|
|
31
|
-
},
|
|
29
|
+
), e = u, a = p, f = () => {
|
|
30
|
+
e.disabled || (a("change-value", e.value), o && o(e.value));
|
|
31
|
+
}, n = t(() => typeof r?.value == "string" ? r.value === e.value : Array.isArray(r?.value) ? r.value.some((v) => v === e.value) : !1), i = t(() => e.thickness || l?.value || "basic"), m = t(
|
|
32
32
|
() => y({
|
|
33
|
-
nmorph: [S[
|
|
33
|
+
nmorph: [S[i.value]],
|
|
34
34
|
"nmorph-select-option": [
|
|
35
35
|
e.disabled && "disabled",
|
|
36
36
|
e.label && "with-label",
|
|
37
|
-
|
|
37
|
+
n.value && "checked",
|
|
38
38
|
e.focused && "focused"
|
|
39
39
|
]
|
|
40
40
|
})
|
|
41
41
|
), h = t(
|
|
42
42
|
() => b({
|
|
43
|
-
"--hover-
|
|
44
|
-
"--hover-color": e.hoverColor
|
|
43
|
+
"--nmorph-private-select-option-hover-background": e.hoverBackground,
|
|
44
|
+
"--nmorph-private-select-option-hover-color": e.hoverColor
|
|
45
45
|
})
|
|
46
|
-
),
|
|
47
|
-
return
|
|
46
|
+
), c = { selectSelectedValue: r, selectChangeSelectedValue: o, selectThickness: l, props: e, emit: a, clickHandler: f, checked: n, thickness: i, modifiers: m, styles: h, get NmorphIcon() {
|
|
47
|
+
return k;
|
|
48
48
|
}, get NmorphIconSuccess() {
|
|
49
|
-
return
|
|
49
|
+
return q;
|
|
50
50
|
} };
|
|
51
|
-
return Object.defineProperty(
|
|
51
|
+
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
V as default
|
|
56
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-select-button{--
|
|
1
|
+
.nmorph-select-button{--nmorph-private-select-button-padding: max(3px, calc(var(--nmorph-private-control-height) * .1333));--nmorph-private-select-button-item-height: calc( var(--nmorph-private-control-height) - var(--nmorph-private-select-button-padding) * 2 );display:inline-flex;align-items:center;width:fit-content;padding:var(--nmorph-private-select-button-padding);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow: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(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color);transition:background-color ease-in-out var(--transition-02),border-color ease-in-out var(--transition-02),box-shadow ease-in-out var(--transition-02)}.nmorph-select-button.nmorph-select-button--disabled{cursor:not-allowed;opacity:.6}.nmorph-select-button.nmorph-select-button--fill{width:100%}.nmorph-select-button.nmorph-select-button--fill>.nmorph-select-button-item{flex:1 1 0;min-width:0}
|
|
@@ -1,58 +1,54 @@
|
|
|
1
1
|
import './NmorphSelectButton.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import {
|
|
5
|
-
import { useFormItemModel as
|
|
6
|
-
import
|
|
7
|
-
|
|
2
|
+
import { defineComponent as h, ref as b, watch as y, computed as n, provide as u } from "vue";
|
|
3
|
+
import { useModifiers as S } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { createCssSizeVariables as q } from "../../../utils/common.js";
|
|
5
|
+
import { useFormItemModel as _ } from "../nmorph-form/use-form-item-input.js";
|
|
6
|
+
import { NmorphComponentThickness as g } from "../../../types/common.types.js";
|
|
7
|
+
import v from "./components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js";
|
|
8
|
+
const I = /* @__PURE__ */ h({
|
|
8
9
|
__name: "NmorphSelectButton",
|
|
9
10
|
props: {
|
|
10
11
|
modelValue: { type: String, required: !1, default: "" },
|
|
11
12
|
options: { type: Array, required: !1, default: () => [] },
|
|
12
13
|
fill: { type: Boolean, required: !1, default: !1 },
|
|
13
|
-
|
|
14
|
-
itemSize: { type: [Number, String], required: !1, default: void 0 },
|
|
15
|
-
itemFontSize: { type: String, required: !1, default: void 0 },
|
|
14
|
+
customThickness: { type: [Number, String], required: !1, default: void 0 },
|
|
16
15
|
id: { type: String, required: !1 },
|
|
17
16
|
name: { type: String, required: !1 },
|
|
18
17
|
autocomplete: { type: String, required: !1 },
|
|
19
|
-
|
|
18
|
+
thickness: { type: null, required: !1, default: "basic" },
|
|
20
19
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
21
20
|
tabindex: { type: Number, required: !1 }
|
|
22
21
|
},
|
|
23
22
|
emits: ["update:model-value"],
|
|
24
|
-
setup(
|
|
23
|
+
setup(d, { expose: m, emit: p }) {
|
|
25
24
|
m();
|
|
26
|
-
const e =
|
|
25
|
+
const e = d, l = p, { modelValue: o, updateModelValue: s } = _(
|
|
27
26
|
e,
|
|
28
|
-
(t) =>
|
|
27
|
+
(t) => l("update:model-value", t),
|
|
29
28
|
""
|
|
30
|
-
), r = b(
|
|
31
|
-
|
|
29
|
+
), r = b(o.value);
|
|
30
|
+
y(o, (t) => {
|
|
32
31
|
r.value = t;
|
|
33
32
|
});
|
|
34
|
-
const
|
|
35
|
-
() =>
|
|
36
|
-
|
|
33
|
+
const f = n(
|
|
34
|
+
() => S({
|
|
35
|
+
nmorph: [g[e.thickness]],
|
|
36
|
+
"nmorph-select-button": [e.disabled && "disabled", e.fill && "fill", e.thickness]
|
|
37
37
|
})
|
|
38
|
-
), c =
|
|
38
|
+
), c = n(() => ({
|
|
39
39
|
...q({
|
|
40
|
-
"--
|
|
41
|
-
"--item-size": e.itemSize
|
|
42
|
-
}),
|
|
43
|
-
...h({
|
|
44
|
-
"--item-font-size": e.itemFontSize
|
|
40
|
+
"--nmorph-private-control-height": e.customThickness
|
|
45
41
|
})
|
|
46
|
-
})),
|
|
47
|
-
e.disabled || (r.value = t,
|
|
42
|
+
})), i = (t) => {
|
|
43
|
+
e.disabled || (r.value = t, s(t));
|
|
48
44
|
};
|
|
49
|
-
u("select-button-selected-value", r), u("select-button-change-handler",
|
|
50
|
-
const
|
|
51
|
-
return
|
|
45
|
+
u("select-button-selected-value", r), u("select-button-change-handler", i);
|
|
46
|
+
const a = { props: e, emit: l, modelValue: o, updateModelValue: s, initialValue: r, modifiers: f, styles: c, changeHandler: i, get NmorphSelectButtonItem() {
|
|
47
|
+
return v;
|
|
52
48
|
} };
|
|
53
|
-
return Object.defineProperty(
|
|
49
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
54
50
|
}
|
|
55
51
|
});
|
|
56
52
|
export {
|
|
57
|
-
|
|
53
|
+
I as default
|
|
58
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-select-button-item{display:inline-flex;justify-content:center;align-items:center;height:var(--item-
|
|
1
|
+
.nmorph-select-button-item{display:inline-flex;justify-content:center;align-items:center;height:var(--nmorph-private-select-button-item-height);padding:0 var(--indentation-04);font-size:var(--nmorph-private-control-font-size);line-height:var(--nmorph-private-control-line-height);border-radius:var(--default-border-radius);transform:translateY(0);cursor:pointer;opacity:.45;transition:color ease-in-out var(--transition-02),background-color ease-in-out var(--transition-02),box-shadow ease-in-out var(--transition-02),opacity ease-in-out var(--transition-02),transform ease-in-out var(--transition-01)}.nmorph-select-button-item input{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.nmorph-select-button-item:focus-visible{outline:2px solid var(--nmorph-accent-color);outline-offset:2px}.nmorph-select-button-item:not(.nmorph-select-button-item--disabled):hover{opacity:.72}.nmorph-select-button-item:not(.nmorph-select-button-item--disabled):active{transform:translateY(1px)}.nmorph-select-button-item .nmorph-select-button-item__content{min-width:0;transform:translateY(var(--nmorph-private-control-text-offset-y))}.nmorph-select-button-item.nmorph-select-button-item--checked{background: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);opacity:1}.nmorph-select-button-item.nmorph-select-button-item--checked:hover{opacity:1}.nmorph-select-button-item.nmorph-select-button-item--disabled{cursor:not-allowed;opacity:.6}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './NmorphSelectButtonItem.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as
|
|
2
|
+
import c from "./NmorphSelectButtonItem.vue2.js";
|
|
3
|
+
import { openBlock as i, createElementBlock as l, withKeys as t, withModifiers as o, normalizeClass as s, createElementVNode as n, renderSlot as a } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const p = ["tabindex", "onKeydown"], m = ["value", "checked", "disabled"];
|
|
7
|
-
function
|
|
8
|
-
return
|
|
9
|
-
class:
|
|
5
|
+
import d from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const p = ["tabindex", "onKeydown"], m = ["value", "checked", "disabled"], _ = { class: "nmorph-select-button-item__content" };
|
|
7
|
+
function h(r, f, b, e, u, k) {
|
|
8
|
+
return i(), l("label", {
|
|
9
|
+
class: s(e.modifiers),
|
|
10
10
|
tabindex: e.props.tabindex,
|
|
11
11
|
onClick: o(e.clickHandler, ["prevent"]),
|
|
12
12
|
onKeydown: [
|
|
@@ -14,7 +14,7 @@ function f(n, h, _, e, b, k) {
|
|
|
14
14
|
t(o(e.clickHandler, ["prevent"]), ["enter"])
|
|
15
15
|
]
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
n("input", {
|
|
18
18
|
ref: "inputDOMRef",
|
|
19
19
|
type: "radio",
|
|
20
20
|
value: e.props.value,
|
|
@@ -23,10 +23,12 @@ function f(n, h, _, e, b, k) {
|
|
|
23
23
|
tabindex: "-1",
|
|
24
24
|
class: "nmorph-native-input"
|
|
25
25
|
}, null, 8, m),
|
|
26
|
-
|
|
26
|
+
n("span", _, [
|
|
27
|
+
a(r.$slots, "default")
|
|
28
|
+
])
|
|
27
29
|
], 42, p);
|
|
28
30
|
}
|
|
29
|
-
const
|
|
31
|
+
const B = /* @__PURE__ */ d(c, [["render", h], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue"]]);
|
|
30
32
|
export {
|
|
31
|
-
|
|
33
|
+
B as default
|
|
32
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-slider{position:relative;width:100%;height:20px;--slider-height: 24px;--value-
|
|
1
|
+
.nmorph-slider{position:relative;width:100%;height:20px;--nmorph-private-slider-height: 24px;--nmorph-private-slider-value-container-height: 18px;cursor:pointer}.nmorph-slider .nmorph-slider__content{display:flex;align-items:center}.nmorph-slider .nmorph-slider__input-wrapper{display:flex;align-items:center;width:100%;height:var(--nmorph-private-slider-value-container-height);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow: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(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-slider .nmorph-slider__input-container{position:relative;display:flex;align-items:center;width:100%;height:var(--nmorph-private-slider-height);touch-action:none}.nmorph-slider .nmorph-tooltip{position:absolute;inset:0;z-index:2;width:100%;pointer-events:none}.nmorph-slider .nmorph-tooltip .nmorph-tooltip__content{width:100%;height:100%}.nmorph-slider .nmorph-tooltip .nmorph-tooltip__trigger{display:none}.nmorph-slider .nmorph-slider__thumb{position:absolute;z-index:1;width:var(--nmorph-private-slider-thumb-width);height:20px;background:var(--nmorph-main-color);border:0;border-radius:var(--default-border-radius);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)}.nmorph-slider .nmorph-slider__thumb--smooth{transition:left ease-in-out .2s}.nmorph-slider .nmorph-slide__native-input{position:absolute;top:50%;left:50%;width:100%;background:transparent;transform:translate(-50%,-50%);appearance:none}.nmorph-slider .nmorph-slide__native-input::-webkit-slider-runnable-track{height:var(--nmorph-private-slider-height);background:transparent}.nmorph-slider .nmorph-slide__native-input::-moz-range-track{height:var(--nmorph-private-slider-height);background:transparent}.nmorph-slider .nmorph-slide__native-input::-webkit-slider-thumb{visibility:hidden}.nmorph-slider .nmorph-slide__native-input::-moz-range-thumb{visibility:hidden}.nmorph-slider.nmorph-slider--fill,.nmorph-slider.nmorph-slider--fill .nmorph-slider__content{width:100%}.nmorph-slider.nmorph-slider--disabled{cursor:not-allowed;opacity:.6}.nmorph-slider.nmorph-slider--disabled .nmorph-slider__input-content{pointer-events:none}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './NmorphSlider.css';
|
|
2
|
-
import { defineComponent as A, computed as
|
|
2
|
+
import { defineComponent as A, computed as f, ref as i, watch as y, nextTick as M, onMounted as G, onUnmounted as J } from "vue";
|
|
3
3
|
import { useModifiers as K } from "../../../utils/create-modifiers.js";
|
|
4
4
|
import { createCssSizeVariables as Q } from "../../../utils/common.js";
|
|
5
5
|
import { useFormItemInput as Y, useFormItemModel as Z } from "../nmorph-form/use-form-item-input.js";
|
|
6
6
|
import ee from "../../feedback/nmorph-tooltip/NmorphTooltip.vue.js";
|
|
7
|
-
const
|
|
7
|
+
const ae = /* @__PURE__ */ A({
|
|
8
8
|
__name: "NmorphSlider",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: { type: Number, required: !1, default: 0 },
|
|
@@ -23,73 +23,78 @@ const de = /* @__PURE__ */ A({
|
|
|
23
23
|
tabindex: { type: Number, required: !1 }
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:model-value"],
|
|
26
|
-
setup(
|
|
27
|
-
|
|
28
|
-
const e =
|
|
26
|
+
setup(T, { expose: H, emit: _ }) {
|
|
27
|
+
H();
|
|
28
|
+
const e = T, { id: S, name: C, tabindex: V } = Y(e), z = f(
|
|
29
29
|
() => K({
|
|
30
30
|
nmorph: [],
|
|
31
31
|
"nmorph-slider": [e.disabled && "disabled"]
|
|
32
32
|
})
|
|
33
|
-
),
|
|
33
|
+
), L = f(() => `${e.thumbWidth}px`), a = i(e.showTooltip), q = _, { modelValue: v, updateModelValue: W } = Z(
|
|
34
34
|
e,
|
|
35
|
-
(t) =>
|
|
35
|
+
(t) => q("update:model-value", t),
|
|
36
36
|
0
|
|
37
|
-
), n =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}),
|
|
37
|
+
), n = i(v.value), b = i(null);
|
|
38
|
+
y(n, () => {
|
|
39
|
+
W(n.value);
|
|
40
|
+
}), y(v, (t) => {
|
|
41
41
|
n.value = t;
|
|
42
42
|
});
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
const E = i(null), u = i(24), l = () => {
|
|
44
|
+
u.value = E.value?.tooltipBody?.clientWidth || 24;
|
|
45
|
+
};
|
|
46
|
+
y([n, a], () => M(l), { flush: "post" });
|
|
47
|
+
const B = f(() => {
|
|
48
|
+
s.value, d.value;
|
|
49
|
+
const t = e.max - e.min, o = b.value?.clientWidth || 0;
|
|
50
|
+
if (!o || t <= 0) return { thumb: "0px", tooltip: "0px" };
|
|
51
|
+
const p = Math.max(0, Math.min(1, (n.value - e.min) / t)), c = Math.min(e.thumbWidth, o), h = p * Math.max(0, o - c), $ = h + c / 2, U = Math.max(0, o - u.value), j = Math.max(0, Math.min(U, $ - u.value / 2)), k = `${h}px`, O = `${j}px`;
|
|
47
52
|
return {
|
|
48
|
-
thumb:
|
|
49
|
-
tooltip:
|
|
53
|
+
thumb: k,
|
|
54
|
+
tooltip: O
|
|
50
55
|
};
|
|
51
|
-
}), s =
|
|
52
|
-
s.value = window.innerWidth,
|
|
56
|
+
}), s = i(0), d = i(0), w = () => {
|
|
57
|
+
s.value = window.innerWidth, d.value = window.innerHeight, M(l);
|
|
53
58
|
};
|
|
54
59
|
G(() => {
|
|
55
|
-
typeof window < "u" && (s.value = window.innerWidth,
|
|
60
|
+
typeof window < "u" && (s.value = window.innerWidth, d.value = window.innerHeight, window.addEventListener("resize", w), M(l));
|
|
56
61
|
}), J(() => {
|
|
57
|
-
typeof window < "u" && (document.removeEventListener("pointermove",
|
|
62
|
+
typeof window < "u" && (document.removeEventListener("pointermove", m), document.removeEventListener("pointerup", r), document.removeEventListener("pointercancel", r), window.removeEventListener("resize", w));
|
|
58
63
|
});
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
let
|
|
63
|
-
if (
|
|
64
|
-
const
|
|
65
|
-
|
|
64
|
+
const x = (t) => {
|
|
65
|
+
g.value = !1;
|
|
66
|
+
const o = b.value?.getBoundingClientRect();
|
|
67
|
+
let p = 0;
|
|
68
|
+
if (o) {
|
|
69
|
+
const c = t - o.left, h = o.width;
|
|
70
|
+
p = Math.max(0, Math.min(1, c / h)), n.value = e.min + p * (e.max - e.min);
|
|
66
71
|
}
|
|
67
72
|
n.value = Math.round(n.value / e.step) * e.step, n.value = Math.max(e.min, Math.min(e.max, n.value));
|
|
68
|
-
},
|
|
69
|
-
t.preventDefault(),
|
|
70
|
-
},
|
|
71
|
-
document.removeEventListener("pointermove",
|
|
72
|
-
},
|
|
73
|
-
e.disabled || t.pointerType === "mouse" && t.button !== 0 || (t.preventDefault(),
|
|
74
|
-
},
|
|
75
|
-
e.showTooltip && (
|
|
76
|
-
},
|
|
77
|
-
e.showTooltip && (
|
|
73
|
+
}, m = (t) => {
|
|
74
|
+
t.preventDefault(), x(t.clientX);
|
|
75
|
+
}, r = () => {
|
|
76
|
+
document.removeEventListener("pointermove", m), document.removeEventListener("pointerup", r), document.removeEventListener("pointercancel", r), g.value = !0;
|
|
77
|
+
}, F = (t) => {
|
|
78
|
+
e.disabled || t.pointerType === "mouse" && t.button !== 0 || (t.preventDefault(), x(t.clientX), document.addEventListener("pointermove", m), document.addEventListener("pointerup", r), document.addEventListener("pointercancel", r));
|
|
79
|
+
}, I = i(null), D = () => {
|
|
80
|
+
e.showTooltip && (a.value = !0);
|
|
81
|
+
}, P = () => {
|
|
82
|
+
e.showTooltip && (a.value = !1);
|
|
78
83
|
}, R = (t) => {
|
|
79
|
-
const
|
|
80
|
-
n.value = Number(
|
|
81
|
-
},
|
|
82
|
-
"--nmorph-slider-thumb-width":
|
|
84
|
+
const o = t.target;
|
|
85
|
+
n.value = Number(o.value);
|
|
86
|
+
}, g = i(!0), X = f(() => ({
|
|
87
|
+
"--nmorph-private-slider-thumb-width": L.value,
|
|
83
88
|
...Q({
|
|
84
|
-
"--slider-height": e.sliderHeight,
|
|
85
|
-
"--value-
|
|
89
|
+
"--nmorph-private-slider-height": e.sliderHeight,
|
|
90
|
+
"--nmorph-private-slider-value-container-height": e.valueFixedContainerHeight
|
|
86
91
|
})
|
|
87
|
-
})),
|
|
92
|
+
})), N = { props: e, id: S, name: C, tabindex: V, modifiers: z, thumbWidthCss: L, tooltipVisible: a, emit: q, modelValue: v, updateModelValue: W, thumbValue: n, sliderContainer: b, tooltipRootRef: E, tooltipWidth: u, updateTooltipWidth: l, thumbXPercentPosition: B, windowWidth: s, windowHeight: d, resizeWindowHandler: w, updateThumbValue: x, pointerMove: m, pointerUp: r, pointerDownHandler: F, sliderFirst: I, handleMouseEnter: D, handleMouseLeave: P, nativeInputHandler: R, transitionEnabled: g, styles: X, get NmorphTooltip() {
|
|
88
93
|
return ee;
|
|
89
94
|
} };
|
|
90
|
-
return Object.defineProperty(
|
|
95
|
+
return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
|
|
91
96
|
}
|
|
92
97
|
});
|
|
93
98
|
export {
|
|
94
|
-
|
|
99
|
+
ae as default
|
|
95
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-switch{--width: 40px;--height: 20px;--offset: 3px;--thumb-height: 14px;width:var(--width);height:var(--height);overflow:hidden;border-radius:var(--border-radius-999);cursor:pointer}.nmorph-switch .nmorph-switch__content{position:relative;height:100%;font-weight:
|
|
1
|
+
.nmorph-switch{--nmorph-private-switch-width: 40px;--nmorph-private-switch-height: 20px;--nmorph-private-switch-offset: 3px;--nmorph-private-switch-thumb-height: 14px;width:var(--nmorph-private-switch-width);height:var(--nmorph-private-switch-height);overflow:hidden;border-radius:var(--border-radius-999);cursor:pointer}.nmorph-switch .nmorph-switch__content{position:relative;height:100%;font-weight:var(--nmorph-typography-control-small-font-weight);font-size:var(--nmorph-typography-control-small-font-size);line-height:var(--nmorph-typography-control-small-line-height);background:var(--nmorph-main-color);border-radius:var(--border-radius-999);box-shadow: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(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-switch .nmorph-switch__bg-content{position:absolute;top:0;left:0;display:flex;justify-content:flex-end;align-items:center;width:100%;height:100%;padding:0 8px}.nmorph-switch .nmorph-switch__bg-content.nmorph-switch__bg-content--enable{justify-content:flex-start;color:var(--nmorph-focus-text-color)}.nmorph-switch input{width:100%;height:var(--nmorph-private-switch-height);opacity:0}.nmorph-switch .nmorph-switch-thumb{position:absolute;top:var(--nmorph-private-switch-offset);left:var(--nmorph-private-switch-offset);display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-switch-thumb-height);height:var(--nmorph-private-switch-thumb-height);background:var(--nmorph-main-color);border-radius:var(--border-radius-999);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);transition:left ease-in-out var(--transition-02)}.nmorph-switch.nmorph-switch--disabled{cursor:not-allowed;opacity:.6}.nmorph-switch.nmorph-switch--disabled .nmorph-switch__input-content{pointer-events:none}.nmorph-switch.nmorph-switch--on .nmorph-switch__content{background:var(--nmorph-accent-color);box-shadow:none}.nmorph-switch.nmorph-switch--on .nmorph-switch-thumb{left:calc(100% - var(--nmorph-private-switch-thumb-height) - var(--nmorph-private-switch-offset));box-shadow:none}.nmorph-switch.nmorph-switch--loading{cursor:not-allowed;opacity:.6}.nmorph-switch.nmorph-switch--loading .nmorph-switch__input-content{pointer-events:none}.nmorph-switch.nmorph-switch--focus{outline:2px solid var(--nmorph-accent-color)}.nmorph-switch.nmorph-switch--focus .nmorph-switch__content{scale:.95}
|