@onereach/ui-components 18.4.0 → 18.4.2
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/components/OrAutocompleteV3/OrAutocomplete.js +1 -1
- package/dist/bundled/components/OrAutocompleteV3/index.js +1 -1
- package/dist/bundled/components/OrAutocompleteV3/styles.js +1 -1
- package/dist/bundled/components/{OrAutocompleteV3-01f2ace5.js → OrAutocompleteV3-693d8511.js} +6 -6
- package/dist/bundled/components/OrBottomSheetV3/OrBottomSheet.js +1 -1
- package/dist/bundled/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +2 -2
- package/dist/bundled/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/components/OrBottomSheetV3/props.js +1 -1
- package/dist/bundled/components/OrBottomSheetV3/styles.js +1 -1
- package/dist/bundled/components/{OrBottomSheetV3-ee0fdfd0.js → OrBottomSheetV3-9216701f.js} +2 -2
- package/dist/bundled/components/OrButtonGroupV3/OrButtonGroup.js +1 -1
- package/dist/bundled/components/OrButtonGroupV3/index.js +1 -1
- package/dist/bundled/components/OrButtonGroupV3/styles.js +2 -2
- package/dist/bundled/components/{OrButtonGroupV3-4b396d60.js → OrButtonGroupV3-4401e620.js} +1 -1
- package/dist/bundled/components/OrButtonV3/OrButton.js +1 -1
- package/dist/bundled/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/components/OrButtonV3/props.js +1 -1
- package/dist/bundled/components/OrButtonV3/styles.js +1 -1
- package/dist/bundled/components/{OrButtonV3-fe657114.js → OrButtonV3-d251d09a.js} +1 -1
- package/dist/bundled/components/OrCardCollectionV3/OrCardCollection.js +1 -1
- package/dist/bundled/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/components/OrCardCollectionV3/props.js +1 -1
- package/dist/bundled/components/OrCardCollectionV3/styles.js +1 -1
- package/dist/bundled/components/{OrCardCollectionV3-a002beb3.js → OrCardCollectionV3-43267355.js} +3 -3
- package/dist/bundled/components/OrCheckboxGroupV3/OrCheckboxGroup.js +1 -1
- package/dist/bundled/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
- package/dist/bundled/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/components/OrCheckboxTreeV3/styles.js +1 -1
- package/dist/bundled/components/OrCheckboxTreeV3/utils/extractChildrenValues.js +1 -1
- package/dist/bundled/components/{OrCheckboxTreeV3-c53b0a28.js → OrCheckboxTreeV3-1dface82.js} +2 -2
- package/dist/bundled/components/OrCode/OrCode.js +1 -1
- package/dist/bundled/components/OrCode/constants.js +1 -1
- package/dist/bundled/components/OrCode/index.js +1 -1
- package/dist/bundled/components/OrCode/lang.js +1 -1
- package/dist/bundled/components/OrCode/libs.js +1 -1
- package/dist/bundled/components/OrCode/theme.js +1 -1
- package/dist/bundled/components/{OrCode-5419c9fc.js → OrCode-091c4960.js} +2 -2
- package/dist/bundled/components/OrCodeV3/OrCode.js +1 -1
- package/dist/bundled/components/OrCodeV3/index.js +2 -2
- package/dist/bundled/components/OrCodeV3/libs.js +1 -1
- package/dist/bundled/components/OrCodeV3/props.js +1 -1
- package/dist/bundled/components/OrCodeV3/styles.js +1 -1
- package/dist/bundled/components/{OrCodeV3-265cfec7.js → OrCodeV3-ccd08ae0.js} +9 -9
- package/dist/bundled/components/OrColorPicker/OrColorPicker.js +1 -1
- package/dist/bundled/components/OrColorPicker/constants.js +1 -1
- package/dist/bundled/components/OrColorPicker/index.js +1 -1
- package/dist/bundled/components/OrColorPicker/utils/defultPalette.js +1 -1
- package/dist/bundled/components/{OrColorPicker-793c757b.js → OrColorPicker-2e1e02b6.js} +1 -1
- package/dist/bundled/components/OrConfirm/OrConfirm.js +1 -1
- package/dist/bundled/components/OrConfirm/index.js +1 -1
- package/dist/bundled/components/{OrConfirm-ee94a77d.js → OrConfirm-ca91ff42.js} +2 -2
- package/dist/bundled/components/OrConfirmV3/OrConfirm.js +1 -1
- package/dist/bundled/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/components/OrConfirmV3/props.js +1 -1
- package/dist/bundled/components/OrConfirmV3/styles.js +1 -1
- package/dist/bundled/components/{OrConfirmV3-a1e29e2b.js → OrConfirmV3-0d637165.js} +5 -5
- package/dist/bundled/components/OrContextMenuV3/OrContextMenu.js +2 -2
- package/dist/bundled/components/OrDataGridV3/OrDataGrid.js +1 -1
- package/dist/bundled/components/OrDataGridV3/index.js +1 -1
- package/dist/bundled/components/OrDataGridV3/styles.js +1 -1
- package/dist/bundled/components/{OrDataGridV3-52316374.js → OrDataGridV3-0e1b9ec4.js} +10 -10
- package/dist/bundled/components/OrDateFormatV3/OrDateFormat.js +1 -1
- package/dist/bundled/components/OrDateFormatV3/index.js +1 -1
- package/dist/bundled/components/OrDateFormatV3/styles.js +1 -1
- package/dist/bundled/components/{OrDateFormatV3-e286b9a9.js → OrDateFormatV3-c7e34acd.js} +1 -1
- package/dist/bundled/components/OrDatePickerV3/OrDatePicker.js +1 -1
- package/dist/bundled/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/components/OrDatePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrDatePickerV3-4a8ebdae.js → OrDatePickerV3-88930e34.js} +3 -3
- package/dist/bundled/components/OrDateRangePickerV3/OrDateRangePicker.js +1 -1
- package/dist/bundled/components/OrDateRangePickerV3/index.js +1 -1
- package/dist/bundled/components/OrDateRangePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrDateRangePickerV3-81a4a685.js → OrDateRangePickerV3-17dba772.js} +3 -3
- package/dist/bundled/components/OrDateTimeFormatV3/OrDateTimeFormat.js +1 -1
- package/dist/bundled/components/OrDateTimeFormatV3/index.js +1 -1
- package/dist/bundled/components/OrDateTimeFormatV3/styles.js +1 -1
- package/dist/bundled/components/{OrDateTimeFormatV3-d4c6e208.js → OrDateTimeFormatV3-53a0f41c.js} +1 -1
- package/dist/bundled/components/OrDateTimePicker/OrDateTimePicker.js +1 -1
- package/dist/bundled/components/OrDateTimePicker/constants.js +1 -1
- package/dist/bundled/components/OrDateTimePicker/index.js +1 -1
- package/dist/bundled/components/{OrDateTimePicker-fcfb881b.js → OrDateTimePicker-d1f935ea.js} +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/styles.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/formatDate.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/formatMobileDate.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/formatMobileTime.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/formatTime.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/getCurrentDate.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/getNextMonthDate.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/index.js +1 -1
- package/dist/bundled/components/{OrDateTimePickerV3-8d94e77c.js → OrDateTimePickerV3-cc9fbb4f.js} +5 -5
- package/dist/bundled/components/OrDrawerV3/OrDrawer.js +1 -1
- package/dist/bundled/components/OrDrawerV3/index.js +1 -1
- package/dist/bundled/components/OrDrawerV3/styles.js +1 -1
- package/dist/bundled/components/{OrDrawerV3-08f4d6cb.js → OrDrawerV3-66e3534f.js} +2 -2
- package/dist/bundled/components/OrEditorTabsV3/OrEditorTabs.js +1 -1
- package/dist/bundled/components/OrEditorTabsV3/index.js +1 -1
- package/dist/bundled/components/OrEditorTabsV3/props.js +1 -1
- package/dist/bundled/components/OrEditorTabsV3/styles.js +1 -1
- package/dist/bundled/components/{OrEditorTabsV3-9ddf8841.js → OrEditorTabsV3-b7ca318b.js} +4 -4
- package/dist/bundled/components/OrFilterPopoverV3/OrFilterPopover.js +1 -1
- package/dist/bundled/components/OrFilterPopoverV3/index.js +1 -1
- package/dist/bundled/components/OrFilterPopoverV3/styles.js +1 -1
- package/dist/bundled/components/{OrFilterPopoverV3-e9a8b9fa.js → OrFilterPopoverV3-1f2cba39.js} +3 -3
- package/dist/bundled/components/OrFilterTriggerV3/OrFilterTrigger.js +1 -1
- package/dist/bundled/components/OrFilterTriggerV3/index.js +1 -1
- package/dist/bundled/components/OrFilterTriggerV3/styles.js +1 -1
- package/dist/bundled/components/{OrFilterTriggerV3-fe509287.js → OrFilterTriggerV3-00727950.js} +1 -1
- package/dist/bundled/components/OrFilterV3/OrFilter.js +1 -1
- package/dist/bundled/components/OrFilterV3/index.js +1 -1
- package/dist/bundled/components/OrFilterV3/styles.js +1 -1
- package/dist/bundled/components/{OrFilterV3-cfa4c2c9.js → OrFilterV3-52b9090a.js} +2 -2
- package/dist/bundled/components/OrIconButtonV3/OrIconButton.js +1 -1
- package/dist/bundled/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/components/OrIconButtonV3/props.js +1 -1
- package/dist/bundled/components/OrIconButtonV3/styles.js +1 -1
- package/dist/bundled/components/{OrIconButtonV3-13d7dffb.js → OrIconButtonV3-5077c4d6.js} +1 -1
- package/dist/bundled/components/OrInlineInputV3/OrInlineInput.js +1 -1
- package/dist/bundled/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/components/OrInlineInputV3/styles.js +1 -1
- package/dist/bundled/components/{OrInlineInputV3-b35afa54.js → OrInlineInputV3-3d8fad20.js} +1 -1
- package/dist/bundled/components/OrInlineTextEdit/index.js +1 -1
- package/dist/bundled/components/OrInlineTextareaV3/OrInlineTextarea.js +1 -1
- package/dist/bundled/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/components/OrInlineTextareaV3/styles.js +1 -1
- package/dist/bundled/components/{OrInlineTextareaV3-e2a6c9ba.js → OrInlineTextareaV3-a7cc3681.js} +2 -2
- package/dist/bundled/components/OrInputV3/OrInput.js +1 -1
- package/dist/bundled/components/OrInputV3/index.js +1 -1
- package/dist/bundled/components/OrInputV3/styles.js +1 -1
- package/dist/bundled/components/{OrInputV3-f13bac72.js → OrInputV3-4c46ab5d.js} +2 -2
- package/dist/bundled/components/OrList/OrList.js +1 -1
- package/dist/bundled/components/OrList/index.js +1 -1
- package/dist/bundled/components/{OrList-051f95d2.js → OrList-93c6b262.js} +1 -1
- package/dist/bundled/components/OrListOfInputs/OrListOfInputs.js +1 -1
- package/dist/bundled/components/OrListV3/OrList.js +1 -1
- package/dist/bundled/components/OrListV3/index.js +1 -1
- package/dist/bundled/components/OrListV3/styles.js +1 -1
- package/dist/bundled/components/{OrListV3-0bab8c85.js → OrListV3-b96934c7.js} +3 -3
- package/dist/bundled/components/OrLoaderV3/OrLoader.js +1 -1
- package/dist/bundled/components/OrLoaderV3/index.js +1 -1
- package/dist/bundled/components/OrLoaderV3/props.js +1 -1
- package/dist/bundled/components/OrLoaderV3/styles.js +1 -1
- package/dist/bundled/components/{OrLoaderV3-52e4a4cb.js → OrLoaderV3-9be97590.js} +1 -1
- package/dist/bundled/components/OrMenuItemV3/OrMenuItem.js +1 -1
- package/dist/bundled/components/OrMenuItemV3/OrMenuItem.vue.d.ts +10 -1
- package/dist/bundled/components/OrMenuItemV3/index.js +1 -1
- package/dist/bundled/components/OrMenuItemV3/styles.d.ts +2 -0
- package/dist/bundled/components/OrMenuItemV3/styles.js +1 -1
- package/dist/bundled/components/{OrMenuItemV3-0fa5e74d.js → OrMenuItemV3-21602f36.js} +38 -19
- package/dist/bundled/components/OrMenuV3/OrMenu.js +1 -1
- package/dist/bundled/components/OrMenuV3/index.js +1 -1
- package/dist/bundled/components/OrMenuV3/styles.js +1 -1
- package/dist/bundled/components/{OrMenuV3-f2c9cee8.js → OrMenuV3-e5b7f3b5.js} +1 -1
- package/dist/bundled/components/OrModal/OrModal.js +1 -1
- package/dist/bundled/components/OrModal/constants.js +1 -1
- package/dist/bundled/components/OrModal/index.js +1 -1
- package/dist/bundled/components/{OrModal-327b24f0.js → OrModal-9fb30013.js} +1 -1
- package/dist/bundled/components/OrModalV3/OrModal.js +1 -1
- package/dist/bundled/components/OrModalV3/index.js +1 -1
- package/dist/bundled/components/OrModalV3/props.js +1 -1
- package/dist/bundled/components/OrModalV3/styles.js +1 -1
- package/dist/bundled/components/{OrModalV3-4e8d9bec.js → OrModalV3-4ef3e340.js} +2 -2
- package/dist/bundled/components/OrNotificationV3/OrNotification.js +1 -1
- package/dist/bundled/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/components/OrNotificationV3/props.js +1 -1
- package/dist/bundled/components/OrNotificationV3/styles.js +1 -1
- package/dist/bundled/components/{OrNotificationV3-dbf030b5.js → OrNotificationV3-24a95adf.js} +1 -1
- package/dist/bundled/components/OrOverflowMenu/OrOverflowMenu.js +1 -1
- package/dist/bundled/components/OrOverlayV3/OrOverlay.js +1 -1
- package/dist/bundled/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/components/OrOverlayV3/styles.js +1 -1
- package/dist/bundled/components/{OrOverlayV3-f6cb4cdb.js → OrOverlayV3-a4e597eb.js} +1 -1
- package/dist/bundled/components/OrPaginationV3/OrPagination.js +1 -1
- package/dist/bundled/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/components/OrPaginationV3/styles.js +1 -1
- package/dist/bundled/components/{OrPaginationV3-7802c0e8.js → OrPaginationV3-df07fe99.js} +3 -3
- package/dist/bundled/components/OrPassword/OrPassword.js +1 -1
- package/dist/bundled/components/OrPopoverV3/OrPopover.js +1 -1
- package/dist/bundled/components/OrPopoverV3/hooks/useFloating.js +1 -1
- package/dist/bundled/components/OrPopoverV3/index.js +1 -1
- package/dist/bundled/components/OrPopoverV3/props.js +1 -1
- package/dist/bundled/components/OrPopoverV3/styles.js +1 -1
- package/dist/bundled/components/OrPopoverV3/utils/index.js +1 -1
- package/dist/bundled/components/OrPopoverV3/utils/isPrevented.js +1 -1
- package/dist/bundled/components/{OrPopoverV3-7d690347.js → OrPopoverV3-ef3a50db.js} +2 -2
- package/dist/bundled/components/OrProgress/OrProgress.js +1 -1
- package/dist/bundled/components/OrProgress/constants.js +1 -1
- package/dist/bundled/components/OrProgress/index.js +1 -1
- package/dist/bundled/components/{OrProgress-86910fea.js → OrProgress-6ec38c32.js} +1 -1
- package/dist/bundled/components/OrProgressV3/OrProgress.js +1 -1
- package/dist/bundled/components/OrProgressV3/index.js +1 -1
- package/dist/bundled/components/OrProgressV3/props.js +1 -1
- package/dist/bundled/components/OrProgressV3/styles.js +1 -1
- package/dist/bundled/components/{OrProgressV3-814e0a47.js → OrProgressV3-0067e734.js} +2 -2
- package/dist/bundled/components/OrRadio/OrRadio.js +1 -1
- package/dist/bundled/components/OrRadio/index.js +1 -1
- package/dist/bundled/components/{OrRadio-a9ee7b6a.js → OrRadio-30e01fc0.js} +2 -2
- package/dist/bundled/components/OrRangeSliderV3/OrRangeSlider.js +1 -1
- package/dist/bundled/components/OrRangeSliderV3/index.js +1 -1
- package/dist/bundled/components/OrRangeSliderV3/styles.js +2 -2
- package/dist/bundled/components/{OrRangeSliderV3-82a0df30.js → OrRangeSliderV3-0954d4ec.js} +3 -3
- package/dist/bundled/components/OrResizeablePanelV3/OrResizeablePanel.js +1 -1
- package/dist/bundled/components/OrResizeablePanelV3/index.js +1 -1
- package/dist/bundled/components/OrResizeablePanelV3/props.js +1 -1
- package/dist/bundled/components/OrResizeablePanelV3/styles.js +1 -1
- package/dist/bundled/components/{OrResizeablePanelV3-ab3cf305.js → OrResizeablePanelV3-8098fbf3.js} +2 -2
- package/dist/bundled/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
- package/dist/bundled/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +3 -7
- package/dist/bundled/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/components/OrRichTextEditorV3/props.d.ts +32 -0
- package/dist/bundled/components/OrRichTextEditorV3/props.js +1 -1
- package/dist/bundled/components/OrRichTextEditorV3/styles.js +1 -1
- package/dist/bundled/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +2 -2
- package/dist/bundled/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +2 -2
- package/dist/bundled/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -1
- package/dist/bundled/components/OrRichTextEditorV3/utils/codemirror/theme.js +2 -2
- package/dist/bundled/components/OrRichTextEditorV3/utils/markdown.js +1 -1
- package/dist/bundled/components/{OrRichTextEditorV3-e2a5c84e.js → OrRichTextEditorV3-d8f48d58.js} +66 -58
- package/dist/bundled/components/OrRichTooltipV3/OrRichTooltip.js +1 -1
- package/dist/bundled/components/OrRichTooltipV3/index.js +1 -1
- package/dist/bundled/components/OrRichTooltipV3/styles.js +1 -1
- package/dist/bundled/components/{OrRichTooltipV3-fcb3b410.js → OrRichTooltipV3-1c3321db.js} +2 -2
- package/dist/bundled/components/OrSearch/OrSearch.js +1 -1
- package/dist/bundled/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/components/OrSelect/OrSelect.js +1 -1
- package/dist/bundled/components/OrSelect/constants.js +1 -1
- package/dist/bundled/components/OrSelect/index.js +1 -1
- package/dist/bundled/components/{OrSelect-ed5a3c23.js → OrSelect-2966f641.js} +4 -4
- package/dist/bundled/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/components/OrSelectV3/styles.js +1 -1
- package/dist/bundled/components/{OrSelectV3-5af113c8.js → OrSelectV3-54d1c522.js} +8 -8
- package/dist/bundled/components/OrSidebar/index.js +1 -1
- package/dist/bundled/components/OrSidebarV3/OrSidebar.js +1 -1
- package/dist/bundled/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/components/OrSidebarV3/props.js +1 -1
- package/dist/bundled/components/OrSidebarV3/styles.js +2 -2
- package/dist/bundled/components/{OrSidebarV3-7b070833.js → OrSidebarV3-38faaef4.js} +1 -1
- package/dist/bundled/components/OrSkeleton/constants.js +1 -1
- package/dist/bundled/components/OrSkeleton/index.js +1 -1
- package/dist/bundled/components/{OrSkeleton-c5f25223.js → OrSkeleton-05c5f259.js} +2 -2
- package/dist/bundled/components/OrSkeletonCircle/OrSkeletonCircle.js +1 -1
- package/dist/bundled/components/OrSkeletonCircle/index.js +1 -1
- package/dist/bundled/components/OrSkeletonCircleV3/OrSkeletonCircle.js +1 -1
- package/dist/bundled/components/OrSkeletonCircleV3/index.js +1 -1
- package/dist/bundled/components/OrSkeletonRect/OrSkeletonRect.js +1 -1
- package/dist/bundled/components/OrSkeletonRect/index.js +1 -1
- package/dist/bundled/components/OrSkeletonRectV3/OrSkeletonRect.js +1 -1
- package/dist/bundled/components/OrSkeletonRectV3/index.js +1 -1
- package/dist/bundled/components/OrSkeletonText/OrSkeletonText.js +1 -1
- package/dist/bundled/components/OrSkeletonText/index.js +1 -1
- package/dist/bundled/components/OrSkeletonTextV3/OrSkeletonText.js +1 -1
- package/dist/bundled/components/OrSkeletonTextV3/index.js +1 -1
- package/dist/bundled/components/OrSkeletonV3/index.js +1 -1
- package/dist/bundled/components/OrSkeletonV3/styles.js +1 -1
- package/dist/bundled/components/{OrSkeletonV3-39249c5b.js → OrSkeletonV3-6b98d23c.js} +1 -1
- package/dist/bundled/components/OrSlider/OrSlider.js +1 -1
- package/dist/bundled/components/OrSliderV3/OrSlider.js +1 -1
- package/dist/bundled/components/OrSliderV3/index.js +1 -1
- package/dist/bundled/components/OrSliderV3/styles.js +1 -1
- package/dist/bundled/components/{OrSliderV3-33160562.js → OrSliderV3-74e90860.js} +2 -2
- package/dist/bundled/components/OrSortingV3/OrSorting.js +1 -1
- package/dist/bundled/components/OrSortingV3/index.js +1 -1
- package/dist/bundled/components/OrSortingV3/styles.js +1 -1
- package/dist/bundled/components/{OrSortingV3-4a1cf215.js → OrSortingV3-1ffe9d1f.js} +3 -3
- package/dist/bundled/components/OrStatusV3/OrStatus.js +1 -1
- package/dist/bundled/components/OrStatusV3/index.js +1 -1
- package/dist/bundled/components/OrStatusV3/props.js +1 -1
- package/dist/bundled/components/OrStatusV3/styles.js +1 -1
- package/dist/bundled/components/{OrStatusV3-ddbe5ca0.js → OrStatusV3-70689499.js} +1 -1
- package/dist/bundled/components/OrSwitchV3/OrSwitch.js +1 -1
- package/dist/bundled/components/OrSwitchV3/index.js +1 -1
- package/dist/bundled/components/OrSwitchV3/styles.js +1 -1
- package/dist/bundled/components/{OrSwitchV3-690d3eb6.js → OrSwitchV3-89b34d58.js} +1 -1
- package/dist/bundled/components/OrTab/OrTab.js +1 -1
- package/dist/bundled/components/OrTabsV3/OrTabs.js +1 -1
- package/dist/bundled/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/components/OrTabsV3/props.js +1 -1
- package/dist/bundled/components/OrTabsV3/styles.js +1 -1
- package/dist/bundled/components/{OrTabsV3-3e29cee3.js → OrTabsV3-f88f57f3.js} +3 -3
- package/dist/bundled/components/OrTagInputV3/OrTagInput.js +1 -1
- package/dist/bundled/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/components/{OrTagInputV3-1694a1ef.js → OrTagInputV3-cb94103b.js} +5 -5
- package/dist/bundled/components/OrTagV3/OrTag.js +1 -1
- package/dist/bundled/components/OrTagV3/index.js +1 -1
- package/dist/bundled/components/OrTagV3/props.js +1 -1
- package/dist/bundled/components/OrTagV3/styles.js +1 -1
- package/dist/bundled/components/{OrTagV3-8ba58ea6.js → OrTagV3-9e089c18.js} +1 -1
- package/dist/bundled/components/OrTagsV3/OrTags.js +1 -1
- package/dist/bundled/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/components/OrTagsV3/props.js +1 -1
- package/dist/bundled/components/OrTagsV3/styles.js +1 -1
- package/dist/bundled/components/OrTagsV3/utils/castToTag.js +1 -1
- package/dist/bundled/components/{OrTagsV3-3cd4158d.js → OrTagsV3-c9500a75.js} +3 -3
- package/dist/bundled/components/OrTextareaV3/OrTextarea.js +1 -1
- package/dist/bundled/components/OrTextareaV3/index.js +1 -1
- package/dist/bundled/components/OrTextareaV3/styles.js +1 -1
- package/dist/bundled/components/{OrTextareaV3-21b1b686.js → OrTextareaV3-f084a844.js} +1 -1
- package/dist/bundled/components/OrTimeFormatV3/OrTimeFormat.js +1 -1
- package/dist/bundled/components/OrTimeFormatV3/index.js +1 -1
- package/dist/bundled/components/OrTimeFormatV3/styles.js +1 -1
- package/dist/bundled/components/{OrTimeFormatV3-79cafaf6.js → OrTimeFormatV3-1fa3012a.js} +1 -1
- package/dist/bundled/components/OrTimePickerV3/OrTimePicker.js +1 -1
- package/dist/bundled/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/components/OrTimePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrTimePickerV3-7f508d1c.js → OrTimePickerV3-ca7f3fca.js} +3 -3
- package/dist/bundled/components/OrTimeRangePickerV3/OrTimeRangePicker.js +1 -1
- package/dist/bundled/components/OrTimeRangePickerV3/index.js +1 -1
- package/dist/bundled/components/OrTimeRangePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrTimeRangePickerV3-6de9aee5.js → OrTimeRangePickerV3-e2afdbc2.js} +3 -3
- package/dist/bundled/components/OrToast/OrToast.js +1 -1
- package/dist/bundled/components/OrToast/Timer.js +2 -2
- package/dist/bundled/components/OrToast/composable/index.js +1 -1
- package/dist/bundled/components/OrToast/composable/useQueue.js +1 -1
- package/dist/bundled/components/OrToast/composable/useToast.js +1 -1
- package/dist/bundled/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/components/OrToast/constants.js +1 -1
- package/dist/bundled/components/OrToast/index.js +1 -1
- package/dist/bundled/components/{OrToast-01697179.js → OrToast-4c68fa32.js} +2 -2
- package/dist/bundled/components/OrToastContainer/OrToastContainer.js +1 -1
- package/dist/bundled/components/OrToastContainer/index.js +1 -1
- package/dist/bundled/components/OrToastContainerV3/OrToastContainer.js +1 -1
- package/dist/bundled/components/OrToastContainerV3/index.js +1 -1
- package/dist/bundled/components/OrToastV3/OrToast.js +1 -1
- package/dist/bundled/components/OrToastV3/Timer.js +2 -2
- package/dist/bundled/components/OrToastV3/composable/index.js +1 -1
- package/dist/bundled/components/OrToastV3/composable/useQueue.js +1 -1
- package/dist/bundled/components/OrToastV3/composable/useToast.js +1 -1
- package/dist/bundled/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/components/OrToastV3/index.js +1 -1
- package/dist/bundled/components/OrToastV3/props.js +1 -1
- package/dist/bundled/components/OrToastV3/styles.js +1 -1
- package/dist/bundled/components/{OrToastV3-23dce91f.js → OrToastV3-6e469c26.js} +3 -3
- package/dist/bundled/components/OrTooltipV3/OrTooltip.js +1 -1
- package/dist/bundled/components/OrTooltipV3/index.js +1 -1
- package/dist/bundled/components/OrTooltipV3/styles.js +2 -2
- package/dist/bundled/components/{OrTooltipV3-68a4501c.js → OrTooltipV3-c6f787ec.js} +1 -1
- package/dist/bundled/components/OrTreeV3/index.js +1 -1
- package/dist/bundled/components/index.js +65 -65
- package/dist/bundled/hooks/useOverflow.js +1 -1
- package/dist/bundled/hooks/usePopoverState.js +1 -1
- package/dist/bundled/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/index.js +66 -66
- package/dist/bundled/utils/functions/dom.js +3 -3
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/or-menu-item-v3/OrMenuItem.vue.d.ts +10 -1
- package/dist/esm/components/or-menu-item-v3/index.js +34 -15
- package/dist/esm/components/or-menu-item-v3/styles.d.ts +2 -0
- package/dist/esm/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +3 -7
- package/dist/esm/components/or-rich-text-editor-v3/index.js +55 -47
- package/dist/esm/components/or-rich-text-editor-v3/props.d.ts +32 -0
- package/dist/esm/index.js +1 -1
- package/package.json +3 -3
- package/src/components/or-menu-item-v3/OrMenuItem.vue +37 -15
- package/src/components/or-menu-item-v3/styles.ts +14 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +37 -63
- package/src/components/or-rich-text-editor-v3/props.ts +34 -0
- package/src/types/Item.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as get_1 } from '../../components/OrRadio-
|
|
2
|
-
import { _ as _baseGetTag, b as isObjectLike_1 } from '../../components/OrDateTimePicker-
|
|
3
|
-
import { j as _getPrototype } from '../../components/OrList-
|
|
1
|
+
import { g as get_1 } from '../../components/OrRadio-30e01fc0.js';
|
|
2
|
+
import { _ as _baseGetTag, b as isObjectLike_1 } from '../../components/OrDateTimePicker-d1f935ea.js';
|
|
3
|
+
import { j as _getPrototype } from '../../components/OrList-93c6b262.js';
|
|
4
4
|
|
|
5
5
|
var baseGetTag = _baseGetTag,
|
|
6
6
|
getPrototype = _getPrototype,
|
|
@@ -103,7 +103,7 @@ export { OrRadioV3 } from './or-radio-v3/index.js';
|
|
|
103
103
|
export { OrRangeSliderV3 } from './or-range-slider-v3/index.js';
|
|
104
104
|
export { OrRatingV3, RatingVariant } from './or-rating-v3/index.js';
|
|
105
105
|
export { OrResizeablePanelV3, ResizeablePanelPadding, ResizeablePanelPlacement } from './or-resizeable-panel-v3/index.js';
|
|
106
|
-
export { Formats, OrRichTextEditorV3 } from './or-rich-text-editor-v3/index.js';
|
|
106
|
+
export { Formats, OrRichTextEditorV3, RichTextEditorIcons, RichTextEditorTooltips } from './or-rich-text-editor-v3/index.js';
|
|
107
107
|
export { OrRichTooltipV3, RichTooltipBehavior } from './or-rich-tooltip-v3/index.js';
|
|
108
108
|
export { OrSearch } from './or-search/index.js';
|
|
109
109
|
export { OrSearchV3 } from './or-search-v3/index.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { IconVariant } from '../or-icon-v3';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
icon: {
|
|
4
5
|
type: PropType<any>;
|
|
@@ -25,7 +26,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
26
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
26
27
|
tooltip: import("vue").Ref<any>;
|
|
27
28
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
28
|
-
|
|
29
|
+
iconStyles: import("vue").ComputedRef<string[]>;
|
|
30
|
+
isTooltipShown: import("vue").ComputedRef<boolean>;
|
|
31
|
+
iconProps: import("vue").ComputedRef<{
|
|
32
|
+
icon: string;
|
|
33
|
+
variant: IconVariant;
|
|
34
|
+
} | {
|
|
35
|
+
variant: IconVariant;
|
|
36
|
+
icon?: undefined;
|
|
37
|
+
}>;
|
|
29
38
|
isRootVisible: import("vue").Ref<boolean>;
|
|
30
39
|
stop: () => void;
|
|
31
40
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "focus" | "blur" | "close")[], "click" | "focus" | "blur" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock,
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, mergeProps, createCommentVNode, createElementVNode, renderSlot, Fragment, createVNode, withModifiers } from 'vue';
|
|
2
2
|
import { useIntersectionObserver } from '@vueuse/core';
|
|
3
3
|
import { OrIconButtonV3 as script$2 } from '../or-icon-button-v3/index.js';
|
|
4
|
-
import { OrIconV3 as script$1 } from '../or-icon-v3/index.js';
|
|
4
|
+
import { OrIconV3 as script$1, IconVariant } from '../or-icon-v3/index.js';
|
|
5
5
|
import { OrTooltipV3 as script$3 } from '../or-tooltip-v3/index.js';
|
|
6
6
|
import '../../constants-57e8b5da.js';
|
|
7
7
|
import '../../types/index.js';
|
|
@@ -24,6 +24,8 @@ import '../or-popover-v3/utils/index.js';
|
|
|
24
24
|
import '../../isAncestor-905b8d1d.js';
|
|
25
25
|
|
|
26
26
|
const MenuItem = [
|
|
27
|
+
// Group
|
|
28
|
+
'group',
|
|
27
29
|
// Layout
|
|
28
30
|
'layout-row',
|
|
29
31
|
// Spacing
|
|
@@ -42,13 +44,19 @@ const MenuItem = [
|
|
|
42
44
|
'hover:md:theme-foreground-default', 'dark:hover:md:theme-foreground-default-dark',
|
|
43
45
|
// Theme (active)
|
|
44
46
|
'active:theme-foreground-default', 'dark:active:theme-foreground-default-dark'];
|
|
47
|
+
const MenuItemIcon = [
|
|
48
|
+
// Iconography (hover)
|
|
49
|
+
'group-hover:iconography-filled'];
|
|
50
|
+
const MenuItemIconSelected = [
|
|
51
|
+
// Iconography (selected)
|
|
52
|
+
'selected:iconography-filled'];
|
|
45
53
|
|
|
46
54
|
var script = defineComponent({
|
|
47
55
|
name: 'OrMenuItem',
|
|
48
56
|
components: {
|
|
49
57
|
OrIcon: script$1,
|
|
50
58
|
OrIconButton: script$2,
|
|
51
|
-
|
|
59
|
+
OrTooltip: script$3
|
|
52
60
|
},
|
|
53
61
|
props: {
|
|
54
62
|
icon: {
|
|
@@ -74,7 +82,7 @@ var script = defineComponent({
|
|
|
74
82
|
},
|
|
75
83
|
emits: ['click', 'focus', 'blur', 'close'],
|
|
76
84
|
expose: ['root'],
|
|
77
|
-
setup() {
|
|
85
|
+
setup(props) {
|
|
78
86
|
// Refs
|
|
79
87
|
const root = ref();
|
|
80
88
|
const content = ref();
|
|
@@ -89,8 +97,18 @@ var script = defineComponent({
|
|
|
89
97
|
});
|
|
90
98
|
// Styles
|
|
91
99
|
const rootStyles = computed(() => ['or-menu-item-v3', ...MenuItem]);
|
|
92
|
-
|
|
93
|
-
const
|
|
100
|
+
const iconStyles = computed(() => [...MenuItemIcon, ...(props.selected ? MenuItemIconSelected : [])]);
|
|
101
|
+
const iconProps = computed(() => {
|
|
102
|
+
return typeof props.icon === 'string' ? {
|
|
103
|
+
icon: props.icon,
|
|
104
|
+
variant: IconVariant.Inherit
|
|
105
|
+
} : {
|
|
106
|
+
variant: IconVariant.Inherit,
|
|
107
|
+
...props.icon
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
// Tooltip display logic
|
|
111
|
+
const isTooltipShown = computed(() => {
|
|
94
112
|
if (isRootVisible.value) {
|
|
95
113
|
return content.value !== undefined && content.value.clientWidth < content.value.scrollWidth;
|
|
96
114
|
}
|
|
@@ -101,7 +119,9 @@ var script = defineComponent({
|
|
|
101
119
|
root,
|
|
102
120
|
tooltip,
|
|
103
121
|
rootStyles,
|
|
104
|
-
|
|
122
|
+
iconStyles,
|
|
123
|
+
isTooltipShown,
|
|
124
|
+
iconProps,
|
|
105
125
|
isRootVisible,
|
|
106
126
|
stop
|
|
107
127
|
};
|
|
@@ -115,21 +135,20 @@ const _hoisted_2 = /*#__PURE__*/createElementVNode("div", {
|
|
|
115
135
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
116
136
|
const _component_OrIcon = resolveComponent("OrIcon");
|
|
117
137
|
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
118
|
-
const
|
|
138
|
+
const _component_OrTooltip = resolveComponent("OrTooltip");
|
|
119
139
|
return openBlock(), createElementBlock("div", {
|
|
120
140
|
ref: 'root',
|
|
121
141
|
class: normalizeClass(_ctx.rootStyles),
|
|
122
|
-
tabindex: !_ctx.disabled ? 0 :
|
|
142
|
+
tabindex: !_ctx.disabled ? 0 : undefined,
|
|
123
143
|
selected: _ctx.selected,
|
|
124
144
|
disabled: _ctx.disabled,
|
|
125
145
|
onClick: _cache[3] || (_cache[3] = $event => _ctx.$emit('click', $event)),
|
|
126
146
|
onFocus: _cache[4] || (_cache[4] = $event => _ctx.$emit('focus', $event)),
|
|
127
147
|
onBlur: _cache[5] || (_cache[5] = $event => _ctx.$emit('blur', $event))
|
|
128
|
-
}, [_ctx.icon ? (openBlock(), createBlock(_component_OrIcon,
|
|
129
|
-
key: 0
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
} : _ctx.icon)), null, 16 /* FULL_PROPS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
148
|
+
}, [_ctx.icon && _ctx.iconProps.icon ? (openBlock(), createBlock(_component_OrIcon, mergeProps({
|
|
149
|
+
key: 0,
|
|
150
|
+
class: _ctx.iconStyles
|
|
151
|
+
}, _ctx.iconProps), null, 16 /* FULL_PROPS */, ["class"])) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
133
152
|
ref: "content",
|
|
134
153
|
class: normalizeClass(['truncate', 'w-full']),
|
|
135
154
|
onMouseover: _cache[0] || (_cache[0] = $event => _ctx.tooltip && _ctx.tooltip.open()),
|
|
@@ -140,7 +159,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
159
|
icon: 'close',
|
|
141
160
|
disabled: _ctx.disabled,
|
|
142
161
|
onClick: _cache[2] || (_cache[2] = withModifiers($event => _ctx.$emit('close'), ["stop"]))
|
|
143
|
-
}, null, 8 /* PROPS */, ["disabled"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), _ctx.
|
|
162
|
+
}, null, 8 /* PROPS */, ["disabled"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), _ctx.isTooltipShown ? (openBlock(), createBlock(_component_OrTooltip, {
|
|
144
163
|
key: 2,
|
|
145
164
|
ref: "tooltip",
|
|
146
165
|
content: _ctx.tooltipText,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Editor } from '@tiptap/core';
|
|
2
2
|
import { Level } from '@tiptap/extension-heading';
|
|
3
3
|
import { ComponentPublicInstance, PropType } from 'vue';
|
|
4
|
-
import { Formats, Tools } from './props';
|
|
4
|
+
import { Formats, Tools, RichTextEditorIcons, RichTextEditorTooltips } from './props';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
modelValue: {
|
|
7
7
|
type: StringConstructor;
|
|
@@ -62,17 +62,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
textareaRef: import("vue").Ref<HTMLTextAreaElement | undefined>;
|
|
63
63
|
moreRef: import("vue").Ref<any>;
|
|
64
64
|
menuRef: import("vue").Ref<any>;
|
|
65
|
-
iconsEnum: import("vue").Ref<{
|
|
66
|
-
[key: string]: string;
|
|
67
|
-
}>;
|
|
68
65
|
handleToolbarClick: (item: string, level?: number) => void;
|
|
69
66
|
handleEditorClick: () => void;
|
|
70
67
|
isActive: import("vue").Ref<{
|
|
71
68
|
[key: string]: boolean;
|
|
72
69
|
}>;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}>;
|
|
70
|
+
getRichTextEditorIcon: import("vue").ComputedRef<(item: string) => RichTextEditorIcons>;
|
|
71
|
+
getRichTextEditorTooltipIcon: import("vue").ComputedRef<(item: string) => RichTextEditorTooltips>;
|
|
76
72
|
getIndexOfHeading: import("vue").ComputedRef<number>;
|
|
77
73
|
headingLevels: Level[];
|
|
78
74
|
headingIcon: import("vue").ComputedRef<string>;
|
|
@@ -11,7 +11,7 @@ import Underline from '@tiptap/extension-underline';
|
|
|
11
11
|
import StarterKit from '@tiptap/starter-kit';
|
|
12
12
|
import { useResizeObserver, useDebounceFn, onClickOutside } from '@vueuse/core';
|
|
13
13
|
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap';
|
|
14
|
-
import { defineComponent, shallowRef, ref,
|
|
14
|
+
import { defineComponent, shallowRef, ref, onMounted, onBeforeUnmount, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, createElementVNode, Fragment, renderList, withDirectives, vShow, vModelText } from 'vue';
|
|
15
15
|
import '../../dom-11141778.js';
|
|
16
16
|
import { i as isArray } from '../../isArray-135d4ff2.js';
|
|
17
17
|
import { OrButtonV3 as script$1 } from '../or-button-v3/index.js';
|
|
@@ -74,6 +74,40 @@ var Formats;
|
|
|
74
74
|
Formats["Markdown"] = "markdown";
|
|
75
75
|
Formats["Markup"] = "markup";
|
|
76
76
|
})(Formats || (Formats = {}));
|
|
77
|
+
var RichTextEditorIcons;
|
|
78
|
+
(function (RichTextEditorIcons) {
|
|
79
|
+
RichTextEditorIcons["bold"] = "format_bold";
|
|
80
|
+
RichTextEditorIcons["italic"] = "format_italic";
|
|
81
|
+
RichTextEditorIcons["underline"] = "format_underlined";
|
|
82
|
+
RichTextEditorIcons["strike"] = "format_strikethrough";
|
|
83
|
+
RichTextEditorIcons["bulletList"] = "format_list_bulleted";
|
|
84
|
+
RichTextEditorIcons["orderedList"] = "format_list_numbered";
|
|
85
|
+
RichTextEditorIcons["link"] = "link";
|
|
86
|
+
RichTextEditorIcons["highlight"] = "highlight";
|
|
87
|
+
RichTextEditorIcons["redo"] = "redo";
|
|
88
|
+
RichTextEditorIcons["undo"] = "undo";
|
|
89
|
+
RichTextEditorIcons["codeBlock"] = "code_blocks";
|
|
90
|
+
RichTextEditorIcons["blockquote"] = "format_quote";
|
|
91
|
+
RichTextEditorIcons["file"] = "attach_file";
|
|
92
|
+
RichTextEditorIcons["source"] = "source_notes";
|
|
93
|
+
})(RichTextEditorIcons || (RichTextEditorIcons = {}));
|
|
94
|
+
var RichTextEditorTooltips;
|
|
95
|
+
(function (RichTextEditorTooltips) {
|
|
96
|
+
RichTextEditorTooltips["bold"] = "Bold";
|
|
97
|
+
RichTextEditorTooltips["italic"] = "Italic";
|
|
98
|
+
RichTextEditorTooltips["underline"] = "Underline";
|
|
99
|
+
RichTextEditorTooltips["strike"] = "Strike";
|
|
100
|
+
RichTextEditorTooltips["bulletList"] = "Bulleted List";
|
|
101
|
+
RichTextEditorTooltips["orderedList"] = "Numbered List";
|
|
102
|
+
RichTextEditorTooltips["link"] = "Link";
|
|
103
|
+
RichTextEditorTooltips["highlight"] = "Highlight";
|
|
104
|
+
RichTextEditorTooltips["redo"] = "Redo";
|
|
105
|
+
RichTextEditorTooltips["undo"] = "Undo";
|
|
106
|
+
RichTextEditorTooltips["codeBlock"] = "Code Block";
|
|
107
|
+
RichTextEditorTooltips["blockquote"] = "Quote";
|
|
108
|
+
RichTextEditorTooltips["file"] = "File";
|
|
109
|
+
RichTextEditorTooltips["source"] = "Source";
|
|
110
|
+
})(RichTextEditorTooltips || (RichTextEditorTooltips = {}));
|
|
77
111
|
|
|
78
112
|
const RichTextEditor = [
|
|
79
113
|
// Layout
|
|
@@ -281,14 +315,10 @@ var script = defineComponent({
|
|
|
281
315
|
expose: ['root', 'editor'],
|
|
282
316
|
setup(props, context) {
|
|
283
317
|
let editor = shallowRef();
|
|
318
|
+
const controlRef = ref();
|
|
319
|
+
const toolbarRef = ref();
|
|
284
320
|
// Refs & Styles
|
|
285
321
|
const root = ref();
|
|
286
|
-
const rootStyles = computed(() => ['or-rich-text-editor-v3', ...RichTextEditor]);
|
|
287
|
-
const toolbarRef = ref();
|
|
288
|
-
const toolbarStyles = computed(() => [...RichTextEditorToolbar]);
|
|
289
|
-
const toolbarGroupStyles = computed(() => [...RichTextEditorToolbarGroup]);
|
|
290
|
-
const controlRef = ref();
|
|
291
|
-
const controlStyles = computed(() => ['tiptap-editor-v3', ...RichTextEditorControl]);
|
|
292
322
|
const textareaRef = ref();
|
|
293
323
|
const containerRef = ref();
|
|
294
324
|
const moreButtonRef = ref();
|
|
@@ -323,42 +353,9 @@ var script = defineComponent({
|
|
|
323
353
|
const countOfNotVisibleTools = ref(0);
|
|
324
354
|
const sourceValue = ref('');
|
|
325
355
|
let trap = useFocusTrap(controlRef, {
|
|
326
|
-
immediate: true,
|
|
327
356
|
fallbackFocus: '.container',
|
|
328
357
|
allowOutsideClick: true
|
|
329
358
|
});
|
|
330
|
-
const iconsEnum = ref({
|
|
331
|
-
bold: 'format_bold',
|
|
332
|
-
italic: 'format_italic',
|
|
333
|
-
underline: 'format_underlined',
|
|
334
|
-
strike: 'format_strikethrough',
|
|
335
|
-
bulletList: 'format_list_bulleted',
|
|
336
|
-
orderedList: 'format_list_numbered',
|
|
337
|
-
link: 'link',
|
|
338
|
-
highlight: 'highlight',
|
|
339
|
-
redo: 'redo',
|
|
340
|
-
undo: 'undo',
|
|
341
|
-
codeBlock: 'code_blocks',
|
|
342
|
-
blockquote: 'format_quote',
|
|
343
|
-
file: 'attach_file',
|
|
344
|
-
source: 'source_notes'
|
|
345
|
-
});
|
|
346
|
-
const iconTooltipsEnum = ref({
|
|
347
|
-
bold: 'Bold',
|
|
348
|
-
italic: 'Italic',
|
|
349
|
-
underline: 'Underline',
|
|
350
|
-
strike: 'Strike',
|
|
351
|
-
bulletList: 'Bulleted List',
|
|
352
|
-
orderedList: 'Numbered List',
|
|
353
|
-
link: 'Link',
|
|
354
|
-
highlight: 'Highlight',
|
|
355
|
-
redo: 'Redo',
|
|
356
|
-
undo: 'Undo',
|
|
357
|
-
codeBlock: 'Code Block',
|
|
358
|
-
blockquote: 'Quote',
|
|
359
|
-
file: 'File',
|
|
360
|
-
source: 'Source'
|
|
361
|
-
});
|
|
362
359
|
useResizeObserver(root, useDebounceFn(entries => {
|
|
363
360
|
var _a, _b;
|
|
364
361
|
const entry = entries[0];
|
|
@@ -482,6 +479,12 @@ var script = defineComponent({
|
|
|
482
479
|
const getIndexOfHeading = computed(() => {
|
|
483
480
|
return props.toolbar.flat().indexOf('heading');
|
|
484
481
|
});
|
|
482
|
+
const getRichTextEditorIcon = computed(() => item => {
|
|
483
|
+
return RichTextEditorIcons[item];
|
|
484
|
+
});
|
|
485
|
+
const getRichTextEditorTooltipIcon = computed(() => item => {
|
|
486
|
+
return RichTextEditorTooltips[item];
|
|
487
|
+
});
|
|
485
488
|
const headingIcon = computed(() => {
|
|
486
489
|
if (activeHeadingLevel.value && isActive.value.heading) {
|
|
487
490
|
return `format_h${activeHeadingLevel.value}`;
|
|
@@ -652,6 +655,11 @@ var script = defineComponent({
|
|
|
652
655
|
}
|
|
653
656
|
editor === null || editor === void 0 ? void 0 : editor.setEditable(!disabled);
|
|
654
657
|
});
|
|
658
|
+
// Styles
|
|
659
|
+
const rootStyles = computed(() => ['or-rich-text-editor-v3', ...RichTextEditor]);
|
|
660
|
+
const toolbarStyles = computed(() => [...RichTextEditorToolbar]);
|
|
661
|
+
const toolbarGroupStyles = computed(() => [...RichTextEditorToolbarGroup]);
|
|
662
|
+
const controlStyles = computed(() => ['tiptap-editor-v3', ...RichTextEditorControl]);
|
|
655
663
|
return {
|
|
656
664
|
root,
|
|
657
665
|
rootStyles,
|
|
@@ -667,11 +675,11 @@ var script = defineComponent({
|
|
|
667
675
|
textareaRef,
|
|
668
676
|
moreRef,
|
|
669
677
|
menuRef,
|
|
670
|
-
iconsEnum,
|
|
671
678
|
handleToolbarClick,
|
|
672
679
|
handleEditorClick,
|
|
673
680
|
isActive,
|
|
674
|
-
|
|
681
|
+
getRichTextEditorIcon,
|
|
682
|
+
getRichTextEditorTooltipIcon,
|
|
675
683
|
getIndexOfHeading,
|
|
676
684
|
headingLevels,
|
|
677
685
|
headingIcon,
|
|
@@ -774,11 +782,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
774
782
|
}, null, 8 /* PROPS */, ["icon", "tooltip", "selected", "disabled"])) : _ctx.isVisible(item) ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
775
783
|
key: 1,
|
|
776
784
|
icon: {
|
|
777
|
-
icon: _ctx.
|
|
785
|
+
icon: _ctx.getRichTextEditorIcon(item),
|
|
778
786
|
variant: 'inherit'
|
|
779
787
|
},
|
|
780
788
|
tooltip: {
|
|
781
|
-
content: _ctx.
|
|
789
|
+
content: _ctx.getRichTextEditorTooltipIcon(item),
|
|
782
790
|
placement: 'top'
|
|
783
791
|
},
|
|
784
792
|
selected: _ctx.isActive[item],
|
|
@@ -828,11 +836,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
828
836
|
return openBlock(), createBlock(_component_OrIconButton, {
|
|
829
837
|
key: item,
|
|
830
838
|
icon: {
|
|
831
|
-
icon: _ctx.
|
|
839
|
+
icon: _ctx.getRichTextEditorIcon(item),
|
|
832
840
|
variant: 'inherit'
|
|
833
841
|
},
|
|
834
842
|
tooltip: {
|
|
835
|
-
content: _ctx.
|
|
843
|
+
content: _ctx.getRichTextEditorTooltipIcon(item),
|
|
836
844
|
placement: 'top'
|
|
837
845
|
},
|
|
838
846
|
selected: _ctx.isActive[item],
|
|
@@ -902,4 +910,4 @@ styleInject(css_248z);
|
|
|
902
910
|
script.render = render;
|
|
903
911
|
script.__file = "src/components/or-rich-text-editor-v3/OrRichTextEditor.vue";
|
|
904
912
|
|
|
905
|
-
export { Formats, script as OrRichTextEditorV3 };
|
|
913
|
+
export { Formats, script as OrRichTextEditorV3, RichTextEditorIcons, RichTextEditorTooltips };
|
|
@@ -3,3 +3,35 @@ export declare enum Formats {
|
|
|
3
3
|
Markup = "markup"
|
|
4
4
|
}
|
|
5
5
|
export type Tools = string[][];
|
|
6
|
+
export declare enum RichTextEditorIcons {
|
|
7
|
+
bold = "format_bold",
|
|
8
|
+
italic = "format_italic",
|
|
9
|
+
underline = "format_underlined",
|
|
10
|
+
strike = "format_strikethrough",
|
|
11
|
+
bulletList = "format_list_bulleted",
|
|
12
|
+
orderedList = "format_list_numbered",
|
|
13
|
+
link = "link",
|
|
14
|
+
highlight = "highlight",
|
|
15
|
+
redo = "redo",
|
|
16
|
+
undo = "undo",
|
|
17
|
+
codeBlock = "code_blocks",
|
|
18
|
+
blockquote = "format_quote",
|
|
19
|
+
file = "attach_file",
|
|
20
|
+
source = "source_notes"
|
|
21
|
+
}
|
|
22
|
+
export declare enum RichTextEditorTooltips {
|
|
23
|
+
bold = "Bold",
|
|
24
|
+
italic = "Italic",
|
|
25
|
+
underline = "Underline",
|
|
26
|
+
strike = "Strike",
|
|
27
|
+
bulletList = "Bulleted List",
|
|
28
|
+
orderedList = "Numbered List",
|
|
29
|
+
link = "Link",
|
|
30
|
+
highlight = "Highlight",
|
|
31
|
+
redo = "Redo",
|
|
32
|
+
undo = "Undo",
|
|
33
|
+
codeBlock = "Code Block",
|
|
34
|
+
blockquote = "Quote",
|
|
35
|
+
file = "File",
|
|
36
|
+
source = "Source"
|
|
37
|
+
}
|
package/dist/esm/index.js
CHANGED
|
@@ -103,7 +103,7 @@ export { OrRadioV3 } from './components/or-radio-v3/index.js';
|
|
|
103
103
|
export { OrRangeSliderV3 } from './components/or-range-slider-v3/index.js';
|
|
104
104
|
export { OrRatingV3, RatingVariant } from './components/or-rating-v3/index.js';
|
|
105
105
|
export { OrResizeablePanelV3, ResizeablePanelPadding, ResizeablePanelPlacement } from './components/or-resizeable-panel-v3/index.js';
|
|
106
|
-
export { Formats, OrRichTextEditorV3 } from './components/or-rich-text-editor-v3/index.js';
|
|
106
|
+
export { Formats, OrRichTextEditorV3, RichTextEditorIcons, RichTextEditorTooltips } from './components/or-rich-text-editor-v3/index.js';
|
|
107
107
|
export { OrRichTooltipV3, RichTooltipBehavior } from './components/or-rich-tooltip-v3/index.js';
|
|
108
108
|
export { OrSearch } from './components/or-search/index.js';
|
|
109
109
|
export { OrSearchV3 } from './components/or-search-v3/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "18.4.
|
|
3
|
+
"version": "18.4.2",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@codemirror/view": "^6",
|
|
34
34
|
"@floating-ui/dom": "1.5.3",
|
|
35
35
|
"@lezer/highlight": "*",
|
|
36
|
-
"@onereach/styles": "^18.4.
|
|
36
|
+
"@onereach/styles": "^18.4.2",
|
|
37
37
|
"@splidejs/splide": "4.0.6",
|
|
38
38
|
"@tiptap/core": "2.0.3",
|
|
39
39
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
},
|
|
142
142
|
"./package.json": "./package.json"
|
|
143
143
|
},
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "c22551ce5da2acc781045646793561b99225f026"
|
|
145
145
|
}
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
<div
|
|
3
3
|
:ref="'root'"
|
|
4
4
|
:class="rootStyles"
|
|
5
|
-
:tabindex="!disabled ? 0 :
|
|
5
|
+
:tabindex="!disabled ? 0 : undefined"
|
|
6
6
|
:selected="selected"
|
|
7
7
|
:disabled="disabled"
|
|
8
8
|
@click="$emit('click', $event)"
|
|
9
9
|
@focus="$emit('focus', $event)"
|
|
10
10
|
@blur="$emit('blur', $event)"
|
|
11
11
|
>
|
|
12
|
-
<template v-if="icon">
|
|
13
|
-
<OrIcon
|
|
12
|
+
<template v-if="icon && iconProps.icon">
|
|
13
|
+
<OrIcon
|
|
14
|
+
:class="iconStyles"
|
|
15
|
+
v-bind="iconProps"
|
|
16
|
+
/>
|
|
14
17
|
</template>
|
|
15
18
|
<div
|
|
16
19
|
ref="content"
|
|
@@ -30,8 +33,8 @@
|
|
|
30
33
|
@click.stop="$emit('close')"
|
|
31
34
|
/>
|
|
32
35
|
</template>
|
|
33
|
-
<
|
|
34
|
-
v-if="
|
|
36
|
+
<OrTooltip
|
|
37
|
+
v-if="isTooltipShown"
|
|
35
38
|
ref="tooltip"
|
|
36
39
|
:content="tooltipText"
|
|
37
40
|
:trigger="root"
|
|
@@ -44,9 +47,9 @@ import { computed, defineComponent, PropType, ref } from 'vue';
|
|
|
44
47
|
import { useIntersectionObserver } from '@vueuse/core';
|
|
45
48
|
|
|
46
49
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
47
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
48
|
-
import { OrTooltipV3 as
|
|
49
|
-
import
|
|
50
|
+
import { IconVariant, OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
51
|
+
import { OrTooltipV3 as OrTooltip } from '../or-tooltip-v3';
|
|
52
|
+
import * as Styles from './styles';
|
|
50
53
|
|
|
51
54
|
export default defineComponent({
|
|
52
55
|
name: 'OrMenuItem',
|
|
@@ -54,7 +57,7 @@ export default defineComponent({
|
|
|
54
57
|
components: {
|
|
55
58
|
OrIcon,
|
|
56
59
|
OrIconButton,
|
|
57
|
-
|
|
60
|
+
OrTooltip,
|
|
58
61
|
},
|
|
59
62
|
|
|
60
63
|
props: {
|
|
@@ -96,11 +99,11 @@ export default defineComponent({
|
|
|
96
99
|
'root',
|
|
97
100
|
],
|
|
98
101
|
|
|
99
|
-
setup() {
|
|
102
|
+
setup(props) {
|
|
100
103
|
// Refs
|
|
101
104
|
const root = ref<HTMLElement>();
|
|
102
105
|
const content = ref<HTMLDivElement>();
|
|
103
|
-
const tooltip = ref<InstanceType<typeof
|
|
106
|
+
const tooltip = ref<InstanceType<typeof OrTooltip>>();
|
|
104
107
|
const isRootVisible = ref(false);
|
|
105
108
|
const { stop } = useIntersectionObserver(root, ([{ isIntersecting }]) => {
|
|
106
109
|
isRootVisible.value = isIntersecting;
|
|
@@ -109,11 +112,28 @@ export default defineComponent({
|
|
|
109
112
|
// Styles
|
|
110
113
|
const rootStyles = computed(() => [
|
|
111
114
|
'or-menu-item-v3',
|
|
112
|
-
...MenuItem,
|
|
115
|
+
...Styles.MenuItem,
|
|
116
|
+
]);
|
|
117
|
+
|
|
118
|
+
const iconStyles = computed(() => [
|
|
119
|
+
...Styles.MenuItemIcon,
|
|
120
|
+
...props.selected ? Styles.MenuItemIconSelected : [],
|
|
113
121
|
]);
|
|
114
122
|
|
|
115
|
-
|
|
116
|
-
|
|
123
|
+
const iconProps = computed(() => {
|
|
124
|
+
return typeof props.icon === 'string'
|
|
125
|
+
? {
|
|
126
|
+
icon: props.icon,
|
|
127
|
+
variant: IconVariant.Inherit,
|
|
128
|
+
}
|
|
129
|
+
: {
|
|
130
|
+
variant: IconVariant.Inherit,
|
|
131
|
+
...(props.icon as object),
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// Tooltip display logic
|
|
136
|
+
const isTooltipShown = computed<boolean>(() => {
|
|
117
137
|
if (isRootVisible.value) {
|
|
118
138
|
return content.value !== undefined && content.value.clientWidth < content.value.scrollWidth;
|
|
119
139
|
}
|
|
@@ -125,7 +145,9 @@ export default defineComponent({
|
|
|
125
145
|
root,
|
|
126
146
|
tooltip,
|
|
127
147
|
rootStyles,
|
|
128
|
-
|
|
148
|
+
iconStyles,
|
|
149
|
+
isTooltipShown,
|
|
150
|
+
iconProps,
|
|
129
151
|
isRootVisible,
|
|
130
152
|
stop,
|
|
131
153
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export const MenuItem: string[] = [
|
|
2
|
+
// Group
|
|
3
|
+
'group',
|
|
4
|
+
|
|
2
5
|
// Layout
|
|
3
6
|
'layout-row',
|
|
4
7
|
|
|
@@ -31,6 +34,7 @@ export const MenuItem: string[] = [
|
|
|
31
34
|
'selected:bg-primary-opacity-0-08',
|
|
32
35
|
'dark:selected:bg-primary-opacity-0-08-dark',
|
|
33
36
|
|
|
37
|
+
|
|
34
38
|
// Theme (hover)
|
|
35
39
|
'hover:md:theme-foreground-default',
|
|
36
40
|
'dark:hover:md:theme-foreground-default-dark',
|
|
@@ -39,3 +43,13 @@ export const MenuItem: string[] = [
|
|
|
39
43
|
'active:theme-foreground-default',
|
|
40
44
|
'dark:active:theme-foreground-default-dark',
|
|
41
45
|
];
|
|
46
|
+
|
|
47
|
+
export const MenuItemIcon: string[] = [
|
|
48
|
+
// Iconography (hover)
|
|
49
|
+
'group-hover:iconography-filled',
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
export const MenuItemIconSelected: string[] = [
|
|
53
|
+
// Iconography (selected)
|
|
54
|
+
'selected:iconography-filled',
|
|
55
|
+
];
|