@onereach/ui-components 2.62.3-beta.1902.0 → 2.63.0-beta.1894.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/v2/{OrConfirm-f3aed6d3.js → OrConfirm-8d149ece.js} +1 -1
- package/dist/v2/{OrIconButton-94c69467.js → OrIconButton-5883eba0.js} +2 -2
- package/dist/v2/{OrInlineInput-50da2b1f.js → OrInlineInput-16a343c1.js} +1 -1
- package/dist/v2/{OrInlineTextarea-94253b64.js → OrInlineTextarea-f154bdf5.js} +1 -1
- package/dist/v2/{OrInput-040147f3.js → OrInput-4a50fe57.js} +1 -1
- package/dist/v2/{OrModal-e4439825.js → OrModal-64c5ae2e.js} +1 -1
- package/dist/v2/{OrNotification-be6132e6.js → OrNotification-9c164908.js} +1 -1
- package/dist/v2/{OrSearch-375ad422.js → OrSearch-a247f072.js} +1 -1
- package/dist/v2/{OrSelect-846e9a87.js → OrSelect-bb223cce.js} +2 -2
- package/dist/v2/{OrTag-02320f5f.js → OrTag-ab03c4f7.js} +1 -1
- package/dist/v2/{OrTooltip-afe7030b.js → OrTooltip-caeac590.js} +3 -33
- package/dist/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +111 -0
- package/dist/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/v2/components/or-rich-text-editor-v3/styles.d.ts +7 -0
- package/dist/v2/components/or-tooltip-v3/styles.d.ts +0 -2
- package/dist/v2/index.js +12 -12
- package/dist/v2/index2.js +12 -12
- package/dist/v2/index20.js +4 -4
- package/dist/v2/index31.js +2 -2
- package/dist/v2/index34.js +3 -3
- package/dist/v2/index36.js +3 -3
- package/dist/v2/index38.js +3 -3
- package/dist/v2/index50.js +3 -3
- package/dist/v2/index52.js +3 -3
- package/dist/v2/index62.js +306 -12
- package/dist/v2/index63.js +18 -15
- package/dist/v2/index64.js +15 -23
- package/dist/v2/index65.js +25 -4
- package/dist/v2/index66.js +2 -1
- package/dist/v2/index67.js +3 -4
- package/dist/v2/index68.js +3 -4
- package/dist/v2/index69.js +3 -10
- package/dist/v2/index70.js +3 -6
- package/dist/v2/index71.js +13 -2
- package/dist/v2/index72.js +4 -6
- package/dist/v2/index73.js +6 -4
- package/dist/v2/index74.js +2 -1
- package/dist/v2/index75.js +3 -3
- package/dist/v2/index76.js +3 -4
- package/dist/v2/index77.js +4 -15
- package/dist/v2/index78.js +14 -11
- package/dist/v2/index79.js +11 -13
- package/dist/v2/index80.js +14 -2
- package/dist/v2/index81.js +2 -2
- package/dist/v2/index82.js +2 -3
- package/dist/v2/index83.js +1 -6
- package/dist/v2/index84.js +7 -20
- package/dist/v2/index85.js +12 -9
- package/dist/v2/index86.js +18 -1
- package/dist/v2/index87.js +2 -18
- package/dist/v2/index88.js +18 -2
- package/dist/v2/index89.js +2 -10
- package/dist/v2/index90.js +9 -11
- package/dist/v2/index91.js +12 -6
- package/dist/v2/index92.js +5 -1
- package/dist/v2/index93.js +3 -0
- package/dist/v2/{types-dd4c7282.js → types-fb93ea4e.js} +1 -1
- package/dist/v3/{OrConfirm-58aa4260.js → OrConfirm-456ddee1.js} +1 -1
- package/dist/v3/{OrIconButton-eef9eb43.js → OrIconButton-b8066b5d.js} +2 -2
- package/dist/v3/{OrInlineInput-0c87838c.js → OrInlineInput-280768ba.js} +1 -1
- package/dist/v3/{OrInlineTextarea-d50f03b7.js → OrInlineTextarea-0f63f344.js} +1 -1
- package/dist/v3/{OrInput-d34c8571.js → OrInput-3eef7945.js} +1 -1
- package/dist/v3/{OrModal-179f5a1a.js → OrModal-f67d37d3.js} +1 -1
- package/dist/v3/{OrNotification-4a0dc24a.js → OrNotification-fefa1cb4.js} +1 -1
- package/dist/v3/{OrSearch-95d4e098.js → OrSearch-15a70678.js} +1 -1
- package/dist/v3/{OrSelect-32f188bd.js → OrSelect-63ada65d.js} +2 -2
- package/dist/v3/{OrTag-d1f3a0d0.js → OrTag-144b4ab8.js} +1 -1
- package/dist/v3/{OrTooltip-36c6728c.js → OrTooltip-30e05f9e.js} +3 -33
- package/dist/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +111 -0
- package/dist/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/v3/components/or-rich-text-editor-v3/styles.d.ts +7 -0
- package/dist/v3/components/or-tooltip-v3/styles.d.ts +0 -2
- package/dist/v3/index.js +12 -12
- package/dist/v3/index2.js +12 -12
- package/dist/v3/index20.js +4 -4
- package/dist/v3/index31.js +2 -2
- package/dist/v3/index34.js +3 -3
- package/dist/v3/index36.js +3 -3
- package/dist/v3/index38.js +3 -3
- package/dist/v3/index50.js +3 -3
- package/dist/v3/index52.js +3 -3
- package/dist/v3/index62.js +280 -12
- package/dist/v3/index63.js +17 -14
- package/dist/v3/index64.js +13 -21
- package/dist/v3/index65.js +23 -3
- package/dist/v3/index66.js +2 -1
- package/dist/v3/index67.js +3 -4
- package/dist/v3/index68.js +3 -4
- package/dist/v3/index69.js +3 -9
- package/dist/v3/index70.js +3 -4
- package/dist/v3/index71.js +10 -2
- package/dist/v3/index72.js +3 -5
- package/dist/v3/index73.js +5 -3
- package/dist/v3/index74.js +2 -1
- package/dist/v3/index75.js +3 -3
- package/dist/v3/index76.js +3 -4
- package/dist/v3/index77.js +4 -14
- package/dist/v3/index78.js +13 -10
- package/dist/v3/index79.js +10 -12
- package/dist/v3/index80.js +13 -1
- package/dist/v3/index81.js +1 -1
- package/dist/v3/index82.js +1 -3
- package/dist/v3/index83.js +1 -6
- package/dist/v3/index84.js +6 -16
- package/dist/v3/index85.js +12 -9
- package/dist/v3/index86.js +15 -1
- package/dist/v3/index87.js +2 -17
- package/dist/v3/index88.js +17 -2
- package/dist/v3/index89.js +2 -8
- package/dist/v3/index90.js +6 -9
- package/dist/v3/index91.js +11 -6
- package/dist/v3/index92.js +5 -1
- package/dist/v3/index93.js +3 -0
- package/dist/v3/{types-8ff779b1.js → types-a2a8f948.js} +1 -1
- package/package.json +7 -1
- package/src/components/or-avatar-v3/OrAvatar.docs.mdx +0 -4
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.docs.mdx +0 -4
- package/src/components/or-button-v3/OrButton.docs.mdx +0 -4
- package/src/components/or-card-v3/OrCard.docs.mdx +0 -4
- package/src/components/or-checkbox-v3/OrCheckbox.docs.mdx +0 -4
- package/src/components/or-confirm-v3/OrConfirm.docs.mdx +0 -4
- package/src/components/or-error-tag-v3/OrErrorTag.docs.mdx +0 -5
- package/src/components/or-error-v3/OrError.docs.mdx +0 -4
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.docs.mdx +0 -4
- package/src/components/or-fab-v3/OrFab.docs.mdx +0 -4
- package/src/components/or-hint-v3/OrHint.docs.mdx +0 -4
- package/src/components/or-icon-button-v3/OrIconButton.docs.mdx +0 -4
- package/src/components/or-icon-button-v3/styles.ts +1 -0
- package/src/components/or-icon-v3/OrIcon.docs.mdx +0 -4
- package/src/components/or-inline-input-v3/OrInlineInput.docs.mdx +0 -4
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.docs.mdx +0 -4
- package/src/components/or-input-v3/OrInput.docs.mdx +0 -4
- package/src/components/or-label-v3/OrLabel.docs.mdx +0 -4
- package/src/components/or-link-v3/OrLink.docs.mdx +0 -4
- package/src/components/or-loader-v3/OrLoader.docs.mdx +0 -4
- package/src/components/or-menu-item-v3/OrMenuItem.docs.mdx +0 -4
- package/src/components/or-menu-v3/OrMenu.docs.mdx +0 -4
- package/src/components/or-modal-v3/OrModal.docs.mdx +0 -4
- package/src/components/or-notification-v3/OrNotification.docs.mdx +0 -4
- package/src/components/or-overlay-v3/OrOverlay.docs.mdx +0 -4
- package/src/components/or-popover-v3/OrPopover.docs.mdx +0 -4
- package/src/components/or-progress-v3/OrProgress.docs.mdx +0 -4
- package/src/components/or-radio-v3/OrRadio.docs.mdx +0 -4
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +16 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +57 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +295 -0
- package/src/components/or-rich-text-editor-v3/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +71 -0
- package/src/components/or-search-v3/OrSearch.docs.mdx +0 -4
- package/src/components/or-select-v3/OrSelect.docs.mdx +0 -4
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -4
- package/src/components/or-skeleton-v3/OrSkeleton.docs.mdx +0 -8
- package/src/components/or-switch-v3/OrSwitch.docs.mdx +0 -4
- package/src/components/or-tab-v3/OrTab.docs.mdx +0 -4
- package/src/components/or-tabs-v3/OrTabs.docs.mdx +0 -4
- package/src/components/or-tag-v3/OrTag.docs.mdx +0 -4
- package/src/components/or-teleport-v3/OrTeleport.docs.mdx +0 -4
- package/src/components/or-text-v3/OrText.docs.mdx +0 -4
- package/src/components/or-textarea-v3/OrTextarea.docs.mdx +0 -4
- package/src/components/or-tooltip-v3/OrTooltip.docs.mdx +0 -3
- package/src/components/or-tooltip-v3/OrTooltip.vue +2 -3
- package/src/components/or-tooltip-v3/styles.ts +0 -55
package/dist/v3/index.js
CHANGED
|
@@ -15,7 +15,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-feeec003.js';
|
|
|
15
15
|
export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
|
|
16
16
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-0a944d25.js';
|
|
17
17
|
export { s as OrConfirm } from './OrConfirm-00134f53.js';
|
|
18
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
18
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-456ddee1.js';
|
|
19
19
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-6c79a764.js';
|
|
20
20
|
export { s as OrError } from './OrError-f90296db.js';
|
|
21
21
|
export { s as OrErrorTagV3 } from './OrErrorTag-ceefd643.js';
|
|
@@ -26,14 +26,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
|
|
|
26
26
|
export { s as OrHint } from './OrHint-1414c530.js';
|
|
27
27
|
export { s as OrHintV3 } from './OrHint-73835593.js';
|
|
28
28
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-e23028f8.js';
|
|
29
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
29
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-b8066b5d.js';
|
|
30
30
|
export { a as IconSize, I as IconVariant, s as OrIconV3 } from './OrIcon-b3906e35.js';
|
|
31
31
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-1b473796.js';
|
|
32
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
32
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-280768ba.js';
|
|
33
33
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-455a2d64.js';
|
|
34
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
34
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-0f63f344.js';
|
|
35
35
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-634230b1.js';
|
|
36
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
36
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-3eef7945.js';
|
|
37
37
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-2874026c.js';
|
|
38
38
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
39
39
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-7d4fe80b.js';
|
|
@@ -46,9 +46,9 @@ export { s as OrMenuItemV3 } from './OrMenuItem-8773d073.js';
|
|
|
46
46
|
export { s as OrMenuV3 } from './OrMenu-75ef8635.js';
|
|
47
47
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-3525c670.js';
|
|
48
48
|
export { s as OrModal, O as OrModalSizes } from './OrModal-75c8e5b6.js';
|
|
49
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
49
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-f67d37d3.js';
|
|
50
50
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-38664729.js';
|
|
51
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
51
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-fefa1cb4.js';
|
|
52
52
|
export { s as OrOverflowMenu } from './OrOverflowMenu-7a177537.js';
|
|
53
53
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
54
54
|
export { s as OrOverlayV3 } from './OrOverlay-27050c19.js';
|
|
@@ -57,9 +57,9 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
57
57
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
58
58
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
59
59
|
export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
|
|
60
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
60
|
+
export { s as OrSearchV3 } from './OrSearch-15a70678.js';
|
|
61
61
|
export { s as OrSelect } from './OrSelect-056731af.js';
|
|
62
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
62
|
+
export { s as OrSelectV3 } from './OrSelect-63ada65d.js';
|
|
63
63
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
64
64
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
65
65
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -74,7 +74,7 @@ export { s as OrTabV3 } from './OrTab-97044946.js';
|
|
|
74
74
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
75
75
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
|
|
76
76
|
export { s as OrTag } from './OrTag-7e24fdbc.js';
|
|
77
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
77
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-144b4ab8.js';
|
|
78
78
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
79
79
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
80
80
|
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
|
@@ -82,10 +82,10 @@ export { s as OrTextareaV3 } from './OrTextarea-09aa33dc.js';
|
|
|
82
82
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
|
|
83
83
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
|
|
84
84
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
85
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
85
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-a2a8f948.js';
|
|
86
86
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
87
87
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-121eae2b.js';
|
|
88
|
-
export { s as OrTooltipV3 } from './OrTooltip-
|
|
88
|
+
export { s as OrTooltipV3 } from './OrTooltip-30e05f9e.js';
|
|
89
89
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
90
90
|
export { u as useElevation } from './useElevation-0e973238.js';
|
|
91
91
|
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
package/dist/v3/index2.js
CHANGED
|
@@ -15,7 +15,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-feeec003.js';
|
|
|
15
15
|
export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
|
|
16
16
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-0a944d25.js';
|
|
17
17
|
export { s as OrConfirm } from './OrConfirm-00134f53.js';
|
|
18
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
18
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-456ddee1.js';
|
|
19
19
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-6c79a764.js';
|
|
20
20
|
export { s as OrError } from './OrError-f90296db.js';
|
|
21
21
|
export { s as OrErrorTagV3 } from './OrErrorTag-ceefd643.js';
|
|
@@ -26,14 +26,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
|
|
|
26
26
|
export { s as OrHint } from './OrHint-1414c530.js';
|
|
27
27
|
export { s as OrHintV3 } from './OrHint-73835593.js';
|
|
28
28
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-e23028f8.js';
|
|
29
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
29
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-b8066b5d.js';
|
|
30
30
|
export { a as IconSize, I as IconVariant, s as OrIconV3 } from './OrIcon-b3906e35.js';
|
|
31
31
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-1b473796.js';
|
|
32
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
32
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-280768ba.js';
|
|
33
33
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-455a2d64.js';
|
|
34
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
34
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-0f63f344.js';
|
|
35
35
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-634230b1.js';
|
|
36
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
36
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-3eef7945.js';
|
|
37
37
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-2874026c.js';
|
|
38
38
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
39
39
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-7d4fe80b.js';
|
|
@@ -46,9 +46,9 @@ export { s as OrMenuItemV3 } from './OrMenuItem-8773d073.js';
|
|
|
46
46
|
export { s as OrMenuV3 } from './OrMenu-75ef8635.js';
|
|
47
47
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-3525c670.js';
|
|
48
48
|
export { s as OrModal, O as OrModalSizes } from './OrModal-75c8e5b6.js';
|
|
49
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
49
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-f67d37d3.js';
|
|
50
50
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-38664729.js';
|
|
51
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
51
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-fefa1cb4.js';
|
|
52
52
|
export { s as OrOverflowMenu } from './OrOverflowMenu-7a177537.js';
|
|
53
53
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
54
54
|
export { s as OrOverlayV3 } from './OrOverlay-27050c19.js';
|
|
@@ -57,9 +57,9 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
57
57
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
58
58
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
59
59
|
export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
|
|
60
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
60
|
+
export { s as OrSearchV3 } from './OrSearch-15a70678.js';
|
|
61
61
|
export { s as OrSelect } from './OrSelect-056731af.js';
|
|
62
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
62
|
+
export { s as OrSelectV3 } from './OrSelect-63ada65d.js';
|
|
63
63
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
64
64
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
65
65
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -74,7 +74,7 @@ export { s as OrTabV3 } from './OrTab-97044946.js';
|
|
|
74
74
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
75
75
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
|
|
76
76
|
export { s as OrTag } from './OrTag-7e24fdbc.js';
|
|
77
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
77
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-144b4ab8.js';
|
|
78
78
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
79
79
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
80
80
|
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
|
@@ -82,10 +82,10 @@ export { s as OrTextareaV3 } from './OrTextarea-09aa33dc.js';
|
|
|
82
82
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
|
|
83
83
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
|
|
84
84
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
85
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
85
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-a2a8f948.js';
|
|
86
86
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
87
87
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-121eae2b.js';
|
|
88
|
-
export { s as OrTooltipV3 } from './OrTooltip-
|
|
88
|
+
export { s as OrTooltipV3 } from './OrTooltip-30e05f9e.js';
|
|
89
89
|
import 'vue-demi';
|
|
90
90
|
import 'lodash';
|
|
91
91
|
import 'vue';
|
package/dist/v3/index20.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-456ddee1.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './OrButton-12b36e89.js';
|
|
4
4
|
import './useClassAttribute-47fdb016.js';
|
|
@@ -8,12 +8,12 @@ import 'vue';
|
|
|
8
8
|
import './OrOverlay-27050c19.js';
|
|
9
9
|
import './useElevation-0e973238.js';
|
|
10
10
|
import './OrTeleport.vue3-8099178c.js';
|
|
11
|
-
import './OrInput-
|
|
11
|
+
import './OrInput-3eef7945.js';
|
|
12
12
|
import './OrError-19a62a18.js';
|
|
13
13
|
import './OrHint-73835593.js';
|
|
14
|
-
import './OrIconButton-
|
|
14
|
+
import './OrIconButton-b8066b5d.js';
|
|
15
15
|
import './OrIcon-b3906e35.js';
|
|
16
|
-
import './OrTooltip-
|
|
16
|
+
import './OrTooltip-30e05f9e.js';
|
|
17
17
|
import './OrPopover-3525c670.js';
|
|
18
18
|
import '@floating-ui/dom';
|
|
19
19
|
import './useResponsive-a02e95b7.js';
|
package/dist/v3/index31.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
1
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-b8066b5d.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import './OrIcon-b3906e35.js';
|
|
6
6
|
import 'vue';
|
|
7
|
-
import './OrTooltip-
|
|
7
|
+
import './OrTooltip-30e05f9e.js';
|
|
8
8
|
import './OrPopover-3525c670.js';
|
|
9
9
|
import '@floating-ui/dom';
|
|
10
10
|
import './useElevation-0e973238.js';
|
package/dist/v3/index34.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
1
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-280768ba.js';
|
|
2
2
|
export { I as InlineInputSize } from './OrInlineInputBox-1b473796.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './useClassAttribute-47fdb016.js';
|
|
@@ -6,9 +6,9 @@ import '@vueuse/core';
|
|
|
6
6
|
import './OrError-19a62a18.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import './OrHint-73835593.js';
|
|
9
|
-
import './OrIconButton-
|
|
9
|
+
import './OrIconButton-b8066b5d.js';
|
|
10
10
|
import './OrIcon-b3906e35.js';
|
|
11
|
-
import './OrTooltip-
|
|
11
|
+
import './OrTooltip-30e05f9e.js';
|
|
12
12
|
import './OrPopover-3525c670.js';
|
|
13
13
|
import '@floating-ui/dom';
|
|
14
14
|
import './useElevation-0e973238.js';
|
package/dist/v3/index36.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
1
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-0f63f344.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import './OrError-19a62a18.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
import './OrHint-73835593.js';
|
|
8
|
-
import './OrIconButton-
|
|
8
|
+
import './OrIconButton-b8066b5d.js';
|
|
9
9
|
import './OrIcon-b3906e35.js';
|
|
10
|
-
import './OrTooltip-
|
|
10
|
+
import './OrTooltip-30e05f9e.js';
|
|
11
11
|
import './OrPopover-3525c670.js';
|
|
12
12
|
import '@floating-ui/dom';
|
|
13
13
|
import './useElevation-0e973238.js';
|
package/dist/v3/index38.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
1
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-3eef7945.js';
|
|
2
2
|
export { a as InputSize } from './OrInputBox-634230b1.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './useClassAttribute-47fdb016.js';
|
|
@@ -6,9 +6,9 @@ import '@vueuse/core';
|
|
|
6
6
|
import './OrError-19a62a18.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import './OrHint-73835593.js';
|
|
9
|
-
import './OrIconButton-
|
|
9
|
+
import './OrIconButton-b8066b5d.js';
|
|
10
10
|
import './OrIcon-b3906e35.js';
|
|
11
|
-
import './OrTooltip-
|
|
11
|
+
import './OrTooltip-30e05f9e.js';
|
|
12
12
|
import './OrPopover-3525c670.js';
|
|
13
13
|
import '@floating-ui/dom';
|
|
14
14
|
import './useElevation-0e973238.js';
|
package/dist/v3/index50.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
1
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-f67d37d3.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import './OrIconButton-
|
|
5
|
+
import './OrIconButton-b8066b5d.js';
|
|
6
6
|
import './OrIcon-b3906e35.js';
|
|
7
7
|
import 'vue';
|
|
8
|
-
import './OrTooltip-
|
|
8
|
+
import './OrTooltip-30e05f9e.js';
|
|
9
9
|
import './OrPopover-3525c670.js';
|
|
10
10
|
import '@floating-ui/dom';
|
|
11
11
|
import './useElevation-0e973238.js';
|
package/dist/v3/index52.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
1
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-fefa1cb4.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import './OrIconButton-
|
|
5
|
+
import './OrIconButton-b8066b5d.js';
|
|
6
6
|
import './OrIcon-b3906e35.js';
|
|
7
7
|
import 'vue';
|
|
8
|
-
import './OrTooltip-
|
|
8
|
+
import './OrTooltip-30e05f9e.js';
|
|
9
9
|
import './OrPopover-3525c670.js';
|
|
10
10
|
import '@floating-ui/dom';
|
|
11
11
|
import './useElevation-0e973238.js';
|
package/dist/v3/index62.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import 'vue-demi';
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
3
|
import '@vueuse/core';
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import './OrIconButton-
|
|
4
|
+
import { Editor } from '@tiptap/core';
|
|
5
|
+
import StarterKit from '@tiptap/starter-kit';
|
|
6
|
+
import Underline from '@tiptap/extension-underline';
|
|
7
|
+
import Highlight from '@tiptap/extension-highlight';
|
|
8
|
+
import Placeholder from '@tiptap/extension-placeholder';
|
|
9
|
+
import { s as script$1 } from './OrIconButton-b8066b5d.js';
|
|
10
|
+
import { s as script$2 } from './OrLabel-7d4fe80b.js';
|
|
11
|
+
import { flatMap } from 'lodash';
|
|
12
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, normalizeClass, Fragment, renderList } from 'vue';
|
|
13
|
+
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
11
14
|
import './OrIcon-b3906e35.js';
|
|
12
|
-
import './OrTooltip-
|
|
15
|
+
import './OrTooltip-30e05f9e.js';
|
|
13
16
|
import './OrPopover-3525c670.js';
|
|
14
17
|
import '@floating-ui/dom';
|
|
15
18
|
import './useElevation-0e973238.js';
|
|
@@ -17,5 +20,270 @@ import './useResponsive-a02e95b7.js';
|
|
|
17
20
|
import './OrBottomSheet-9de57dd0.js';
|
|
18
21
|
import './OrOverlay-27050c19.js';
|
|
19
22
|
import './OrTeleport.vue3-8099178c.js';
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
|
|
24
|
+
const EditorContainer = [
|
|
25
|
+
// Colors
|
|
26
|
+
'border-disabled', 'dark:border-outline-dark', 'focus-within:theme-border-1-primary', 'dark:focus-within:theme-border-1-primary-dark', 'focus-within:bg-primary-opacity-0-08', 'dark:focus-within:bg-primary-opacity-0-08-dark', 'focus-within:theme-outline-primary', 'dark:focus-within:theme-outline-primary-dark',
|
|
27
|
+
// Sizing
|
|
28
|
+
'border-1', 'rounded-md'];
|
|
29
|
+
const EditorContainerFilled = [
|
|
30
|
+
//Colors
|
|
31
|
+
'bg-primary-opacity-0-08', 'dark:bg-primary-opacity-0-08-dark'];
|
|
32
|
+
const ToolbarContainer = [
|
|
33
|
+
// Layout
|
|
34
|
+
'flex',
|
|
35
|
+
//Spacing
|
|
36
|
+
'py-sm',
|
|
37
|
+
//Sizing
|
|
38
|
+
'border-b-1',
|
|
39
|
+
//Colors
|
|
40
|
+
'border-b-disabled', 'dark:border-b-outline-dark'];
|
|
41
|
+
const Toolbar = [
|
|
42
|
+
// Layout
|
|
43
|
+
'flex',
|
|
44
|
+
// Spacing
|
|
45
|
+
'px-sm', 'gap-md',
|
|
46
|
+
// Sizing
|
|
47
|
+
'border-r-1',
|
|
48
|
+
//Colors
|
|
49
|
+
'border-r-disabled', 'dark:border-r-outline-dark',
|
|
50
|
+
// Last child
|
|
51
|
+
'last-of-type:border-none'];
|
|
52
|
+
const ToolbarButton = [
|
|
53
|
+
// Typography
|
|
54
|
+
'text-on-disabled', 'dark:text-outline-dark'];
|
|
55
|
+
const ToolbarButtonActive = [
|
|
56
|
+
// Typography
|
|
57
|
+
'text-on-background', 'dark:text-on-background-dark'];
|
|
58
|
+
const EditorInput = [
|
|
59
|
+
// Spacing
|
|
60
|
+
'p-sm',
|
|
61
|
+
// Typography
|
|
62
|
+
'typography-body-2-regular', 'text-on-background', 'dark:text-on-background-dark',
|
|
63
|
+
// Sizing
|
|
64
|
+
'min-h-[88px]'];
|
|
65
|
+
|
|
66
|
+
var script = defineComponent({
|
|
67
|
+
name: 'OrRichTextEditor',
|
|
68
|
+
components: {
|
|
69
|
+
OrIconButton: script$1,
|
|
70
|
+
OrLabel: script$2
|
|
71
|
+
},
|
|
72
|
+
inheritAttrs: false,
|
|
73
|
+
props: {
|
|
74
|
+
modelValue: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: '',
|
|
77
|
+
required: false
|
|
78
|
+
},
|
|
79
|
+
toolbar: {
|
|
80
|
+
type: Array,
|
|
81
|
+
default: () => [['bold', 'italic', 'strike'], ['underline', 'highlight'], ['bulletList', 'orderedList'], ['undo', 'redo']]
|
|
82
|
+
},
|
|
83
|
+
description: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: ''
|
|
86
|
+
},
|
|
87
|
+
placeholder: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: 'Write something...'
|
|
90
|
+
},
|
|
91
|
+
autofocus: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
emits: ['update:modelValue'],
|
|
97
|
+
setup(props, {
|
|
98
|
+
emit
|
|
99
|
+
}) {
|
|
100
|
+
// Refs
|
|
101
|
+
let editor = null;
|
|
102
|
+
const editorRef = ref();
|
|
103
|
+
const containerRef = ref();
|
|
104
|
+
const isActive = ref({});
|
|
105
|
+
const isFilled = ref(false);
|
|
106
|
+
const iconsEnum = ref({
|
|
107
|
+
bold: 'format_bold',
|
|
108
|
+
italic: 'format_italic',
|
|
109
|
+
underline: 'format_underlined',
|
|
110
|
+
strike: 'format_strikethrough',
|
|
111
|
+
bulletList: 'format_list_bulleted',
|
|
112
|
+
orderedList: 'format_list_numbered',
|
|
113
|
+
link: 'link',
|
|
114
|
+
highlight: 'highlight',
|
|
115
|
+
redo: 'redo',
|
|
116
|
+
undo: 'undo'
|
|
117
|
+
});
|
|
118
|
+
const iconTooltipsEnum = ref({
|
|
119
|
+
bold: 'Bold',
|
|
120
|
+
italic: 'Italic',
|
|
121
|
+
underline: 'Underline',
|
|
122
|
+
strike: 'Strike',
|
|
123
|
+
bulletList: 'Bulleted List',
|
|
124
|
+
orderedList: 'Numbered List',
|
|
125
|
+
link: 'Link',
|
|
126
|
+
highlight: 'Highlight',
|
|
127
|
+
redo: 'Redo',
|
|
128
|
+
undo: 'Undo'
|
|
129
|
+
});
|
|
130
|
+
onMounted(() => {
|
|
131
|
+
editor = new Editor({
|
|
132
|
+
onUpdate: ({
|
|
133
|
+
editor
|
|
134
|
+
}) => {
|
|
135
|
+
setActiveFormats();
|
|
136
|
+
const html = editor.getHTML();
|
|
137
|
+
const text = editor.getText();
|
|
138
|
+
emit('update:modelValue', text === '' ? text : html);
|
|
139
|
+
isFilled.value = text !== '';
|
|
140
|
+
},
|
|
141
|
+
element: editorRef.value,
|
|
142
|
+
content: props.modelValue,
|
|
143
|
+
autofocus: props.autofocus,
|
|
144
|
+
extensions: [StarterKit, Underline,
|
|
145
|
+
// Link.configure({
|
|
146
|
+
// openOnClick: true,
|
|
147
|
+
// linkOnPaste: true,
|
|
148
|
+
// protocols: ['ftp', 'mailto'],
|
|
149
|
+
// validate: href => /^https?:\/\//.test(href),
|
|
150
|
+
// HTMLAttributes: {
|
|
151
|
+
// class: 'text-primary cursor-pointer',
|
|
152
|
+
// },
|
|
153
|
+
// }),
|
|
154
|
+
Highlight, Placeholder.configure({
|
|
155
|
+
placeholder: props.placeholder,
|
|
156
|
+
emptyEditorClass: 'is-editor-empty text-outline'
|
|
157
|
+
})],
|
|
158
|
+
editorProps: {
|
|
159
|
+
attributes: {
|
|
160
|
+
class: 'focus:outline-none'
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
setActiveFormats();
|
|
165
|
+
isFilled.value = props.modelValue !== '';
|
|
166
|
+
});
|
|
167
|
+
onBeforeUnmount(() => {
|
|
168
|
+
editor === null || editor === void 0 ? void 0 : editor.destroy();
|
|
169
|
+
});
|
|
170
|
+
// Methods
|
|
171
|
+
const handleEditorClick = () => {
|
|
172
|
+
setActiveFormats();
|
|
173
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.focus();
|
|
174
|
+
};
|
|
175
|
+
const handleToolbarClick = item => {
|
|
176
|
+
if (item === 'bulletList' || item === 'orderedList') {
|
|
177
|
+
item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
|
|
178
|
+
} else if (item === 'undo' || item === 'redo') {
|
|
179
|
+
item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
|
|
180
|
+
} else {
|
|
181
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const setActiveFormats = () => {
|
|
185
|
+
const toolbarList = flatMap(props.toolbar);
|
|
186
|
+
toolbarList.forEach(item => {
|
|
187
|
+
isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
// Styles
|
|
191
|
+
const classAttribute = useClassAttribute();
|
|
192
|
+
const rootStyles = computed(() => {
|
|
193
|
+
return ['or-rich-text-editor', classAttribute.value];
|
|
194
|
+
});
|
|
195
|
+
const containerStyles = computed(() => {
|
|
196
|
+
return [...EditorContainer, ...(isFilled.value ? EditorContainerFilled : [])];
|
|
197
|
+
});
|
|
198
|
+
const toolbarContainerStyles = computed(() => {
|
|
199
|
+
return [...ToolbarContainer];
|
|
200
|
+
});
|
|
201
|
+
const toolbarStyles = computed(() => {
|
|
202
|
+
return [...Toolbar];
|
|
203
|
+
});
|
|
204
|
+
const editorInputStyles = computed(() => {
|
|
205
|
+
return ['tiptap-editor', ...EditorInput];
|
|
206
|
+
});
|
|
207
|
+
const toolbarButtonStyles = item => {
|
|
208
|
+
return [
|
|
209
|
+
// Layout
|
|
210
|
+
'flex',
|
|
211
|
+
// Spacing
|
|
212
|
+
'gap-md', ...(isActive.value[item] ? ToolbarButtonActive : ToolbarButton)];
|
|
213
|
+
};
|
|
214
|
+
//Effects
|
|
215
|
+
watch(() => props.modelValue, value => {
|
|
216
|
+
if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML())) {
|
|
217
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
return {
|
|
221
|
+
editor,
|
|
222
|
+
editorRef,
|
|
223
|
+
containerRef,
|
|
224
|
+
iconsEnum,
|
|
225
|
+
handleToolbarClick,
|
|
226
|
+
handleEditorClick,
|
|
227
|
+
isActive,
|
|
228
|
+
iconTooltipsEnum,
|
|
229
|
+
containerStyles,
|
|
230
|
+
toolbarContainerStyles,
|
|
231
|
+
toolbarStyles,
|
|
232
|
+
rootStyles,
|
|
233
|
+
toolbarButtonStyles,
|
|
234
|
+
editorInputStyles
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
240
|
+
const _component_or_label = resolveComponent("or-label");
|
|
241
|
+
const _component_or_icon_button = resolveComponent("or-icon-button");
|
|
242
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
243
|
+
ref: "root"
|
|
244
|
+
}, _ctx.$attrs, {
|
|
245
|
+
class: _ctx.rootStyles
|
|
246
|
+
}), [createVNode(_component_or_label, null, {
|
|
247
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.description), 1 /* TEXT */)]),
|
|
248
|
+
|
|
249
|
+
_: 1 /* STABLE */
|
|
250
|
+
}), createElementVNode("div", {
|
|
251
|
+
ref: "containerRef",
|
|
252
|
+
class: normalizeClass(_ctx.containerStyles),
|
|
253
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.handleEditorClick())
|
|
254
|
+
}, [createElementVNode("div", {
|
|
255
|
+
class: normalizeClass(_ctx.toolbarContainerStyles)
|
|
256
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.toolbar, tool => {
|
|
257
|
+
return openBlock(), createElementBlock("div", {
|
|
258
|
+
key: tool,
|
|
259
|
+
class: normalizeClass(_ctx.toolbarStyles)
|
|
260
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(tool, item => {
|
|
261
|
+
return openBlock(), createElementBlock("div", {
|
|
262
|
+
key: item,
|
|
263
|
+
class: normalizeClass(_ctx.toolbarButtonStyles(item))
|
|
264
|
+
}, [createVNode(_component_or_icon_button, {
|
|
265
|
+
tooltip: {
|
|
266
|
+
text: _ctx.iconTooltipsEnum[item],
|
|
267
|
+
placement: 'top'
|
|
268
|
+
},
|
|
269
|
+
icon: {
|
|
270
|
+
icon: _ctx.iconsEnum[item],
|
|
271
|
+
variant: 'inherit',
|
|
272
|
+
size: 's'
|
|
273
|
+
},
|
|
274
|
+
onClick: $event => _ctx.handleToolbarClick(item)
|
|
275
|
+
}, null, 8 /* PROPS */, ["tooltip", "icon", "onClick"])], 2 /* CLASS */);
|
|
276
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
|
|
277
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), createElementVNode("div", {
|
|
278
|
+
ref: "editorRef",
|
|
279
|
+
class: normalizeClass(_ctx.editorInputStyles)
|
|
280
|
+
}, null, 2 /* CLASS */)], 2 /* CLASS */)], 16 /* FULL_PROPS */);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
var css_248z = ".tiptap-editor ol {\n margin: 0 24px;\n list-style: decimal;\n}\n.tiptap-editor ul {\n margin: 0 24px;\n list-style: initial;\n}\n.tiptap-editor .is-editor-empty::before {\n content: attr(data-placeholder);\n height: 0;\n pointer-events: none;\n float: left;\n}";
|
|
284
|
+
styleInject(css_248z);
|
|
285
|
+
|
|
286
|
+
script.render = render;
|
|
287
|
+
script.__file = "src/components/or-rich-text-editor-v3/OrRichTextEditor.vue";
|
|
288
|
+
|
|
289
|
+
export { script as OrRichTextEditor };
|
package/dist/v3/index63.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
export { s as
|
|
1
|
+
export { s as OrSearchV3 } from './OrSearch-15a70678.js';
|
|
2
|
+
export { a as SearchSize } from './OrInputBox-634230b1.js';
|
|
2
3
|
import 'vue-demi';
|
|
3
4
|
import '@vueuse/core';
|
|
4
|
-
import '
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
5
|
+
import './useClassAttribute-47fdb016.js';
|
|
6
|
+
import './OrInput-3eef7945.js';
|
|
7
|
+
import './OrError-19a62a18.js';
|
|
7
8
|
import 'vue';
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
9
|
+
import './OrHint-73835593.js';
|
|
10
|
+
import './OrIconButton-b8066b5d.js';
|
|
11
|
+
import './OrIcon-b3906e35.js';
|
|
12
|
+
import './OrTooltip-30e05f9e.js';
|
|
13
|
+
import './OrPopover-3525c670.js';
|
|
10
14
|
import '@floating-ui/dom';
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import './
|
|
15
|
-
import './
|
|
16
|
-
import './
|
|
17
|
-
import './
|
|
18
|
-
import './OrCheckbox-56e4171e.js';
|
|
15
|
+
import './useElevation-0e973238.js';
|
|
16
|
+
import './useResponsive-a02e95b7.js';
|
|
17
|
+
import './OrBottomSheet-9de57dd0.js';
|
|
18
|
+
import './OrOverlay-27050c19.js';
|
|
19
|
+
import './OrTeleport.vue3-8099178c.js';
|
|
20
|
+
import './OrLabel-7d4fe80b.js';
|
|
21
|
+
import './style-inject.es-4c6f2515.js';
|
package/dist/v3/index64.js
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
export { s as
|
|
2
|
-
export { a as SelectSize } from './OrInputBox-634230b1.js';
|
|
1
|
+
export { s as OrSelect } from './OrSelect-056731af.js';
|
|
3
2
|
import 'vue-demi';
|
|
4
|
-
import './useClassAttribute-47fdb016.js';
|
|
5
|
-
import './useOverflow-ac506c65.js';
|
|
6
3
|
import '@vueuse/core';
|
|
7
|
-
import '
|
|
8
|
-
import './
|
|
4
|
+
import 'lodash';
|
|
5
|
+
import './OrIcon-e23028f8.js';
|
|
6
|
+
import './OrTooltip-121eae2b.js';
|
|
9
7
|
import 'vue';
|
|
10
8
|
import './style-inject.es-4c6f2515.js';
|
|
11
|
-
import './
|
|
12
|
-
import './OrExpansionPanel-1e2a6375.js';
|
|
13
|
-
import './OrIcon-b3906e35.js';
|
|
14
|
-
import './OrHint-73835593.js';
|
|
15
|
-
import './OrInput-d34c8571.js';
|
|
16
|
-
import './OrIconButton-eef9eb43.js';
|
|
17
|
-
import './OrTooltip-36c6728c.js';
|
|
18
|
-
import './OrPopover-3525c670.js';
|
|
9
|
+
import './OrFloating-3da814a2.js';
|
|
19
10
|
import '@floating-ui/dom';
|
|
20
|
-
import './
|
|
21
|
-
import './
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
11
|
+
import './OrTeleportVue3-ad639f12.js';
|
|
12
|
+
import './dom-7a41831b.js';
|
|
13
|
+
import './px-to-rem-0b26b83e.js';
|
|
14
|
+
import './OrChips-feab2a38.js';
|
|
15
|
+
import './OrLabel-876f8729.js';
|
|
16
|
+
import './OrError-f90296db.js';
|
|
17
|
+
import './OrLoader-15174477.js';
|
|
18
|
+
import './OrCheckbox-56e4171e.js';
|