@onereach/ui-components 4.3.10 → 4.4.0-beta.2663.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/bundled/v2/components/OrCode/OrCode.js +6 -3792
- package/dist/bundled/v2/components/OrCode/index.js +6 -2
- package/dist/bundled/v2/components/OrCode/lang.js +3941 -3
- package/dist/bundled/v2/components/OrCode/theme.js +2 -1
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +2 -1
- package/dist/bundled/v2/components/OrConfirm/index.js +2 -1
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +1 -1
- package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v2/components/OrModal/OrModal.js +3 -1346
- package/dist/bundled/v2/components/OrModal/index.js +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2052 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +170 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +69 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +46 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +184 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +5 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +24 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +190 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +5 -0
- package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +16 -3
- package/dist/bundled/{v3/index-cf2c3c27.js → v2/index-0d224ae5.js} +3 -115
- package/dist/bundled/v2/index-1182caa8.js +9633 -0
- package/dist/bundled/v2/index-85c2efe8.js +7122 -0
- package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-74060519.js → v2/index-d92d0b48.js} +14 -235
- package/dist/bundled/{v3/lang-0fb8f78b.js → v2/index-e9f6b2d8.js} +73 -4009
- package/dist/bundled/v2/index.es-3f39f316.js +115 -0
- package/dist/bundled/v2/index.js +19 -6
- package/dist/bundled/v2/markdown-d704b3a8.js +17975 -0
- package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-ae842e5b.js → v2/useFocusTrap-48767a70.js} +3 -106
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-7e29b3d0.js +237 -0
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e5a8f92a.js → OrConfirm.vue_vue_type_script_lang-4eaa8470.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-23e4ce08.js → OrConfirm.vue_vue_type_script_lang-dca252a7.js} +1 -1
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-2c009ee0.js +108 -0
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-e66a00b7.js +1826 -0
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +24 -8
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +33 -20
- package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
- package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
- package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +70 -22
- package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.vue.d.ts +676 -126
- package/dist/bundled/v3/components/OrCarouselItem/OrCarouselItem.vue.d.ts +1 -1
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
- package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
- package/dist/bundled/v3/components/OrCode/OrCode.js +10 -6
- package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
- package/dist/bundled/v3/components/OrCode/index.js +8 -4
- package/dist/bundled/v3/components/OrCode/lang.js +3941 -3
- package/dist/bundled/v3/components/OrCode/theme.js +2 -1
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +39 -17
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +5 -4
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
- package/dist/bundled/v3/components/OrConfirm/index.js +4 -3
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +3 -3
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -29
- package/dist/bundled/v3/components/OrConfirmV3/index.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +81 -25
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +105 -31
- package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
- package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +35 -14
- package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
- package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
- package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +52 -16
- package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
- package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +85 -34
- package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +24 -9
- package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
- package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +43 -16
- package/dist/bundled/v3/components/OrModal/OrModal.js +3 -2
- package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
- package/dist/bundled/v3/components/OrModal/index.js +2 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +31 -15
- package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
- package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +74 -27
- package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
- package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
- package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +229 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +170 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +85 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +46 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +184 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +5 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +24 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +190 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +5 -0
- package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
- package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +115 -37
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
- package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
- package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +25 -13
- package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
- package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
- package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
- package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +69 -24
- package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
- package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
- package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +79 -25
- package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
- package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +37 -13
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +21 -7
- package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/bundled/{v2/index-cf2c3c27.js → v3/index-0d224ae5.js} +3 -115
- package/dist/bundled/v3/index-1182caa8.js +9633 -0
- package/dist/bundled/v3/index-85c2efe8.js +7122 -0
- package/dist/bundled/v3/index-d92d0b48.js +3805 -0
- package/dist/bundled/{v2/lang-0fb8f78b.js → v3/index-e9f6b2d8.js} +73 -4009
- package/dist/bundled/v3/index.es-3f39f316.js +115 -0
- package/dist/bundled/v3/index.js +25 -11
- package/dist/bundled/v3/markdown-d704b3a8.js +17975 -0
- package/dist/bundled/v3/useFocusTrap-48767a70.js +1348 -0
- package/dist/esm/v2/OrRichTextEditor-6758c259.js +765 -0
- package/dist/esm/v2/codemirrorView-be2c7423.js +353 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +24 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +170 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +59 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +7 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +24 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/index.js +24 -0
- package/dist/esm/v3/OrRichTextEditor-a1aae8f4.js +728 -0
- package/dist/esm/v3/codemirrorView-be2c7423.js +353 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +24 -0
- package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +24 -8
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +33 -20
- package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
- package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +70 -22
- package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
- package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-carousel/OrCarousel.vue.d.ts +676 -126
- package/dist/esm/v3/components/or-carousel/or-carousel-item/OrCarouselItem.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
- package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
- package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
- package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -29
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +81 -25
- package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +105 -31
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +11 -7
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +37 -15
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +35 -14
- package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
- package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
- package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
- package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
- package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +52 -16
- package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
- package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
- package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +85 -34
- package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +24 -9
- package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
- package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +43 -16
- package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +31 -15
- package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
- package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
- package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
- package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
- package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +74 -27
- package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
- package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
- package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
- package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +170 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +57 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +7 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +24 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +65 -23
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
- package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
- package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
- package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
- package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
- package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
- package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +115 -37
- package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
- package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
- package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +25 -13
- package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
- package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
- package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
- package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
- package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
- package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +69 -24
- package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
- package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
- package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
- package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +79 -25
- package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
- package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
- package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
- package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +37 -13
- package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/esm/v3/index.js +24 -0
- package/package.json +25 -5
- package/src/components/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +7 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +109 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +662 -0
- package/src/components/or-rich-text-editor-v3/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +64 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +254 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +213 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +117 -0
- /package/dist/bundled/v2/{index-968c331a.js → index-f6664cb1.js} +0 -0
- /package/dist/bundled/v3/{index-968c331a.js → index-f6664cb1.js} +0 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { TextSelection, Selection } from 'prosemirror-state';
|
|
2
|
+
import { exitCode } from 'prosemirror-commands';
|
|
3
|
+
import { EditorState } from '@codemirror/state';
|
|
4
|
+
import { EditorView, highlightActiveLine, highlightActiveLineGutter, lineNumbers, keymap } from '@codemirror/view';
|
|
5
|
+
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
6
|
+
import { tags } from '@lezer/highlight';
|
|
7
|
+
|
|
8
|
+
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
9
|
+
const chalky = 'var(--c-warning-darken-20)',
|
|
10
|
+
coral = 'var(--c-error)',
|
|
11
|
+
cyan = '#56b6c2',
|
|
12
|
+
invalid = 'var(--c-white)',
|
|
13
|
+
ivory = 'var(--c-neutral-6)',
|
|
14
|
+
stone = 'var(--c-neutral-5)',
|
|
15
|
+
// Brightened compared to original to increase contrast
|
|
16
|
+
malibu = '#61afef',
|
|
17
|
+
sage = 'var(--c-success)',
|
|
18
|
+
whiskey = 'var(--c-warning-darken-5)',
|
|
19
|
+
violet = '#c678dd',
|
|
20
|
+
darkBackground = 'var(--c-neutral-1)',
|
|
21
|
+
highlightBackground = 'var(--c-neutral-2)',
|
|
22
|
+
background = 'var(--c-neutral-1)',
|
|
23
|
+
tooltipBackground = 'var(--c-neutral-2)',
|
|
24
|
+
selection = 'var(--c-neutral-3)',
|
|
25
|
+
cursor = 'var(--c-primary)';
|
|
26
|
+
/// The editor theme styles for One Dark.
|
|
27
|
+
const orCodeTheme = EditorView.theme({
|
|
28
|
+
'&': {
|
|
29
|
+
color: ivory,
|
|
30
|
+
backgroundColor: background
|
|
31
|
+
},
|
|
32
|
+
'.cm-content': {
|
|
33
|
+
caretColor: cursor
|
|
34
|
+
},
|
|
35
|
+
'.cm-button': {
|
|
36
|
+
background: highlightBackground,
|
|
37
|
+
color: 'var(--c-neutral-6)',
|
|
38
|
+
border: 0,
|
|
39
|
+
borderRadius: 'var(--s-2)'
|
|
40
|
+
},
|
|
41
|
+
'.cm-panel.cm-search input[type=checkbox]': {
|
|
42
|
+
display: 'inline-block',
|
|
43
|
+
verticalAlign: 'middle'
|
|
44
|
+
},
|
|
45
|
+
'.cm-cursor, .cm-dropCursor': {
|
|
46
|
+
borderLeftColor: cursor
|
|
47
|
+
},
|
|
48
|
+
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
49
|
+
backgroundColor: selection
|
|
50
|
+
},
|
|
51
|
+
'.cm-panels': {
|
|
52
|
+
backgroundColor: darkBackground,
|
|
53
|
+
color: ivory
|
|
54
|
+
},
|
|
55
|
+
'.cm-panels.cm-panels-top': {
|
|
56
|
+
borderBottom: '2px solid var(--c-neutral-2)'
|
|
57
|
+
},
|
|
58
|
+
'.cm-panels.cm-panels-bottom': {
|
|
59
|
+
borderTop: '2px solid var(--c-neutral-2)'
|
|
60
|
+
},
|
|
61
|
+
'.cm-searchMatch': {
|
|
62
|
+
backgroundColor: 'var(--c-neutral-1)',
|
|
63
|
+
outline: '1px solid var(--c-neutral-2)'
|
|
64
|
+
},
|
|
65
|
+
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
66
|
+
backgroundColor: '#6199ff2f'
|
|
67
|
+
},
|
|
68
|
+
'.cm-activeLine': {
|
|
69
|
+
backgroundColor: '#6699ff0b'
|
|
70
|
+
},
|
|
71
|
+
'.cm-selectionMatch': {
|
|
72
|
+
backgroundColor: '#aafe661a'
|
|
73
|
+
},
|
|
74
|
+
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
75
|
+
backgroundColor: '#bad0f847'
|
|
76
|
+
},
|
|
77
|
+
'.cm-gutters': {
|
|
78
|
+
backgroundColor: background,
|
|
79
|
+
color: stone,
|
|
80
|
+
border: 'none'
|
|
81
|
+
},
|
|
82
|
+
'.cm-activeLineGutter': {
|
|
83
|
+
backgroundColor: highlightBackground
|
|
84
|
+
},
|
|
85
|
+
'.cm-foldPlaceholder': {
|
|
86
|
+
backgroundColor: 'transparent',
|
|
87
|
+
border: 'none',
|
|
88
|
+
color: '#ddd'
|
|
89
|
+
},
|
|
90
|
+
'.cm-tooltip': {
|
|
91
|
+
border: 'none',
|
|
92
|
+
backgroundColor: tooltipBackground
|
|
93
|
+
},
|
|
94
|
+
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
95
|
+
borderTopColor: 'transparent',
|
|
96
|
+
borderBottomColor: 'transparent'
|
|
97
|
+
},
|
|
98
|
+
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
99
|
+
borderTopColor: tooltipBackground,
|
|
100
|
+
borderBottomColor: tooltipBackground
|
|
101
|
+
},
|
|
102
|
+
'.cm-tooltip-autocomplete': {
|
|
103
|
+
'& > ul > li[aria-selected]': {
|
|
104
|
+
backgroundColor: highlightBackground,
|
|
105
|
+
color: ivory
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
'.cm-textfield': {
|
|
109
|
+
outline: 'none',
|
|
110
|
+
background: background,
|
|
111
|
+
color: 'var(--c-neutral-6)',
|
|
112
|
+
backgroundColor: 'var(--c-neutral-1)',
|
|
113
|
+
border: '1px solid var(--c-neutral-2)',
|
|
114
|
+
borderRadius: 'var(--s-2)'
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
dark: true
|
|
118
|
+
});
|
|
119
|
+
/// The highlighting style for code in the One Dark theme.
|
|
120
|
+
const orCodeHighlightStyle = HighlightStyle.define([{
|
|
121
|
+
tag: tags.keyword,
|
|
122
|
+
color: violet
|
|
123
|
+
}, {
|
|
124
|
+
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
|
125
|
+
color: coral
|
|
126
|
+
}, {
|
|
127
|
+
tag: [tags.function(tags.variableName), tags.labelName],
|
|
128
|
+
color: malibu
|
|
129
|
+
}, {
|
|
130
|
+
tag: [tags.color, tags.constant(tags.name), tags.standard(tags.name)],
|
|
131
|
+
color: whiskey
|
|
132
|
+
}, {
|
|
133
|
+
tag: [tags.definition(tags.name), tags.separator],
|
|
134
|
+
color: ivory
|
|
135
|
+
}, {
|
|
136
|
+
tag: [tags.typeName, tags.className, tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
|
137
|
+
color: chalky
|
|
138
|
+
}, {
|
|
139
|
+
tag: [tags.operator, tags.operatorKeyword, tags.url, tags.escape, tags.regexp, tags.link, tags.special(tags.string)],
|
|
140
|
+
color: cyan
|
|
141
|
+
}, {
|
|
142
|
+
tag: [tags.meta, tags.comment],
|
|
143
|
+
color: stone
|
|
144
|
+
}, {
|
|
145
|
+
tag: tags.strong,
|
|
146
|
+
fontWeight: 'bold'
|
|
147
|
+
}, {
|
|
148
|
+
tag: tags.emphasis,
|
|
149
|
+
fontStyle: 'italic'
|
|
150
|
+
}, {
|
|
151
|
+
tag: tags.strikethrough,
|
|
152
|
+
textDecoration: 'line-through'
|
|
153
|
+
}, {
|
|
154
|
+
tag: tags.link,
|
|
155
|
+
color: stone,
|
|
156
|
+
textDecoration: 'underline'
|
|
157
|
+
}, {
|
|
158
|
+
tag: tags.heading,
|
|
159
|
+
fontWeight: 'bold',
|
|
160
|
+
color: coral
|
|
161
|
+
}, {
|
|
162
|
+
tag: [tags.atom, tags.bool, tags.special(tags.variableName)],
|
|
163
|
+
color: whiskey
|
|
164
|
+
}, {
|
|
165
|
+
tag: [tags.processingInstruction, tags.string, tags.inserted],
|
|
166
|
+
color: sage
|
|
167
|
+
}, {
|
|
168
|
+
tag: tags.invalid,
|
|
169
|
+
color: invalid
|
|
170
|
+
}]);
|
|
171
|
+
/// Extension to enable the One Dark theme (both the editor theme and
|
|
172
|
+
/// the highlight style).
|
|
173
|
+
const theme = [orCodeTheme, syntaxHighlighting(orCodeHighlightStyle)];
|
|
174
|
+
|
|
175
|
+
const computeChange = (oldVal, newVal) => {
|
|
176
|
+
if (oldVal === newVal) {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
let start = 0;
|
|
180
|
+
let oldEnd = oldVal.length;
|
|
181
|
+
let newEnd = newVal.length;
|
|
182
|
+
while (start < oldEnd && oldVal.charCodeAt(start) === newVal.charCodeAt(start)) {
|
|
183
|
+
start += 1;
|
|
184
|
+
}
|
|
185
|
+
while (oldEnd > start && newEnd > start && oldVal.charCodeAt(oldEnd - 1) === newVal.charCodeAt(newEnd - 1)) {
|
|
186
|
+
oldEnd -= 1;
|
|
187
|
+
newEnd -= 1;
|
|
188
|
+
}
|
|
189
|
+
return {
|
|
190
|
+
from: start,
|
|
191
|
+
to: oldEnd,
|
|
192
|
+
text: newVal.slice(start, newEnd)
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
class CodeMirrorView {
|
|
196
|
+
constructor(options) {
|
|
197
|
+
var _a;
|
|
198
|
+
this.updating = false;
|
|
199
|
+
// Store for later
|
|
200
|
+
this.node = options.node;
|
|
201
|
+
this.view = options.view;
|
|
202
|
+
const cmExtensions = ((_a = options.cmOptions) === null || _a === void 0 ? void 0 : _a.extensions) || [];
|
|
203
|
+
this.name = 'codeBlock', this.getPos = options.getPos;
|
|
204
|
+
const changeFilter = EditorState.changeFilter.of(tr => {
|
|
205
|
+
if (!tr.docChanged && !this.updating) {
|
|
206
|
+
this.forwardSelection();
|
|
207
|
+
}
|
|
208
|
+
return true;
|
|
209
|
+
});
|
|
210
|
+
// Create a CodeMirror instancew
|
|
211
|
+
this.cm = new EditorView({
|
|
212
|
+
dispatch: this.dispatch.bind(this)
|
|
213
|
+
});
|
|
214
|
+
// The editor's outer node is our DOM representation
|
|
215
|
+
this.dom = this.cm.dom;
|
|
216
|
+
const cmState = EditorState.create({
|
|
217
|
+
doc: this.node.textContent,
|
|
218
|
+
extensions: [theme, changeFilter, highlightActiveLine(), highlightActiveLineGutter(), lineNumbers(), keymap.of([{
|
|
219
|
+
key: 'ArrowUp',
|
|
220
|
+
run: this.mayBeEscape('line', -1)
|
|
221
|
+
}, {
|
|
222
|
+
key: 'ArrowLeft',
|
|
223
|
+
run: this.mayBeEscape('char', -1)
|
|
224
|
+
}, {
|
|
225
|
+
key: 'ArrowDown',
|
|
226
|
+
run: this.mayBeEscape('line', 1)
|
|
227
|
+
}, {
|
|
228
|
+
key: 'ArrowRight',
|
|
229
|
+
run: this.mayBeEscape('char', 1)
|
|
230
|
+
}, {
|
|
231
|
+
key: 'Ctrl-Enter',
|
|
232
|
+
run: () => {
|
|
233
|
+
if (exitCode(this.view.state, this.view.dispatch)) {
|
|
234
|
+
this.view.focus();
|
|
235
|
+
return true;
|
|
236
|
+
}
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
}]), cmExtensions]
|
|
240
|
+
});
|
|
241
|
+
this.cm.setState(cmState);
|
|
242
|
+
}
|
|
243
|
+
forwardSelection() {
|
|
244
|
+
if (!this.cm.hasFocus) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
const {
|
|
248
|
+
state
|
|
249
|
+
} = this.view;
|
|
250
|
+
const selection = this.asProseMirrorSelection(state.doc);
|
|
251
|
+
if (!selection.eq(state.selection)) {
|
|
252
|
+
this.view.dispatch(state.tr.setSelection(selection));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
asProseMirrorSelection(doc) {
|
|
256
|
+
const offset = this.getPos() + 1;
|
|
257
|
+
const {
|
|
258
|
+
anchor,
|
|
259
|
+
head
|
|
260
|
+
} = this.cm.state.selection.main;
|
|
261
|
+
return TextSelection.create(doc, anchor + offset, head + offset);
|
|
262
|
+
}
|
|
263
|
+
dispatch(cmTr) {
|
|
264
|
+
this.cm.setState(cmTr.state);
|
|
265
|
+
if (cmTr.docChanged && !this.updating) {
|
|
266
|
+
const start = this.getPos() + 1;
|
|
267
|
+
const cmValue = cmTr.state.doc.toString();
|
|
268
|
+
const change = computeChange(this.node.textContent, cmValue);
|
|
269
|
+
if (!change) {
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
const content = change.text ? this.view.state.schema.text(change.text) : null;
|
|
273
|
+
const tr = this.view.state.tr.replaceWith(change.from + start, change.to + start, content);
|
|
274
|
+
this.view.dispatch(tr);
|
|
275
|
+
this.forwardSelection();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
mayBeEscape(unit, dir) {
|
|
279
|
+
return view => {
|
|
280
|
+
const {
|
|
281
|
+
state
|
|
282
|
+
} = view;
|
|
283
|
+
const {
|
|
284
|
+
selection
|
|
285
|
+
} = state;
|
|
286
|
+
const offsetToPos = () => {
|
|
287
|
+
const offset = selection.main.from;
|
|
288
|
+
const line = state.doc.lineAt(offset);
|
|
289
|
+
return {
|
|
290
|
+
line: line.number,
|
|
291
|
+
ch: offset - line.from
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
const pos = offsetToPos();
|
|
295
|
+
const hasSelection = state.selection.ranges.some(r => !r.empty);
|
|
296
|
+
const firstLine = 1;
|
|
297
|
+
const lastLine = state.doc.lineAt(state.doc.length).number;
|
|
298
|
+
if (hasSelection || pos.line !== (dir < 0 ? firstLine : lastLine) || unit === 'char' && pos.ch !== (dir < 0 ? 0 : state.doc.line(pos.line).length)) {
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
const targetPos = this.getPos() + (dir < 0 ? 0 : this.node.nodeSize);
|
|
302
|
+
const pmSelection = Selection.near(this.view.state.doc.resolve(targetPos), dir);
|
|
303
|
+
this.view.dispatch(this.view.state.tr.setSelection(pmSelection).scrollIntoView());
|
|
304
|
+
this.view.focus();
|
|
305
|
+
return true;
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
update(node) {
|
|
309
|
+
if (node.type !== this.node.type) {
|
|
310
|
+
return false;
|
|
311
|
+
}
|
|
312
|
+
this.node = node;
|
|
313
|
+
const change = computeChange(this.cm.state.doc.toString(), node.textContent);
|
|
314
|
+
if (change) {
|
|
315
|
+
this.updating = true;
|
|
316
|
+
this.cm.dispatch({
|
|
317
|
+
changes: {
|
|
318
|
+
from: change.from,
|
|
319
|
+
to: change.to,
|
|
320
|
+
insert: change.text
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
this.updating = false;
|
|
324
|
+
}
|
|
325
|
+
return true;
|
|
326
|
+
}
|
|
327
|
+
setSelection(anchor, head) {
|
|
328
|
+
this.focus();
|
|
329
|
+
this.updating = true;
|
|
330
|
+
this.cm.dispatch({
|
|
331
|
+
selection: {
|
|
332
|
+
anchor,
|
|
333
|
+
head
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
this.updating = false;
|
|
337
|
+
}
|
|
338
|
+
focus() {
|
|
339
|
+
this.cm.focus();
|
|
340
|
+
this.forwardSelection();
|
|
341
|
+
}
|
|
342
|
+
selectNode() {
|
|
343
|
+
this.focus();
|
|
344
|
+
}
|
|
345
|
+
stopEvent() {
|
|
346
|
+
return true;
|
|
347
|
+
}
|
|
348
|
+
destroy() {
|
|
349
|
+
this.cm.destroy();
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export { CodeMirrorView as C };
|
|
@@ -108,6 +108,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-a133
|
|
|
108
108
|
export { s as OrTooltip } from '../OrTooltip-89ce98e8.js';
|
|
109
109
|
export { s as OrTooltipContent } from '../OrTooltipContent-37a5f562.js';
|
|
110
110
|
export { s as OrTooltipV3 } from '../OrTooltip-4bb0054a.js';
|
|
111
|
+
export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-a1aae8f4.js';
|
|
111
112
|
import 'vue-demi';
|
|
112
113
|
import 'lodash';
|
|
113
114
|
import 'vue';
|
|
@@ -144,3 +145,26 @@ import '@vueuse/integrations/useFocusTrap';
|
|
|
144
145
|
import '../useToggle-c04fc920.js';
|
|
145
146
|
import '../useOverflow-c856b7b7.js';
|
|
146
147
|
import '../styles-ed564e39.js';
|
|
148
|
+
import 'prosemirror-markdown';
|
|
149
|
+
import 'prosemirror-model';
|
|
150
|
+
import 'marked';
|
|
151
|
+
import '@tiptap/extension-paragraph';
|
|
152
|
+
import '@tiptap/extension-bullet-list';
|
|
153
|
+
import '@tiptap/extension-list-item';
|
|
154
|
+
import '@tiptap/extension-ordered-list';
|
|
155
|
+
import '@tiptap/extension-strike';
|
|
156
|
+
import '@tiptap/extension-italic';
|
|
157
|
+
import '@tiptap/extension-hard-break';
|
|
158
|
+
import '@tiptap/extension-bold';
|
|
159
|
+
import '@tiptap/extension-code-block';
|
|
160
|
+
import '@tiptap/extension-blockquote';
|
|
161
|
+
import '@tiptap/extension-link';
|
|
162
|
+
import '@tiptap/extension-highlight';
|
|
163
|
+
import '@tiptap/extension-underline';
|
|
164
|
+
import '@tiptap/core';
|
|
165
|
+
import '@tiptap/starter-kit';
|
|
166
|
+
import '@tiptap/extension-heading';
|
|
167
|
+
import '@tiptap/extension-placeholder';
|
|
168
|
+
import '../codemirrorView-be2c7423.js';
|
|
169
|
+
import 'prosemirror-state';
|
|
170
|
+
import 'prosemirror-commands';
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { OR_AVATAR_SIZE } from './constants';
|
|
3
|
-
declare const _default: import("vue-
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & {
|
|
4
|
+
showImg: boolean;
|
|
5
|
+
}, {
|
|
6
|
+
showImage(): void;
|
|
7
|
+
hideImage(): void;
|
|
8
|
+
}, {
|
|
9
|
+
avatarClasses(): any[];
|
|
10
|
+
}, {
|
|
4
11
|
src: {
|
|
5
12
|
type: PropType<string>;
|
|
6
13
|
default: string;
|
|
@@ -17,14 +24,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
17
24
|
default: string;
|
|
18
25
|
required: false;
|
|
19
26
|
};
|
|
20
|
-
},
|
|
21
|
-
showImg: boolean;
|
|
22
|
-
}, {
|
|
23
|
-
avatarClasses(): any[];
|
|
24
|
-
}, {
|
|
25
|
-
showImage(): void;
|
|
26
|
-
hideImage(): void;
|
|
27
|
-
}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
27
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
28
28
|
src: {
|
|
29
29
|
type: PropType<string>;
|
|
30
30
|
default: string;
|
|
@@ -41,9 +41,24 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
41
41
|
default: string;
|
|
42
42
|
required: false;
|
|
43
43
|
};
|
|
44
|
-
}
|
|
44
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
45
|
+
src: string;
|
|
46
|
+
size: OR_AVATAR_SIZE;
|
|
47
|
+
icon: string;
|
|
48
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, {
|
|
49
|
+
showImg: boolean;
|
|
50
|
+
}, {
|
|
51
|
+
avatarClasses(): any[];
|
|
52
|
+
}, {
|
|
53
|
+
showImage(): void;
|
|
54
|
+
hideImage(): void;
|
|
55
|
+
}, {}, {}, {}, {
|
|
56
|
+
src: string;
|
|
57
|
+
size: OR_AVATAR_SIZE;
|
|
58
|
+
icon: string;
|
|
59
|
+
} & {}, {
|
|
45
60
|
src: string;
|
|
46
61
|
size: OR_AVATAR_SIZE;
|
|
47
62
|
icon: string;
|
|
48
|
-
}
|
|
63
|
+
}, true>);
|
|
49
64
|
export default _default;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { AvatarColor, AvatarSize } from './props';
|
|
3
|
-
declare const _default: import("vue-
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
imageStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
4
8
|
src: {
|
|
5
9
|
type: StringConstructor;
|
|
6
10
|
default: undefined;
|
|
@@ -23,11 +27,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
23
27
|
default: undefined;
|
|
24
28
|
required: false;
|
|
25
29
|
};
|
|
26
|
-
}, {
|
|
27
|
-
root: import("vue-demi").Ref<HTMLElement | undefined>;
|
|
28
|
-
rootStyles: import("vue-demi").ComputedRef<string[]>;
|
|
29
|
-
imageStyles: import("vue-demi").ComputedRef<string[]>;
|
|
30
|
-
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
30
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
31
31
|
src: {
|
|
32
32
|
type: StringConstructor;
|
|
33
33
|
default: undefined;
|
|
@@ -50,11 +50,27 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
50
50
|
default: undefined;
|
|
51
51
|
required: false;
|
|
52
52
|
};
|
|
53
|
-
}
|
|
53
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
54
54
|
src: string;
|
|
55
55
|
size: AvatarSize;
|
|
56
56
|
icon: string;
|
|
57
57
|
color: AvatarColor;
|
|
58
58
|
colorSalt: string;
|
|
59
|
-
}
|
|
59
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
60
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
61
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
62
|
+
imageStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
63
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
64
|
+
src: string;
|
|
65
|
+
size: AvatarSize;
|
|
66
|
+
icon: string;
|
|
67
|
+
color: AvatarColor;
|
|
68
|
+
colorSalt: string;
|
|
69
|
+
} & {}, {
|
|
70
|
+
src: string;
|
|
71
|
+
size: AvatarSize;
|
|
72
|
+
icon: string;
|
|
73
|
+
color: AvatarColor;
|
|
74
|
+
colorSalt: string;
|
|
75
|
+
}, true>);
|
|
60
76
|
export default _default;
|
|
@@ -1,33 +1,46 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { BottomSheetVariant } from './props';
|
|
3
|
-
declare const _default: import("vue-
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
handleStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
|
+
state: import("@vue/composition-api").Ref<"open" | "fullscreen" | "closed">;
|
|
9
|
+
isOpen: import("@vue/composition-api").ComputedRef<boolean>;
|
|
10
|
+
isFullscreen: import("@vue/composition-api").ComputedRef<boolean>;
|
|
11
|
+
isClosed: import("@vue/composition-api").ComputedRef<boolean>;
|
|
12
|
+
open: () => void;
|
|
13
|
+
close: (auto?: boolean) => void;
|
|
14
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
4
15
|
variant: {
|
|
5
16
|
type: PropType<"basic" | "advanced">;
|
|
6
17
|
default: BottomSheetVariant;
|
|
7
18
|
};
|
|
8
|
-
}, {
|
|
9
|
-
root: import("vue-demi").Ref<HTMLElement | undefined>;
|
|
10
|
-
rootStyles: import("vue-demi").ComputedRef<string[]>;
|
|
11
|
-
handleStyles: import("vue-demi").ComputedRef<string[]>;
|
|
12
|
-
headerStyles: import("vue-demi").ComputedRef<string[]>;
|
|
13
|
-
state: import("vue-demi").Ref<"open" | "fullscreen" | "closed">;
|
|
14
|
-
isOpen: import("vue-demi").ComputedRef<boolean>;
|
|
15
|
-
isFullscreen: import("vue-demi").ComputedRef<boolean>;
|
|
16
|
-
isClosed: import("vue-demi").ComputedRef<boolean>;
|
|
17
|
-
open: () => void;
|
|
18
|
-
close: (auto?: boolean) => void;
|
|
19
|
-
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("update:state" | "update:state:open" | "update:state:fullscreen" | "update:state:closed" | "update:state:closed-automatically")[], "update:state" | "update:state:open" | "update:state:fullscreen" | "update:state:closed" | "update:state:closed-automatically", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
19
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
20
20
|
variant: {
|
|
21
21
|
type: PropType<"basic" | "advanced">;
|
|
22
22
|
default: BottomSheetVariant;
|
|
23
23
|
};
|
|
24
|
-
}>> & {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
24
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
25
|
+
variant: "basic" | "advanced";
|
|
26
|
+
} & {} & {
|
|
27
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
29
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
30
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
31
|
+
handleStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
32
|
+
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
33
|
+
state: import("@vue/composition-api").Ref<"open" | "fullscreen" | "closed">;
|
|
34
|
+
isOpen: import("@vue/composition-api").ComputedRef<boolean>;
|
|
35
|
+
isFullscreen: import("@vue/composition-api").ComputedRef<boolean>;
|
|
36
|
+
isClosed: import("@vue/composition-api").ComputedRef<boolean>;
|
|
37
|
+
open: () => void;
|
|
38
|
+
close: (auto?: boolean) => void;
|
|
39
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
40
|
+
variant: "basic" | "advanced";
|
|
41
|
+
} & {} & {
|
|
42
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
30
43
|
}, {
|
|
31
44
|
variant: "basic" | "advanced";
|
|
32
|
-
}
|
|
45
|
+
}, true>);
|
|
33
46
|
export default _default;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { LoaderViews } from '../or-loader';
|
|
3
3
|
import { OrButtonColors, OrButtonSizes } from './constants';
|
|
4
|
-
declare const _default: import("vue-
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
|
+
rootClasses: import("@vue/composition-api").ComputedRef<(string | {
|
|
6
|
+
[x: string]: boolean;
|
|
7
|
+
'is-fullwidth': boolean;
|
|
8
|
+
'is-block': boolean;
|
|
9
|
+
'is-loading': boolean;
|
|
10
|
+
} | null)[]>;
|
|
11
|
+
loaderType: import("@vue/composition-api").ComputedRef<LoaderViews.default | LoaderViews.text>;
|
|
12
|
+
isInactive: import("@vue/composition-api").ComputedRef<boolean>;
|
|
13
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
5
14
|
label: {
|
|
6
15
|
type: PropType<string>;
|
|
7
16
|
default: string;
|
|
@@ -62,16 +71,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
62
71
|
default: boolean;
|
|
63
72
|
required: false;
|
|
64
73
|
};
|
|
65
|
-
}, {
|
|
66
|
-
rootClasses: import("vue-demi").ComputedRef<(string | {
|
|
67
|
-
[x: string]: boolean;
|
|
68
|
-
'is-fullwidth': boolean;
|
|
69
|
-
'is-block': boolean;
|
|
70
|
-
'is-loading': boolean;
|
|
71
|
-
} | null)[]>;
|
|
72
|
-
loaderType: import("vue-demi").ComputedRef<LoaderViews.default | LoaderViews.text>;
|
|
73
|
-
isInactive: import("vue-demi").ComputedRef<boolean>;
|
|
74
|
-
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("click" | "focus" | "blur")[], "click" | "focus" | "blur", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
74
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
75
75
|
label: {
|
|
76
76
|
type: PropType<string>;
|
|
77
77
|
default: string;
|
|
@@ -132,10 +132,45 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
132
132
|
default: boolean;
|
|
133
133
|
required: false;
|
|
134
134
|
};
|
|
135
|
-
}>> & {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
136
|
+
label: string;
|
|
137
|
+
size: OrButtonSizes;
|
|
138
|
+
color: OrButtonColors;
|
|
139
|
+
isBlock: boolean;
|
|
140
|
+
isIcon: boolean;
|
|
141
|
+
isIconSimple: boolean;
|
|
142
|
+
isOutline: boolean;
|
|
143
|
+
isText: boolean;
|
|
144
|
+
loadingText: string;
|
|
145
|
+
isFullwidth: boolean;
|
|
146
|
+
isLoading: boolean;
|
|
147
|
+
isDisabled: boolean;
|
|
148
|
+
} & {} & {
|
|
149
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
150
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
151
|
+
rootClasses: import("@vue/composition-api").ComputedRef<(string | {
|
|
152
|
+
[x: string]: boolean;
|
|
153
|
+
'is-fullwidth': boolean;
|
|
154
|
+
'is-block': boolean;
|
|
155
|
+
'is-loading': boolean;
|
|
156
|
+
} | null)[]>;
|
|
157
|
+
loaderType: import("@vue/composition-api").ComputedRef<LoaderViews.default | LoaderViews.text>;
|
|
158
|
+
isInactive: import("@vue/composition-api").ComputedRef<boolean>;
|
|
159
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
160
|
+
label: string;
|
|
161
|
+
size: OrButtonSizes;
|
|
162
|
+
color: OrButtonColors;
|
|
163
|
+
isBlock: boolean;
|
|
164
|
+
isIcon: boolean;
|
|
165
|
+
isIconSimple: boolean;
|
|
166
|
+
isOutline: boolean;
|
|
167
|
+
isText: boolean;
|
|
168
|
+
loadingText: string;
|
|
169
|
+
isFullwidth: boolean;
|
|
170
|
+
isLoading: boolean;
|
|
171
|
+
isDisabled: boolean;
|
|
172
|
+
} & {} & {
|
|
173
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
139
174
|
}, {
|
|
140
175
|
label: string;
|
|
141
176
|
size: OrButtonSizes;
|
|
@@ -149,5 +184,5 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
149
184
|
isFullwidth: boolean;
|
|
150
185
|
isLoading: boolean;
|
|
151
186
|
isDisabled: boolean;
|
|
152
|
-
}
|
|
187
|
+
}, true>);
|
|
153
188
|
export default _default;
|