@onereach/ui-components 6.2.0-beta.3289.0 → 6.2.0-beta.3294.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/{v3/_baseAssignValue-2250dbc9.js → v2/_baseAssignValue-22e630c1.js} +1 -1
- package/dist/bundled/v2/{_baseIsEqual-fe2002b6.js → _baseIsEqual-a1cc156c.js} +5 -5
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +1 -1
- package/dist/bundled/v2/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
- package/dist/bundled/v2/components/OrCode/OrCode.js +3 -3
- package/dist/bundled/v2/components/OrCode/index.js +5 -3
- package/dist/bundled/v2/components/OrCode/lang.js +5 -3
- package/dist/bundled/v2/components/OrCode/libs.js +5 -3
- package/dist/bundled/v2/components/OrCode/theme.js +1 -1
- package/dist/bundled/v2/components/OrCodeV3/OrCode.js +46 -30
- package/dist/bundled/v2/components/OrCodeV3/OrCode.vue.d.ts +4 -3
- package/dist/bundled/v2/components/OrCodeV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrCodeV3/index.js +3 -0
- package/dist/bundled/v2/components/OrCodeV3/libs.d.ts +3 -0
- package/dist/bundled/v2/components/OrCodeV3/libs.js +3 -0
- package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +1 -1
- package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +4 -4
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
- package/dist/bundled/v2/components/OrFloating/OrFloating.js +1 -1
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v2/components/OrInput/OrInput.js +1 -1
- package/dist/bundled/v2/components/OrList/OrList.js +8 -8
- package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +1 -1
- package/dist/bundled/v2/components/OrModal/OrModal.js +1347 -3
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +1 -1
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +1 -1
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v2/components/OrProgress/OrProgress.js +1 -1
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v2/components/OrRadio/OrRadio.js +2 -2
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSelect/OrSelect.js +7 -7
- package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +1 -1
- package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +1 -1
- package/dist/bundled/v2/components/OrSlider/OrSlider.js +2 -2
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -1
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +1 -1
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +1 -1
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrTreeV3/OrTree.js +1 -1
- package/dist/bundled/v2/components/index.d.ts +0 -1
- package/dist/bundled/v2/components/index.js +6 -5
- package/dist/bundled/{v3/dom-cec392f3.js → v2/dom-bb55b42a.js} +2 -2
- package/dist/bundled/v2/{eq-44ea4d70.js → eq-95cd2573.js} +1 -1
- package/dist/bundled/{v3/get-34aa21f4.js → v2/get-ab1b7d93.js} +3 -3
- package/dist/bundled/v2/hooks/useOverflow.js +2 -2
- package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v2/{index-2b20f5f5.js → index-048e41ad.js} +2 -2
- package/dist/bundled/v2/{index-0c287ab6.js → index-0789b976.js} +3 -3
- package/dist/bundled/v2/index-0ad0f605.js +826 -0
- package/dist/bundled/{v3/index-de4975a3.js → v2/index-379ec85d.js} +10 -842
- package/dist/bundled/v2/index-5e5d18d5.js +759 -0
- package/dist/bundled/v2/index-7211e1c5.js +361 -0
- package/dist/bundled/{v3/index-749f3444.js → v2/index-82718479.js} +1 -1
- package/dist/bundled/v2/{index-06f6bbe4.js → index-8a1b5b9c.js} +1 -1
- package/dist/bundled/v2/index-9e0bdde8.js +94 -0
- package/dist/bundled/v2/{index-3cae2d25.js → index-b261a47e.js} +462 -294
- package/dist/bundled/v2/index-c321391a.js +1892 -0
- package/dist/bundled/v2/index-d02cdc81.js +1598 -0
- package/dist/bundled/{v3/index-3e178101.js → v2/index-ea7a689d.js} +32 -471
- package/dist/bundled/v2/index.js +8 -7
- package/dist/bundled/{v3/isArrayLike-e7fb5cae.js → v2/isArrayLike-e46b8eac.js} +1 -1
- package/dist/bundled/v2/{isEqual-7a8e6106.js → isEqual-44382965.js} +1 -1
- package/dist/bundled/{v3/isObject-b7415fc1.js → v2/isObject-fe8b81fd.js} +1 -1
- package/dist/bundled/{v3/range-82efa3d4.js → v2/range-6f26eda4.js} +4 -4
- package/dist/bundled/v2/{round-567ede34.js → round-f34440f4.js} +4 -4
- package/dist/bundled/v2/{toFinite-bc59ffb0.js → toFinite-74227610.js} +1 -1
- package/dist/bundled/v2/{toInteger-9fa0151c.js → toInteger-2fd112a9.js} +1 -1
- package/dist/bundled/v2/{toString-b6e4472a.js → toString-f3196832.js} +1 -1
- package/dist/bundled/v2/utils/functions/dom.js +2 -2
- package/dist/bundled/v2/utils/index.js +1 -1
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-10c2add0.js → OrAvatar.vue_vue_type_script_lang-95fe92f9.js} +1 -1
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-aca902f2.js → OrBottomSheet.vue_vue_type_script_lang-33bfe3c4.js} +2 -2
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-db6595f6.js → OrButton.vue_vue_type_script_lang-85f1cb3f.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-0fb2b270.js → OrButton.vue_vue_type_script_lang-9d4ac135.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-bf9018d5.js → OrCardCollection.vue_vue_type_script_lang-0ba13713.js} +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-02606ec6.js → OrCardCollection.vue_vue_type_script_lang-fe769106.js} +3 -3
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-de28fcaf.js → OrCheckbox.vue_vue_type_script_lang-576b5f5d.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-2d4980de.js → OrCheckboxGroup.vue_vue_type_script_lang-c05088ee.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-8d9ed718.js → OrCheckboxTree.vue_vue_type_script_lang-bd0fa916.js} +2 -2
- package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-cacd81e5.js → OrChip.vue_vue_type_script_lang-8ccf3d2d.js} +1 -1
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-e1f37564.js → OrChips.vue_vue_type_script_lang-70be98b5.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-2300b956.js → OrCode.vue_vue_type_script_lang-1df17839.js} +5 -5
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-52b0ab4c.js → OrCode.vue_vue_type_script_lang-ad985f8f.js} +48 -32
- package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-be1c8c66.js → OrCollapse.vue_vue_type_script_lang-69503c45.js} +1 -1
- package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-95d92da0.js → OrColorPicker.vue_vue_type_script_lang-153ef60d.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-19922dd5.js → OrConfirm.vue_vue_type_script_lang-808367f7.js} +6 -6
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-4e9966f2.js → OrConfirm.vue_vue_type_script_lang-cf909881.js} +6 -6
- package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-f40c0d92.js → OrContextMenu.vue_vue_type_script_lang-b4e0569b.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-04273abb.js → OrDatePicker.vue_vue_type_script_lang-b1130337.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-66b3611e.js → OrDateTimePicker.vue_vue_type_script_lang-37b1996e.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-73b5c809.js → OrDateTimePicker.vue_vue_type_script_lang-98f80113.js} +7 -7
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-2ff0e8f9.js → OrDateTimePickerMonthSelect-7fcfccdf.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-135da975.js → OrDateTimePickerPopoverHeader-78fe6852.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-fe701e75.js → OrDateTimePickerTimeSelect-56bff361.js} +1 -1
- package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-38aa1d83.js → OrFloating.vue_vue_type_script_lang-d579c010.js} +1 -1
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-f3cbff23.js → OrIcon.vue_vue_type_script_lang-23dad121.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-64e7b6ab.js → OrIconButton.vue_vue_type_script_lang-20210ebe.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-f6bf7dda.js → OrIconButton.vue_vue_type_script_lang-85c7ef74.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-0bdbf730.js → OrInlineInput.vue_vue_type_script_lang-e78cacec.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-72c9e44e.js → OrInlineTextEdit.vue_vue_type_script_lang-d7f24fd6.js} +4 -4
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-81430067.js → OrInlineTextarea.vue_vue_type_script_lang-e69604e1.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-39d1a293.js → OrInput.vue_vue_type_script_lang-4c9af1b9.js} +2 -2
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-515ff78a.js → OrInput.vue_vue_type_script_lang-863d3195.js} +2 -2
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-bc49c1ff.js → OrList.vue_vue_type_script_lang-cb637c9e.js} +11 -11
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-3d17e3d2.js → OrListOfInputs.vue_vue_type_script_lang-31f604eb.js} +4 -4
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-0ea76e45.js → OrLoader.vue_vue_type_script_lang-b0347c70.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-edc12857.js → OrMenu.vue_vue_type_script_lang-80d3a47b.js} +1 -1
- package/dist/bundled/v3/{useFocusTrap-2302b843.js → OrModal.vue_vue_type_script_lang-22ca96e3.js} +100 -4
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-d2339f74.js → OrModal.vue_vue_type_script_lang-fe9b0d62.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-81d7cfef.js → OrNotification.vue_vue_type_script_lang-17ae96e3.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-8dafacd3.js → OrNotification.vue_vue_type_script_lang-bb93ca64.js} +1 -1
- package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-b832e611.js → OrNumberInput.vue_vue_type_script_lang-4cc194fc.js} +1 -1
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-0c84fa14.js → OrOverflowMenu.vue_vue_type_script_lang-ab2d6d33.js} +5 -5
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-2b256188.js → OrOverlay.vue_vue_type_script_lang-7e9b1817.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-91dec212.js → OrPagination.vue_vue_type_script_lang-6e3a561d.js} +2 -2
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-9228b54e.js → OrPassword.vue_vue_type_script_lang-fc8438a8.js} +3 -3
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-2fba84de.js → OrPopover.vue_vue_type_script_lang-b6dba09f.js} +3 -3
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-56b4a5da.js → OrProgress.vue_vue_type_script_lang-78c933d7.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-c4bd7133.js → OrProgress.vue_vue_type_script_lang-a99362ae.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-a4f043e9.js → OrRadio.vue_vue_type_script_lang-3a551734.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-6a34ea7a.js → OrSearch.vue_vue_type_script_lang-981f3cf0.js} +3 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-47c2a5b0.js → OrSearch.vue_vue_type_script_lang-9e5da97d.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-0edae1cf.js → OrSelect.vue_vue_type_script_lang-d496bc7b.js} +11 -11
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-8b59bb49.js → OrSelect.vue_vue_type_script_lang-f651614d.js} +5 -5
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-cb96511d.js → OrSidebar.vue_vue_type_script_lang-3ea9752f.js} +2 -2
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-bd864765.js → OrSidebar.vue_vue_type_script_lang-f5d46ede.js} +1 -1
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-502607ef.js → OrSkeletonText.vue_vue_type_script_lang-26b3cfd1.js} +1 -1
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-cfe360bb.js → OrSkeletonText.vue_vue_type_script_lang-c2a5ab96.js} +1 -1
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-79cca9e2.js → OrSlider.vue_vue_type_script_lang-ef8699ca.js} +3 -3
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-8ea37e10.js → OrSorting.vue_vue_type_script_lang-7496f136.js} +2 -2
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-33639493.js → OrStepper.vue_vue_type_script_lang-c7f9582b.js} +1 -1
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-fe6a5512.js → OrSwitch.vue_vue_type_script_lang-51b857e2.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-97da5baa.js → OrTabs.vue_vue_type_script_lang-2e57804a.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-b62c0b79.js → OrTag.vue_vue_type_script_lang-0a36cba8.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-62e1f5a7.js → OrTag.vue_vue_type_script_lang-b66887dd.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-bdbe85c7.js → OrTagInput.vue_vue_type_script_lang-a00eb885.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-cb8c3c31.js → OrTags.vue_vue_type_script_lang-938b34b7.js} +3 -3
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-5624556c.js → OrTextarea.vue_vue_type_script_lang-325050eb.js} +2 -2
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-d0db6077.js → OrTextbox.vue_vue_type_script_lang-5c706917.js} +3 -3
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-25e5dd01.js → OrTimePicker.vue_vue_type_script_lang-8c297fdd.js} +4 -4
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-ad659b6a.js → OrToastContainer.vue_vue_type_script_lang-07b75b00.js} +1 -1
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-9a3e66a2.js → OrToastContainer.vue_vue_type_script_lang-8d3ed93a.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-c0cc67c5.js → OrTooltip.vue_vue_type_script_lang-81dbde5d.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-288c978f.js → OrTooltip.vue_vue_type_script_lang-b201e580.js} +1 -1
- package/dist/bundled/v3/{OrTree.vue_vue_type_script_lang-ce5b0577.js → OrTree.vue_vue_type_script_lang-bd439beb.js} +2 -2
- package/dist/bundled/{v2/_baseAssignValue-2250dbc9.js → v3/_baseAssignValue-22e630c1.js} +1 -1
- package/dist/bundled/v3/{_baseIsEqual-fe2002b6.js → _baseIsEqual-a1cc156c.js} +5 -5
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +2 -2
- package/dist/bundled/v3/components/OrAvatar/index.js +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
- package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV2/index.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollection/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +2 -2
- package/dist/bundled/v3/components/OrCheckbox/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrChip/OrChip.js +2 -2
- package/dist/bundled/v3/components/OrChip/index.js +1 -1
- package/dist/bundled/v3/components/OrChips/OrChips.js +2 -2
- package/dist/bundled/v3/components/OrChips/index.js +2 -2
- package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCode/index.js +6 -4
- package/dist/bundled/v3/components/OrCode/lang.js +5 -3
- package/dist/bundled/v3/components/OrCode/libs.js +5 -3
- package/dist/bundled/v3/components/OrCode/theme.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +4 -3
- package/dist/bundled/v3/components/OrCodeV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrCodeV3/index.js +4 -1
- package/dist/bundled/v3/components/OrCodeV3/libs.d.ts +3 -0
- package/dist/bundled/v3/components/OrCodeV3/libs.js +3 -0
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +2 -2
- package/dist/bundled/v3/components/OrCollapse/index.js +1 -1
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirm/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
- package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrFloating/OrFloating.js +2 -2
- package/dist/bundled/v3/components/OrFloating/index.js +1 -1
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +2 -2
- package/dist/bundled/v3/components/OrIcon/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInput/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInput/index.js +1 -1
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrList/OrList.js +2 -2
- package/dist/bundled/v3/components/OrList/index.js +1 -1
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +2 -2
- package/dist/bundled/v3/components/OrListOfInputs/index.js +1 -1
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +2 -2
- package/dist/bundled/v3/components/OrLoaderV3/index.js +1 -1
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
- package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrModal/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModal/index.js +1 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotification/index.js +1 -1
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +2 -2
- package/dist/bundled/v3/components/OrNumberInput/index.js +1 -1
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +1 -1
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +2 -2
- package/dist/bundled/v3/components/OrPassword/index.js +1 -1
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
- package/dist/bundled/v3/components/OrProgress/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgress/index.js +1 -1
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRadio/OrRadio.js +2 -2
- package/dist/bundled/v3/components/OrRadio/index.js +1 -1
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearch/index.js +1 -1
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelect/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebar/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeleton/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +2 -2
- package/dist/bundled/v3/components/OrSkeletonText/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +2 -2
- package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +2 -2
- package/dist/bundled/v3/components/OrSlider/index.js +1 -1
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
- package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +2 -2
- package/dist/bundled/v3/components/OrStepper/index.js +1 -1
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +2 -2
- package/dist/bundled/v3/components/OrSwitchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTag/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTag/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +2 -2
- package/dist/bundled/v3/components/OrTextarea/index.js +1 -1
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +2 -2
- package/dist/bundled/v3/components/OrTextbox/index.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToast/OrToast.js +2 -2
- package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToast/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainer/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltip/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTreeV3/OrTree.js +2 -2
- package/dist/bundled/v3/components/OrTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +0 -1
- package/dist/bundled/v3/components/index.js +79 -78
- package/dist/bundled/{v2/dom-cec392f3.js → v3/dom-bb55b42a.js} +2 -2
- package/dist/bundled/v3/{eq-44ea4d70.js → eq-95cd2573.js} +1 -1
- package/dist/bundled/{v2/get-34aa21f4.js → v3/get-ab1b7d93.js} +3 -3
- package/dist/bundled/v3/hooks/useOverflow.js +2 -2
- package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v3/index-168d8a72.js +826 -0
- package/dist/bundled/v3/{index-0a01982b.js → index-2db1212e.js} +2 -2
- package/dist/bundled/{v2/index-de4975a3.js → v3/index-3074ab3c.js} +10 -842
- package/dist/bundled/v3/index-3de4069f.js +361 -0
- package/dist/bundled/{v2/index-dac0fb7c.js → v3/index-51eb57bd.js} +1 -1
- package/dist/bundled/v3/index-540ed5cb.js +1892 -0
- package/dist/bundled/v3/{index-40b35d94.js → index-5e8e7a46.js} +1 -1
- package/dist/bundled/v3/{index-3cae2d25.js → index-73699920.js} +462 -294
- package/dist/bundled/v3/index-a59e89b4.js +94 -0
- package/dist/bundled/v3/index-c661340a.js +759 -0
- package/dist/bundled/v3/index-ce11b31b.js +1598 -0
- package/dist/bundled/v3/{index-0c287ab6.js → index-e0aaa8dc.js} +3 -3
- package/dist/bundled/{v2/index-3e178101.js → v3/index-fdffd536.js} +32 -471
- package/dist/bundled/v3/index.js +81 -81
- package/dist/bundled/{v2/isArrayLike-e7fb5cae.js → v3/isArrayLike-e46b8eac.js} +1 -1
- package/dist/bundled/v3/{isEqual-7a8e6106.js → isEqual-44382965.js} +1 -1
- package/dist/bundled/{v2/isObject-b7415fc1.js → v3/isObject-fe8b81fd.js} +1 -1
- package/dist/bundled/{v2/range-82efa3d4.js → v3/range-6f26eda4.js} +4 -4
- package/dist/bundled/v3/{round-567ede34.js → round-f34440f4.js} +4 -4
- package/dist/bundled/v3/{toFinite-bc59ffb0.js → toFinite-74227610.js} +1 -1
- package/dist/bundled/v3/{toInteger-9fa0151c.js → toInteger-2fd112a9.js} +1 -1
- package/dist/bundled/v3/{toString-b6e4472a.js → toString-f3196832.js} +1 -1
- package/dist/bundled/v3/utils/functions/dom.js +2 -2
- package/dist/bundled/v3/utils/index.js +1 -1
- package/dist/esm/v2/{OrCardCollection-c27ae76f.js → OrCardCollection-63ab1dc4.js} +3 -3
- package/dist/esm/v2/{OrCode-4501e2df.js → OrCode-adb9790d.js} +50 -36
- package/dist/esm/v2/{OrConfirm-4841e1eb.js → OrConfirm-f92dc7b5.js} +1 -1
- package/dist/esm/v2/{OrContextMenu-01efdb43.js → OrContextMenu-abf0c884.js} +2 -2
- package/dist/esm/v2/{OrDatePicker-528b55ec.js → OrDatePicker-c93e57ae.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-80bd401a.js → OrDateTimePicker-0bbe653c.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-8e987b8d.js → OrDateTimePicker.vue_rollup-plugin-vue_script-353b70fe.js} +3 -3
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-835e4e49.js → OrDateTimePickerPopoverHeader-6a40de37.js} +3 -3
- package/dist/esm/v2/{OrIconButton-6eda233c.js → OrIconButton-996aba66.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-9f88fff9.js → OrInlineInput-c3329db5.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-03e8b8a6.js → OrInlineTextarea-e9de4f1e.js} +1 -1
- package/dist/esm/v2/{OrInput-54abe165.js → OrInput-0d01816c.js} +1 -1
- package/dist/esm/v2/{OrMenu-c2c6473f.js → OrMenu-c7b05c91.js} +1 -1
- package/dist/esm/v2/{OrModal-8ea08182.js → OrModal-c6c922fd.js} +1 -1
- package/dist/esm/v2/{OrNotification-9875c55d.js → OrNotification-c119fcff.js} +1 -1
- package/dist/esm/v2/{OrPagination-c5058980.js → OrPagination-3f1b7a65.js} +2 -2
- package/dist/esm/v2/{OrPopover-f6114169.js → OrPopover-58fefa76.js} +1 -1
- package/dist/esm/v2/{OrSearch-8a834099.js → OrSearch-175c25d3.js} +1 -1
- package/dist/esm/v2/{OrSelect-cd37db8d.js → OrSelect-85acd45f.js} +4 -4
- package/dist/esm/v2/{OrSidebar-a5608742.js → OrSidebar-055f2c89.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-c999d09a.js → OrSidebarCollapseButton-12d111c5.js} +1 -1
- package/dist/esm/v2/{OrSorting-82557def.js → OrSorting-b350c4d3.js} +2 -2
- package/dist/esm/v2/{OrTabs-92ccb30f.js → OrTabs-f736863c.js} +2 -2
- package/dist/esm/v2/{OrTag-15cd89e8.js → OrTag-8ec63b23.js} +1 -1
- package/dist/esm/v2/{OrTagInput-f443f295.js → OrTagInput-7088d62f.js} +2 -2
- package/dist/esm/v2/{OrTags-b34c628e.js → OrTags-5ad71efd.js} +2 -2
- package/dist/esm/v2/{OrTimePicker-e711a256.js → OrTimePicker-3d65dc1b.js} +4 -4
- package/dist/esm/v2/{OrTooltip-a4e679bb.js → OrTooltip-17f8a7ff.js} +1 -1
- package/dist/esm/v2/components/index.d.ts +0 -1
- package/dist/esm/v2/components/index.js +30 -54
- package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -8
- package/dist/esm/v2/components/or-code-v3/OrCode.vue.d.ts +4 -3
- package/dist/esm/v2/components/or-code-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-code-v3/index.js +11 -14
- package/dist/esm/v2/components/or-code-v3/libs.d.ts +3 -0
- package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
- package/dist/esm/v2/components/or-context-menu-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-picker-v3/index.js +6 -6
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +7 -7
- package/dist/esm/v2/components/or-icon-button-v3/index.js +3 -3
- package/dist/esm/v2/components/or-inline-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +4 -4
- package/dist/esm/v2/components/or-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-menu-v3/index.js +2 -2
- package/dist/esm/v2/components/or-modal-v3/index.js +4 -4
- package/dist/esm/v2/components/or-notification-v3/index.js +4 -4
- package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v2/components/or-popover-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +5 -5
- package/dist/esm/v2/components/or-select-v3/index.js +6 -6
- package/dist/esm/v2/components/or-sidebar-v3/index.js +5 -5
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/esm/v2/components/or-sorting-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tag-input-v3/index.js +6 -6
- package/dist/esm/v2/components/or-tag-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tags-v3/index.js +5 -5
- package/dist/esm/v2/components/or-time-picker-v3/index.js +7 -7
- package/dist/esm/v2/components/or-toast-v3/index.js +4 -4
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tooltip-v3/index.js +2 -2
- package/dist/esm/v2/index.js +30 -54
- package/dist/esm/v2/{types-635157b1.js → types-b3ec7224.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-bddf72ef.js → OrCardCollection-2b5f1d79.js} +3 -3
- package/dist/esm/v3/{OrCode-a63c3a7b.js → OrCode-5457417e.js} +50 -36
- package/dist/esm/v3/{OrConfirm-d304e9a4.js → OrConfirm-bf771b4d.js} +1 -1
- package/dist/esm/v3/{OrContextMenu-bf1e07ae.js → OrContextMenu-2d8d26e9.js} +2 -2
- package/dist/esm/v3/{OrDatePicker-87aef206.js → OrDatePicker-88b59005.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-738f9cd3.js → OrDateTimePicker-f9e46f7e.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-03ae7d09.js → OrDateTimePickerPopoverHeader-d3058267.js} +3 -3
- package/dist/esm/v3/{OrIconButton-a69c7775.js → OrIconButton-c72e1a04.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-246d88ca.js → OrInlineInput-19a4ac87.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-c9febb84.js → OrInlineTextarea-0853564b.js} +1 -1
- package/dist/esm/v3/{OrInput-e12b0489.js → OrInput-7729da3b.js} +1 -1
- package/dist/esm/v3/{OrMenu-9a82f18f.js → OrMenu-3bcc528b.js} +1 -1
- package/dist/esm/v3/{OrModal-fc3bb76e.js → OrModal-fb37e638.js} +1 -1
- package/dist/esm/v3/{OrNotification-c8cd9f3d.js → OrNotification-5d385b61.js} +1 -1
- package/dist/esm/v3/{OrPagination-cc0b041a.js → OrPagination-d7acbb6b.js} +2 -2
- package/dist/esm/v3/{OrPopover-7b2af064.js → OrPopover-2132e8b9.js} +1 -1
- package/dist/esm/v3/{OrSearch-bc259374.js → OrSearch-16664742.js} +1 -1
- package/dist/esm/v3/{OrSelect-a7d3c84d.js → OrSelect-9001a22a.js} +4 -4
- package/dist/esm/v3/{OrSidebar-8837a93e.js → OrSidebar-83432ba3.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-f44951ac.js → OrSidebarCollapseButton-463aa3a0.js} +1 -1
- package/dist/esm/v3/{OrSorting-6baec1ab.js → OrSorting-aa200e88.js} +2 -2
- package/dist/esm/v3/{OrTabs-2ab1aefa.js → OrTabs-63ce33ae.js} +2 -2
- package/dist/esm/v3/{OrTag-2a3d7293.js → OrTag-5d7c0e75.js} +1 -1
- package/dist/esm/v3/{OrTagInput-ccb72239.js → OrTagInput-649f9b50.js} +2 -2
- package/dist/esm/v3/{OrTags-69e90412.js → OrTags-cb152033.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-a3870a62.js → OrTimePicker-f942db00.js} +4 -4
- package/dist/esm/v3/{OrTooltip-5bf6890a.js → OrTooltip-ad6e08ab.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +0 -1
- package/dist/esm/v3/components/index.js +29 -53
- package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -8
- package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +4 -3
- package/dist/esm/v3/components/or-code-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-code-v3/index.js +11 -14
- package/dist/esm/v3/components/or-code-v3/libs.d.ts +3 -0
- package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
- package/dist/esm/v3/components/or-context-menu-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-picker-v3/index.js +6 -6
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +6 -6
- package/dist/esm/v3/components/or-icon-button-v3/index.js +3 -3
- package/dist/esm/v3/components/or-inline-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +4 -4
- package/dist/esm/v3/components/or-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-menu-v3/index.js +2 -2
- package/dist/esm/v3/components/or-modal-v3/index.js +4 -4
- package/dist/esm/v3/components/or-notification-v3/index.js +4 -4
- package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v3/components/or-popover-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +5 -5
- package/dist/esm/v3/components/or-select-v3/index.js +6 -6
- package/dist/esm/v3/components/or-sidebar-v3/index.js +5 -5
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/esm/v3/components/or-sorting-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tag-input-v3/index.js +6 -6
- package/dist/esm/v3/components/or-tag-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tags-v3/index.js +5 -5
- package/dist/esm/v3/components/or-time-picker-v3/index.js +7 -7
- package/dist/esm/v3/components/or-toast-v3/index.js +4 -4
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tooltip-v3/index.js +2 -2
- package/dist/esm/v3/index.js +29 -53
- package/dist/esm/v3/{types-c4c1e2cc.js → types-777d6e58.js} +1 -1
- package/package.json +6 -22
- package/src/components/index.ts +0 -1
- package/src/components/or-code-v3/OrCode.vue +64 -50
- package/src/components/or-code-v3/index.ts +1 -0
- package/src/components/or-code-v3/libs.ts +6 -0
- package/src/components/or-popover-v3/OrPopover.vue +1 -1
- package/dist/bundled/v2/_commonjsHelpers-1789f0cf.js +0 -7
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -11640
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -194
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -2
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +0 -5
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +0 -7
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -42
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -183
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -17
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -199
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -2
- package/dist/bundled/v2/index-1b2cfcc1.js +0 -9715
- package/dist/bundled/v2/index-666dfe59.js +0 -4048
- package/dist/bundled/v2/index-9444e0d2.js +0 -115
- package/dist/bundled/v2/index-f671afe5.js +0 -7127
- package/dist/bundled/v2/markdown-119394e1.js +0 -15365
- package/dist/bundled/v2/useFocusTrap-d1b2c0b4.js +0 -1349
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-f1e9175d.js +0 -101
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-b01b8ae3.js +0 -11380
- package/dist/bundled/v3/_commonjsHelpers-1789f0cf.js +0 -7
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -202
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -194
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +0 -5
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +0 -7
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -42
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -183
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -17
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -199
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -2
- package/dist/bundled/v3/index-1b2cfcc1.js +0 -9715
- package/dist/bundled/v3/index-666dfe59.js +0 -4048
- package/dist/bundled/v3/index-9444e0d2.js +0 -115
- package/dist/bundled/v3/index-f671afe5.js +0 -7127
- package/dist/bundled/v3/markdown-119394e1.js +0 -15365
- package/dist/esm/v2/OrRichTextEditor-6fb5d647.js +0 -981
- package/dist/esm/v2/codemirrorView-020fe885.js +0 -357
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -194
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -67
- package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +0 -5
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -9
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -17
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/dist/esm/v3/OrRichTextEditor-d21645c2.js +0 -913
- package/dist/esm/v3/codemirrorView-020fe885.js +0 -357
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -194
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -65
- package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +0 -5
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -9
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -17
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -745
- package/src/components/or-rich-text-editor-v3/index.ts +0 -2
- package/src/components/or-rich-text-editor-v3/props.ts +0 -6
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -53
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +0 -40
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +0 -254
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +0 -238
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +0 -22
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +0 -172
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-c329e727.js → OrDateTimePickerMonthSelect-5c7d6cc7.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-146c2f16.js → OrDateTimePickerPopoverHeader-922f203c.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-7286977a.js → OrDateTimePickerTimeSelect-fc9d4e29.js} +0 -0
- /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-94976ae9.js → OrExpansionPanel.vue_vue_type_script_lang-e09daea9.js} +0 -0
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export const EditorContainer: string[] = [
|
|
2
|
-
// Colors
|
|
3
|
-
'border-outline',
|
|
4
|
-
'focus-within:theme-background-primary-translucent',
|
|
5
|
-
'focus-within:theme-border-1-primary',
|
|
6
|
-
'focus-within:theme-outline-2-primary',
|
|
7
|
-
// Sizing
|
|
8
|
-
'border-1',
|
|
9
|
-
'rounded-md',
|
|
10
|
-
'w-full',
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
export const ToolbarContainer: string[] = [
|
|
14
|
-
// Layout
|
|
15
|
-
'flex',
|
|
16
|
-
//Spacing
|
|
17
|
-
'py-sm',
|
|
18
|
-
//Sizing
|
|
19
|
-
'border-b-1',
|
|
20
|
-
//Colors
|
|
21
|
-
'border-b-outline',
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
export const Toolbar: string[] = [
|
|
25
|
-
// Layout
|
|
26
|
-
'flex',
|
|
27
|
-
// Spacing
|
|
28
|
-
'px-sm',
|
|
29
|
-
'gap-md',
|
|
30
|
-
// Sizing
|
|
31
|
-
'border-l-1',
|
|
32
|
-
//Colors
|
|
33
|
-
'border-r-disabled',
|
|
34
|
-
// Last child
|
|
35
|
-
'first-of-type:border-none',
|
|
36
|
-
];
|
|
37
|
-
|
|
38
|
-
export const ToolbarButton: string[] = [
|
|
39
|
-
// Typography
|
|
40
|
-
'text-on-disabled',
|
|
41
|
-
];
|
|
42
|
-
|
|
43
|
-
export const ToolbarButtonFocused: string[] = [
|
|
44
|
-
// Typography
|
|
45
|
-
'text-outline',
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
export const EditorInput: string[] = [
|
|
49
|
-
// Typography
|
|
50
|
-
'typography-body-2-regular',
|
|
51
|
-
// Sizing
|
|
52
|
-
'min-h-[88px]',
|
|
53
|
-
];
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
import CodeBlockView from './codemirrorView';
|
|
3
|
-
import { minimalSetup } from 'codemirror';
|
|
4
|
-
import { javascript } from '@codemirror/lang-javascript';
|
|
5
|
-
|
|
6
|
-
export default Node.create({
|
|
7
|
-
name: 'codeBlock',
|
|
8
|
-
content: 'text*',
|
|
9
|
-
marks: '',
|
|
10
|
-
group: 'block',
|
|
11
|
-
code: true,
|
|
12
|
-
defining: true,
|
|
13
|
-
isolating: true,
|
|
14
|
-
|
|
15
|
-
parseHTML() {
|
|
16
|
-
return [
|
|
17
|
-
{
|
|
18
|
-
tag: 'pre',
|
|
19
|
-
preserveWhitespace: 'full',
|
|
20
|
-
},
|
|
21
|
-
];
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
renderHTML() {
|
|
25
|
-
return ['pre', ['code', 0]];
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
addNodeView() {
|
|
29
|
-
return ({ node, editor, getPos }) => {
|
|
30
|
-
return new CodeBlockView({
|
|
31
|
-
node,
|
|
32
|
-
view: editor.view,
|
|
33
|
-
getPos: getPos as () => number,
|
|
34
|
-
cmOptions: {
|
|
35
|
-
extensions: [minimalSetup, javascript()],
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
});
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { Selection, TextSelection } from 'prosemirror-state';
|
|
2
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
3
|
-
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
4
|
-
import { exitCode } from 'prosemirror-commands';
|
|
5
|
-
import { EditorState as CMState, Transaction as CMTransaction, Extension } from '@codemirror/state';
|
|
6
|
-
import {
|
|
7
|
-
Command,
|
|
8
|
-
EditorView as CMView,
|
|
9
|
-
keymap,
|
|
10
|
-
highlightActiveLine,
|
|
11
|
-
highlightActiveLineGutter,
|
|
12
|
-
lineNumbers,
|
|
13
|
-
} from '@codemirror/view';
|
|
14
|
-
import orCodeTheme from './theme';
|
|
15
|
-
|
|
16
|
-
import { ComputeChange, CodeMirrorViewOptions } from './types';
|
|
17
|
-
|
|
18
|
-
const computeChange = (oldVal: string, newVal: string): ComputeChange | null => {
|
|
19
|
-
if (oldVal === newVal) {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
let start = 0;
|
|
24
|
-
let oldEnd = oldVal.length;
|
|
25
|
-
let newEnd = newVal.length;
|
|
26
|
-
|
|
27
|
-
while (start < oldEnd && oldVal.charCodeAt(start) === newVal.charCodeAt(start)) {
|
|
28
|
-
start += 1;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
while (oldEnd > start && newEnd > start && oldVal.charCodeAt(oldEnd - 1) === newVal.charCodeAt(newEnd - 1)) {
|
|
32
|
-
oldEnd -= 1;
|
|
33
|
-
newEnd -= 1;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return {
|
|
37
|
-
from: start,
|
|
38
|
-
to: oldEnd,
|
|
39
|
-
text: newVal.slice(start, newEnd),
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
class CodeMirrorView implements NodeView {
|
|
44
|
-
name: string;
|
|
45
|
-
|
|
46
|
-
node: ProsemirrorNode;
|
|
47
|
-
|
|
48
|
-
view: EditorView;
|
|
49
|
-
|
|
50
|
-
dom: HTMLElement;
|
|
51
|
-
|
|
52
|
-
cm: CMView;
|
|
53
|
-
|
|
54
|
-
getPos: () => number;
|
|
55
|
-
|
|
56
|
-
updating = false;
|
|
57
|
-
|
|
58
|
-
constructor(options: CodeMirrorViewOptions) {
|
|
59
|
-
// Store for later
|
|
60
|
-
this.node = options.node;
|
|
61
|
-
this.view = options.view;
|
|
62
|
-
const cmExtensions = options.cmOptions?.extensions || [];
|
|
63
|
-
this.name = 'codeBlock',
|
|
64
|
-
|
|
65
|
-
this.getPos = options.getPos as () => number;
|
|
66
|
-
|
|
67
|
-
const changeFilter = CMState.changeFilter.of((tr) => {
|
|
68
|
-
if (!tr.docChanged && !this.updating) {
|
|
69
|
-
this.forwardSelection();
|
|
70
|
-
}
|
|
71
|
-
return true;
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
// Create a CodeMirror instancew
|
|
75
|
-
this.cm = new CMView({
|
|
76
|
-
dispatch: this.dispatch.bind(this),
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
// The editor's outer node is our DOM representation
|
|
80
|
-
this.dom = this.cm.dom;
|
|
81
|
-
|
|
82
|
-
const cmState = CMState.create({
|
|
83
|
-
doc: this.node.textContent,
|
|
84
|
-
extensions: [
|
|
85
|
-
orCodeTheme as Extension,
|
|
86
|
-
changeFilter,
|
|
87
|
-
highlightActiveLine(),
|
|
88
|
-
highlightActiveLineGutter(),
|
|
89
|
-
lineNumbers(),
|
|
90
|
-
keymap.of([
|
|
91
|
-
{
|
|
92
|
-
key: 'ArrowUp',
|
|
93
|
-
run: this.mayBeEscape('line', -1),
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
key: 'ArrowLeft',
|
|
97
|
-
run: this.mayBeEscape('char', -1),
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
key: 'ArrowDown',
|
|
101
|
-
run: this.mayBeEscape('line', 1),
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
key: 'ArrowRight',
|
|
105
|
-
run: this.mayBeEscape('char', 1),
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
key: 'Ctrl-Enter',
|
|
109
|
-
run: () => {
|
|
110
|
-
if (exitCode(this.view.state, this.view.dispatch)) {
|
|
111
|
-
this.view.focus();
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
return false;
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
]),
|
|
118
|
-
cmExtensions,
|
|
119
|
-
],
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
this.cm.setState(cmState);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
forwardSelection() {
|
|
126
|
-
if (!this.cm.hasFocus) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const { state } = this.view;
|
|
131
|
-
const selection = this.asProseMirrorSelection(state.doc);
|
|
132
|
-
|
|
133
|
-
if (!selection.eq(state.selection)) {
|
|
134
|
-
this.view.dispatch(state.tr.setSelection(selection));
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
asProseMirrorSelection(doc: ProsemirrorNode) {
|
|
139
|
-
const offset = this.getPos() + 1;
|
|
140
|
-
const { anchor, head } = this.cm.state.selection.main;
|
|
141
|
-
return TextSelection.create(doc, anchor + offset, head + offset);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
dispatch(cmTr: CMTransaction) {
|
|
145
|
-
this.cm.setState(cmTr.state);
|
|
146
|
-
|
|
147
|
-
if (cmTr.docChanged && !this.updating) {
|
|
148
|
-
const start = this.getPos() + 1;
|
|
149
|
-
|
|
150
|
-
const cmValue = cmTr.state.doc.toString();
|
|
151
|
-
const change = computeChange(this.node.textContent, cmValue);
|
|
152
|
-
|
|
153
|
-
if (!change) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
const content = change.text ? this.view.state.schema.text(change.text) : null;
|
|
158
|
-
|
|
159
|
-
const tr = this.view.state.tr.replaceWith(change.from + start, change.to + start, content as ProsemirrorNode);
|
|
160
|
-
this.view.dispatch(tr);
|
|
161
|
-
this.forwardSelection();
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
mayBeEscape(unit: 'char' | 'line', dir: -1 | 1): Command {
|
|
166
|
-
return (view) => {
|
|
167
|
-
const { state } = view;
|
|
168
|
-
const { selection } = state;
|
|
169
|
-
|
|
170
|
-
const offsetToPos = () => {
|
|
171
|
-
const offset = selection.main.from;
|
|
172
|
-
const line = state.doc.lineAt(offset);
|
|
173
|
-
return {
|
|
174
|
-
line: line.number,
|
|
175
|
-
ch: offset - line.from,
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
const pos = offsetToPos();
|
|
180
|
-
const hasSelection = state.selection.ranges.some((r) => !r.empty);
|
|
181
|
-
|
|
182
|
-
const firstLine = 1;
|
|
183
|
-
const lastLine = state.doc.lineAt(state.doc.length).number;
|
|
184
|
-
|
|
185
|
-
if (
|
|
186
|
-
hasSelection
|
|
187
|
-
|| pos.line !== (dir < 0 ? firstLine : lastLine)
|
|
188
|
-
|| (unit === 'char' && pos.ch !== (dir < 0 ? 0 : state.doc.line(pos.line).length))
|
|
189
|
-
) {
|
|
190
|
-
return false;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
const targetPos = this.getPos() + (dir < 0 ? 0 : this.node.nodeSize);
|
|
194
|
-
const pmSelection = Selection.near(this.view.state.doc.resolve(targetPos), dir);
|
|
195
|
-
this.view.dispatch(this.view.state.tr.setSelection(pmSelection).scrollIntoView());
|
|
196
|
-
this.view.focus();
|
|
197
|
-
return true;
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
update(node: ProsemirrorNode) {
|
|
202
|
-
if (node.type !== this.node.type) {
|
|
203
|
-
return false;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
this.node = node;
|
|
207
|
-
const change = computeChange(this.cm.state.doc.toString(), node.textContent);
|
|
208
|
-
|
|
209
|
-
if (change) {
|
|
210
|
-
this.updating = true;
|
|
211
|
-
this.cm.dispatch({
|
|
212
|
-
changes: {
|
|
213
|
-
from: change.from,
|
|
214
|
-
to: change.to,
|
|
215
|
-
insert: change.text,
|
|
216
|
-
},
|
|
217
|
-
});
|
|
218
|
-
this.updating = false;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return true;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
setSelection(anchor: number, head: number): void {
|
|
225
|
-
this.focus();
|
|
226
|
-
this.updating = true;
|
|
227
|
-
this.cm.dispatch({
|
|
228
|
-
selection: {
|
|
229
|
-
anchor,
|
|
230
|
-
head,
|
|
231
|
-
},
|
|
232
|
-
});
|
|
233
|
-
this.updating = false;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
focus() {
|
|
237
|
-
this.cm.focus();
|
|
238
|
-
this.forwardSelection();
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
selectNode() {
|
|
242
|
-
this.focus();
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
stopEvent() {
|
|
246
|
-
return true;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
destroy() {
|
|
250
|
-
this.cm.destroy();
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export default CodeMirrorView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CodeMirrorView } from './codemirrorView';
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { EditorView } from '@codemirror/view';
|
|
2
|
-
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
3
|
-
import { tags as t } from '@lezer/highlight';
|
|
4
|
-
|
|
5
|
-
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
6
|
-
|
|
7
|
-
import { useTheme } from '../../../../hooks/useTheme';
|
|
8
|
-
|
|
9
|
-
const themes = useTheme();
|
|
10
|
-
|
|
11
|
-
const chalky = themes?.backgroundColor['custom-colors-custom-6'],
|
|
12
|
-
coral = themes?.backgroundColor['custom-colors-custom-1'],
|
|
13
|
-
cyan = themes?.backgroundColor['custom-colors-custom-3'],
|
|
14
|
-
invalid = themes?.backgroundColor?.white,
|
|
15
|
-
ivory = themes?.backgroundColor['custom-colors-custom-6'],
|
|
16
|
-
stone = themes?.backgroundColor['custom-colors-custom-5'], // Brightened compared to original to increase contrast
|
|
17
|
-
malibu = themes?.backgroundColor['custom-colors-custom-3'],
|
|
18
|
-
sage = themes?.backgroundColor.success,
|
|
19
|
-
whiskey = themes?.backgroundColor.warning,
|
|
20
|
-
violet = themes?.backgroundColor['custom-colors-custom-1'];
|
|
21
|
-
// darkBackground = themes?.colors?.neutral?.[100],
|
|
22
|
-
// highlightBackground = themes?.colors?.neutral?.[200],
|
|
23
|
-
// background = themes?.colors?.neutral?.[100],
|
|
24
|
-
// tooltipBackground = themes?.colors?.neutral?.[200],
|
|
25
|
-
// selection = themes?.colors?.blue?.[100],
|
|
26
|
-
// cursor = themes?.colors?.blue?.[700];
|
|
27
|
-
|
|
28
|
-
/// The colors used in the theme, as CSS color strings.
|
|
29
|
-
export const color = {
|
|
30
|
-
chalky,
|
|
31
|
-
coral,
|
|
32
|
-
cyan,
|
|
33
|
-
invalid,
|
|
34
|
-
ivory,
|
|
35
|
-
stone,
|
|
36
|
-
malibu,
|
|
37
|
-
sage,
|
|
38
|
-
whiskey,
|
|
39
|
-
violet,
|
|
40
|
-
// darkBackground,
|
|
41
|
-
// highlightBackground,
|
|
42
|
-
// background,
|
|
43
|
-
// tooltipBackground,
|
|
44
|
-
// selection,
|
|
45
|
-
// cursor,
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/// The editor theme styles for One Dark.
|
|
49
|
-
export const orCodeTheme = EditorView.theme({
|
|
50
|
-
'&': {
|
|
51
|
-
color: ivory,
|
|
52
|
-
backgroundColor: themes?.backgroundColor?.['bg-primary-container'],
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
'.cm-editor': {
|
|
56
|
-
border: 'none',
|
|
57
|
-
borderRadius: themes?.spacing?.xs,
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
'&.cm-focused': {
|
|
61
|
-
outline: 'none',
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
'.cm-scroller': {
|
|
65
|
-
borderRadius: themes?.spacing?.xs,
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
'.cm-content': {
|
|
69
|
-
// caretColor: cursor,
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
'.cm-button': {
|
|
73
|
-
// background: highlightBackground,
|
|
74
|
-
// color: themes?.colors?.neutral?.[600],
|
|
75
|
-
border: 0,
|
|
76
|
-
borderRadius: themes?.spacing?.xs,
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
'.cm-panel.cm-search input[type=checkbox]': {
|
|
80
|
-
display: 'inline-block',
|
|
81
|
-
verticalAlign: 'middle',
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
// '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
85
|
-
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
86
|
-
// backgroundColor: selection,
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
'.cm-panels': {
|
|
90
|
-
// backgroundColor: darkBackground,
|
|
91
|
-
color: ivory,
|
|
92
|
-
},
|
|
93
|
-
// '.cm-panels.cm-panels-top': { borderBottom: `2px solid ${themes?.colors?.neutral?.[200]}` },
|
|
94
|
-
// '.cm-panels.cm-panels-bottom': { borderTop: `2px solid ${themes?.colors?.neutral?.[200]}` },
|
|
95
|
-
|
|
96
|
-
'.cm-searchMatch': {
|
|
97
|
-
// backgroundColor: themes?.colors?.neutral?.[100],
|
|
98
|
-
// outline: `1px solid ${themes?.colors?.neutral?.[200]}`,
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
102
|
-
// backgroundColor: themes?.colors?.sky?.[100],
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
'.cm-activeLine': {
|
|
106
|
-
backgroundColor: themes?.backgroundColor?.['bg-secondary-container'],
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
// '.cm-selectionMatch': { backgroundColor: themes?.colors?.lime?.[500] },
|
|
110
|
-
|
|
111
|
-
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
112
|
-
// backgroundColor: themes?.colors?.lime?.[600],
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
'.cm-gutters': {
|
|
116
|
-
backgroundColor: themes?.backgroundColor?.['primary-opacity-0-12'],
|
|
117
|
-
color: stone,
|
|
118
|
-
border: 'none',
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
'.cm-lineNumbers .cm-gutterElement': {
|
|
122
|
-
paddingLeft: themes?.spacing?.['sm+*'],
|
|
123
|
-
paddingRight: themes?.spacing?.['sm+*'],
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
'.cm-activeLineGutter': {
|
|
127
|
-
backgroundColor: themes?.backgroundColor?.['primary-opacity-0-16'],
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
'.cm-foldPlaceholder': {
|
|
131
|
-
backgroundColor: 'transparent',
|
|
132
|
-
border: 'none',
|
|
133
|
-
// color: themes?.colors?.neutral?.[200],
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
'.cm-tooltip': {
|
|
137
|
-
border: 'none',
|
|
138
|
-
// backgroundColor: tooltipBackground,
|
|
139
|
-
},
|
|
140
|
-
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
141
|
-
borderTopColor: 'transparent',
|
|
142
|
-
borderBottomColor: 'transparent',
|
|
143
|
-
},
|
|
144
|
-
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
145
|
-
// borderTopColor: tooltipBackground,
|
|
146
|
-
// borderBottomColor: tooltipBackground,
|
|
147
|
-
},
|
|
148
|
-
'.cm-tooltip-autocomplete': {
|
|
149
|
-
'& > ul > li[aria-selected]': {
|
|
150
|
-
// backgroundColor: highlightBackground,
|
|
151
|
-
color: ivory,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
'.cm-textfield': {
|
|
155
|
-
outline: 'none',
|
|
156
|
-
// background: background,
|
|
157
|
-
// color: themes?.colors?.neutral?.[600],
|
|
158
|
-
// backgroundColor: themes?.colors?.neutral?.[100],
|
|
159
|
-
// border: `1px solid ${themes?.colors?.neutral?.[200]}`,
|
|
160
|
-
borderRadius: themes?.spacing?.xs,
|
|
161
|
-
},
|
|
162
|
-
}, { dark: true });
|
|
163
|
-
|
|
164
|
-
/// The highlighting style for code in the One Dark theme.
|
|
165
|
-
export const orCodeHighlightStyle = HighlightStyle.define([
|
|
166
|
-
{
|
|
167
|
-
tag: t.keyword,
|
|
168
|
-
color: violet,
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],
|
|
172
|
-
color: coral,
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
tag: [t.function(t.variableName), t.labelName],
|
|
176
|
-
color: malibu,
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
tag: [t.color, t.constant(t.name), t.standard(t.name)],
|
|
180
|
-
color: whiskey,
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
tag: [t.definition(t.name), t.separator],
|
|
184
|
-
color: ivory,
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
tag: [t.typeName, t.className, t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],
|
|
188
|
-
color: chalky,
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
tag: [t.operator, t.operatorKeyword, t.url, t.escape, t.regexp, t.link, t.special(t.string)],
|
|
192
|
-
color: cyan,
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
tag: [t.meta, t.comment],
|
|
196
|
-
color: stone,
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
tag: t.strong,
|
|
200
|
-
fontWeight: 'bold',
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
tag: t.emphasis,
|
|
204
|
-
fontStyle: 'italic',
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
tag: t.strikethrough,
|
|
208
|
-
textDecoration: 'line-through',
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
tag: t.link,
|
|
212
|
-
color: stone,
|
|
213
|
-
textDecoration: 'underline',
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
tag: t.heading,
|
|
217
|
-
fontWeight: 'bold',
|
|
218
|
-
color: coral,
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
tag: [t.atom, t.bool, t.special(t.variableName)],
|
|
222
|
-
color: whiskey,
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
tag: [t.processingInstruction, t.string, t.inserted],
|
|
226
|
-
color: sage,
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
tag: t.invalid,
|
|
230
|
-
color: invalid,
|
|
231
|
-
},
|
|
232
|
-
]);
|
|
233
|
-
|
|
234
|
-
/// Extension to enable the One Dark theme (both the editor theme and
|
|
235
|
-
/// the highlight style).
|
|
236
|
-
const theme = [orCodeTheme, syntaxHighlighting(orCodeHighlightStyle)];
|
|
237
|
-
|
|
238
|
-
export default theme;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { EditorView } from 'prosemirror-view';
|
|
2
|
-
import type { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
3
|
-
import type { Extension } from '@codemirror/state';
|
|
4
|
-
|
|
5
|
-
export interface ComputeChange {
|
|
6
|
-
from: number;
|
|
7
|
-
to: number;
|
|
8
|
-
text: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
interface CMOptions {
|
|
12
|
-
extensions: Extension;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type GetPos = () => number | undefined;
|
|
16
|
-
|
|
17
|
-
export interface CodeMirrorViewOptions {
|
|
18
|
-
node: ProsemirrorNode;
|
|
19
|
-
view: EditorView;
|
|
20
|
-
getPos: GetPos;
|
|
21
|
-
cmOptions?: CMOptions;
|
|
22
|
-
}
|