@onereach/ui-components 2.68.0-beta.2003.0 → 2.68.0-beta.2008.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrCode-edc7a1f5.js → OrCode-b9332066.js} +2 -115
- package/dist/bundled/v2/{OrConfirm-56d01cff.js → OrConfirm-19758dae.js} +1 -1
- package/dist/bundled/v2/OrModal-71d33219.js +202 -0
- package/dist/bundled/v2/OrRichTextEditor-4a41e294.js +36832 -0
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +7 -3
- package/dist/bundled/v2/components/or-code/index.js +4 -2
- package/dist/bundled/v2/components/or-confirm/index.js +3 -2
- package/dist/bundled/v2/components/or-modal/index.js +2 -1
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +25 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/bundled/v2/index.es-3f39f316.js +115 -0
- package/dist/bundled/v2/index.js +8 -4
- package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-a1ed2ebb.js → v2/useFocusTrap-d744652a.js} +4 -126
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ef5e7f04.js → OrCode.vue_vue_type_script_lang-5fe573eb.js} +3 -116
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-0f16fc67.js → OrConfirm.vue_vue_type_script_lang-4451e782.js} +2 -2
- package/dist/bundled/v3/OrMenu-08aa60de.js +29 -0
- package/dist/bundled/v3/{OrModal-868160ef.js → OrModal-bbabef06.js} +1 -1
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-a599dfe7.js +128 -0
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-f5d3e39b.js +36712 -0
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ca57f9d9.js → OrTabs.vue_vue_type_script_lang-2fdbd2f2.js} +10 -36
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +10 -5
- package/dist/bundled/v3/components/or-code/index.js +5 -3
- package/dist/bundled/v3/components/or-confirm/index.js +4 -3
- package/dist/bundled/v3/components/or-modal/index.js +2 -1
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +26 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
- package/dist/bundled/v3/index.es-3f39f316.js +115 -0
- package/dist/bundled/v3/index.js +278 -182
- package/dist/bundled/{v2/OrModal-a5411b0d.js → v3/useFocusTrap-d21726e3.js} +3 -200
- package/dist/esm/v2/OrRichTextEditor-11967cd9.js +520 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +19 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +39 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v2/index.js +19 -0
- package/dist/esm/v3/OrRichTextEditor-ad5f24ba.js +490 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +19 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +38 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v3/index.js +19 -0
- package/package.json +19 -1
- package/src/components/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +16 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +62 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +526 -0
- package/src/components/or-rich-text-editor-v3/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +65 -0
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -39
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -109
- package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +0 -2
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +0 -131
- package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +0 -2
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -39
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -109
- package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +0 -2
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +0 -111
- package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +0 -2
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -39
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -109
- package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-empty-state-v3/index.js +0 -129
- package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +0 -2
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -39
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -109
- package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-empty-state-v3/index.js +0 -111
- package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +0 -2
- package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +0 -203
- package/src/components/or-empty-state-v3/OrEmptyState.vue +0 -101
- package/src/components/or-empty-state-v3/index.ts +0 -2
- package/src/components/or-empty-state-v3/types.ts +0 -3
|
@@ -1,40 +1,14 @@
|
|
|
1
1
|
import { useResizeObserver } from '@vueuse/core';
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock, createElementBlock, mergeProps, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
|
|
3
3
|
import './OrIcon-3a514933.js';
|
|
4
|
-
import
|
|
4
|
+
import './OrMenu-08aa60de.js';
|
|
5
5
|
import './OrMenuItem-94ffa853.js';
|
|
6
|
-
import { s as script$
|
|
6
|
+
import { s as script$1 } from './OrTab.vue_vue_type_script_lang-671949b7.js';
|
|
7
7
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
8
|
-
import { s as script$
|
|
8
|
+
import { s as script$2 } from './OrIcon.vue_vue_type_script_lang-41a6a57a.js';
|
|
9
|
+
import { s as script$3 } from './OrMenu.vue_vue_type_script_lang-bae45062.js';
|
|
9
10
|
import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-ccb7e082.js';
|
|
10
11
|
|
|
11
|
-
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
|
-
const _component_OrPopover = resolveComponent("OrPopover");
|
|
13
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
14
|
-
ref: "root"
|
|
15
|
-
}, _ctx.$attrs, {
|
|
16
|
-
class: _ctx.rootStyles
|
|
17
|
-
}), [createVNode(_component_OrPopover, {
|
|
18
|
-
ref: "popover",
|
|
19
|
-
variant: 'auto',
|
|
20
|
-
trigger: _ctx.trigger,
|
|
21
|
-
placement: _ctx.placement,
|
|
22
|
-
"full-width": false,
|
|
23
|
-
"disable-default-styles": false,
|
|
24
|
-
"onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
|
|
25
|
-
}, {
|
|
26
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
27
|
-
class: normalizeClass(_ctx.bodyStyles),
|
|
28
|
-
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
29
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
|
|
30
|
-
|
|
31
|
-
_: 3 /* FORWARDED */
|
|
32
|
-
}, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
script$1.render = render$1;
|
|
36
|
-
script$1.__file = "src/components/or-menu-v3/OrMenu.vue";
|
|
37
|
-
|
|
38
12
|
const _hoisted_1 = ["selected"];
|
|
39
13
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
40
14
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
@@ -49,8 +23,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49
23
|
}), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */, _hoisted_1);
|
|
50
24
|
}
|
|
51
25
|
|
|
52
|
-
script$
|
|
53
|
-
script$
|
|
26
|
+
script$1.render = render;
|
|
27
|
+
script$1.__file = "src/components/or-tab-v3/OrTab.vue";
|
|
54
28
|
|
|
55
29
|
var TabsVariant;
|
|
56
30
|
(function (TabsVariant) {
|
|
@@ -79,10 +53,10 @@ const TabsRootVariants = {
|
|
|
79
53
|
var script = defineComponent({
|
|
80
54
|
name: 'OrTabs',
|
|
81
55
|
components: {
|
|
82
|
-
OrIcon: script$
|
|
83
|
-
OrMenu: script$
|
|
56
|
+
OrIcon: script$2,
|
|
57
|
+
OrMenu: script$3,
|
|
84
58
|
OrMenuItem: script$4,
|
|
85
|
-
OrTab: script$
|
|
59
|
+
OrTab: script$1
|
|
86
60
|
},
|
|
87
61
|
inheritAttrs: false,
|
|
88
62
|
props: {
|
|
@@ -15,10 +15,10 @@ export { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-cd20521b
|
|
|
15
15
|
export { s as OrCheckboxV3 } from '../OrCheckbox.vue_vue_type_script_lang-10d8b047.js';
|
|
16
16
|
export { s as OrChip } from '../OrChip-5d502431.js';
|
|
17
17
|
export { s as OrChips } from '../OrChips.vue_vue_type_script_lang-69917e34.js';
|
|
18
|
-
export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script_lang-
|
|
18
|
+
export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script_lang-5fe573eb.js';
|
|
19
19
|
export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-65cbb754.js';
|
|
20
20
|
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.vue_vue_type_script_lang-4141378d.js';
|
|
21
|
-
export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-
|
|
21
|
+
export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-4451e782.js';
|
|
22
22
|
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-20ffe5df.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker.vue_vue_type_script_lang-7bfe5005.js';
|
|
24
24
|
export { s as OrError } from '../OrError.vue_vue_type_script_lang-7c39e012.js';
|
|
@@ -51,7 +51,7 @@ export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3
|
|
|
51
51
|
export { s as OrMenuItemV3 } from '../OrMenuItem.vue_vue_type_script_lang-ccb7e082.js';
|
|
52
52
|
export { s as OrMenuV3 } from '../OrMenu.vue_vue_type_script_lang-bae45062.js';
|
|
53
53
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover.vue_vue_type_script_lang-e200f5be.js';
|
|
54
|
-
export { s as OrModal, O as OrModalSizes } from '../OrModal.vue_vue_type_script_lang-
|
|
54
|
+
export { s as OrModal, O as OrModalSizes } from '../OrModal.vue_vue_type_script_lang-a599dfe7.js';
|
|
55
55
|
export { M as ModalSize, s as OrModalV3 } from '../OrModal.vue_vue_type_script_lang-f3f5a84b.js';
|
|
56
56
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../OrNotification.vue_vue_type_script_lang-07163a83.js';
|
|
57
57
|
export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotification.vue_vue_type_script_lang-83bfbfc4.js';
|
|
@@ -80,7 +80,7 @@ export { s as OrTab } from '../OrTab.vue_vue_type_script_lang-de7c7063.js';
|
|
|
80
80
|
export { s as OrTabHeaderItem } from '../OrTabHeaderItem.vue_vue_type_script_lang-e1f29563.js';
|
|
81
81
|
export { s as OrTabV3 } from '../OrTab.vue_vue_type_script_lang-671949b7.js';
|
|
82
82
|
export { s as OrTabs } from '../OrTabs.vue_vue_type_script_lang-40e2a6e9.js';
|
|
83
|
-
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-
|
|
83
|
+
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-2fdbd2f2.js';
|
|
84
84
|
export { s as OrTag } from '../OrTag.vue_vue_type_script_lang-8c526c11.js';
|
|
85
85
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag.vue_vue_type_script_lang-6be84bb9.js';
|
|
86
86
|
export { s as OrTeleport } from '../OrTeleportVue3-012351e1.js';
|
|
@@ -95,6 +95,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-4d43
|
|
|
95
95
|
export { s as OrTooltip } from '../OrTooltip.vue_vue_type_script_lang-fa52d391.js';
|
|
96
96
|
export { s as OrTooltipContent } from '../OrTooltipContent-b0dcb862.js';
|
|
97
97
|
export { s as OrTooltipV3 } from '../OrTooltip.vue_vue_type_script_lang-a4168546.js';
|
|
98
|
+
export { s as OrRichTextEditorV3 } from '../OrRichTextEditor.vue_vue_type_script_lang-f5d3e39b.js';
|
|
98
99
|
import 'vue';
|
|
99
100
|
import 'lodash';
|
|
100
101
|
import '../OrIcon-1cae8a64.js';
|
|
@@ -110,7 +111,8 @@ import '../OrInput-4b4b8316.js';
|
|
|
110
111
|
import '../OrLabel-2809e2db.js';
|
|
111
112
|
import '../OrLabel-e412c532.js';
|
|
112
113
|
import '../OrError-b43ebad8.js';
|
|
113
|
-
import '../
|
|
114
|
+
import '../index.es-3f39f316.js';
|
|
115
|
+
import '../OrModal-bbabef06.js';
|
|
114
116
|
import '../OrHint-c9114268.js';
|
|
115
117
|
import '../px-to-rem-0b26b83e.js';
|
|
116
118
|
import '../dom-d21d0a92.js';
|
|
@@ -128,6 +130,9 @@ import '../v4-cf8987a3.js';
|
|
|
128
130
|
import '../OrPopover-93ef8c26.js';
|
|
129
131
|
import '../useResponsive-9d397e2a.js';
|
|
130
132
|
import '../useElevation-c8d5d3ba.js';
|
|
133
|
+
import '../useFocusTrap-d21726e3.js';
|
|
131
134
|
import '../OrMenuItem-94ffa853.js';
|
|
132
135
|
import '../dropdown-open-293d2de2.js';
|
|
133
136
|
import '../useOverflow-2468b718.js';
|
|
137
|
+
import '../OrMenu-08aa60de.js';
|
|
138
|
+
import 'node:punycode';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { s as OrCode, O as OrCodeLanguages } from '../../OrCode.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrCode, O as OrCodeLanguages } from '../../OrCode.vue_vue_type_script_lang-5fe573eb.js';
|
|
2
2
|
import '@vueuse/core';
|
|
3
|
+
import '../../index.es-3f39f316.js';
|
|
3
4
|
import 'lodash';
|
|
4
5
|
import 'vue';
|
|
5
6
|
import '../../OrTeleportVue3-012351e1.js';
|
|
@@ -18,8 +19,9 @@ import '../../OrIcon.vue_vue_type_script_lang-7e3a17fe.js';
|
|
|
18
19
|
import '../../px-to-rem-0b26b83e.js';
|
|
19
20
|
import '../../OrLoader-ee97fef4.js';
|
|
20
21
|
import '../../OrLoader.vue_vue_type_script_lang-1378ab8e.js';
|
|
21
|
-
import '../../OrModal-
|
|
22
|
-
import '../../OrModal.vue_vue_type_script_lang-
|
|
22
|
+
import '../../OrModal-bbabef06.js';
|
|
23
|
+
import '../../OrModal.vue_vue_type_script_lang-a599dfe7.js';
|
|
24
|
+
import '../../useFocusTrap-d21726e3.js';
|
|
23
25
|
import '../../OrOverlay.vue_vue_type_script_lang-b9bf5e50.js';
|
|
24
26
|
import '../../OrError-b43ebad8.js';
|
|
25
27
|
import '../../OrError.vue_vue_type_script_lang-7c39e012.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrConfirm } from '../../OrConfirm.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrConfirm } from '../../OrConfirm.vue_vue_type_script_lang-4451e782.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '../../index-01519e46.js';
|
|
@@ -18,8 +18,9 @@ import '../../OrTeleportVue3-012351e1.js';
|
|
|
18
18
|
import '../../dom-d21d0a92.js';
|
|
19
19
|
import '../../OrLoader-ee97fef4.js';
|
|
20
20
|
import '../../OrLoader.vue_vue_type_script_lang-1378ab8e.js';
|
|
21
|
-
import '../../OrModal-
|
|
22
|
-
import '../../OrModal.vue_vue_type_script_lang-
|
|
21
|
+
import '../../OrModal-bbabef06.js';
|
|
22
|
+
import '../../OrModal.vue_vue_type_script_lang-a599dfe7.js';
|
|
23
|
+
import '../../useFocusTrap-d21726e3.js';
|
|
23
24
|
import '../../OrIconButton-e637158e.js';
|
|
24
25
|
import '../../OrIconButton.vue_vue_type_script_lang-40547ab0.js';
|
|
25
26
|
import '../../OrTooltip.vue_vue_type_script_lang-fa52d391.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { s as OrModal, O as OrModalSizes } from '../../OrModal.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrModal, O as OrModalSizes } from '../../OrModal.vue_vue_type_script_lang-a599dfe7.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import 'lodash';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
+
import '../../useFocusTrap-d21726e3.js';
|
|
5
6
|
import '../../OrIconButton-e637158e.js';
|
|
6
7
|
import '../../OrIconButton.vue_vue_type_script_lang-40547ab0.js';
|
|
7
8
|
import '../../OrTooltip.vue_vue_type_script_lang-fa52d391.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
+
} | string[], {} & {}, {
|
|
5
|
+
[x: number]: string;
|
|
6
|
+
} | {}, true>)>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const RichTextEditor: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
+
} | string[], {} & {}, {
|
|
11
|
+
[x: number]: string;
|
|
12
|
+
} | {}, true>)>;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
import { Level } from '@tiptap/extension-heading';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
6
|
+
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
7
|
+
toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
8
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
9
|
+
} | string[], {} & {}, {
|
|
10
|
+
[x: number]: string;
|
|
11
|
+
} | {}, true> | undefined>;
|
|
12
|
+
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
13
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
14
|
+
} | string[], {} & {}, {
|
|
15
|
+
[x: number]: string;
|
|
16
|
+
} | {}, true> | undefined>;
|
|
17
|
+
iconsEnum: import("@vue/composition-api").Ref<{
|
|
18
|
+
[x: string]: string;
|
|
19
|
+
}>;
|
|
20
|
+
handleToolbarClick: (item: string, level?: number | undefined) => void;
|
|
21
|
+
handleEditorClick: () => void;
|
|
22
|
+
isActive: import("@vue/composition-api").Ref<{
|
|
23
|
+
[x: string]: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
26
|
+
[x: string]: string;
|
|
27
|
+
}>;
|
|
28
|
+
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
29
|
+
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
30
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
31
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
32
|
+
toolbarButtonStyles: (item: string) => string[];
|
|
33
|
+
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
34
|
+
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
35
|
+
headingLevels: Level[];
|
|
36
|
+
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
37
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
toolbar: {
|
|
44
|
+
type: ArrayConstructor;
|
|
45
|
+
default: () => string[][];
|
|
46
|
+
};
|
|
47
|
+
description: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
placeholder: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
autofocus: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
markdownFormat: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
64
|
+
modelValue: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
required: false;
|
|
68
|
+
};
|
|
69
|
+
toolbar: {
|
|
70
|
+
type: ArrayConstructor;
|
|
71
|
+
default: () => string[][];
|
|
72
|
+
};
|
|
73
|
+
description: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
placeholder: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
autofocus: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
markdownFormat: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
90
|
+
modelValue: string;
|
|
91
|
+
toolbar: unknown[];
|
|
92
|
+
description: string;
|
|
93
|
+
placeholder: string;
|
|
94
|
+
autofocus: boolean;
|
|
95
|
+
markdownFormat: boolean;
|
|
96
|
+
} & {} & {
|
|
97
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
98
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
99
|
+
editor: Editor | null;
|
|
100
|
+
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
101
|
+
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
102
|
+
toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
103
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
104
|
+
} | string[], {} & {}, {
|
|
105
|
+
[x: number]: string;
|
|
106
|
+
} | {}, true> | undefined>;
|
|
107
|
+
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
108
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
109
|
+
} | string[], {} & {}, {
|
|
110
|
+
[x: number]: string;
|
|
111
|
+
} | {}, true> | undefined>;
|
|
112
|
+
iconsEnum: import("@vue/composition-api").Ref<{
|
|
113
|
+
[x: string]: string;
|
|
114
|
+
}>;
|
|
115
|
+
handleToolbarClick: (item: string, level?: number | undefined) => void;
|
|
116
|
+
handleEditorClick: () => void;
|
|
117
|
+
isActive: import("@vue/composition-api").Ref<{
|
|
118
|
+
[x: string]: boolean;
|
|
119
|
+
}>;
|
|
120
|
+
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
121
|
+
[x: string]: string;
|
|
122
|
+
}>;
|
|
123
|
+
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
124
|
+
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
125
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
126
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
127
|
+
toolbarButtonStyles: (item: string) => string[];
|
|
128
|
+
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
129
|
+
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
130
|
+
headingLevels: Level[];
|
|
131
|
+
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
132
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
133
|
+
modelValue: string;
|
|
134
|
+
toolbar: unknown[];
|
|
135
|
+
description: string;
|
|
136
|
+
placeholder: string;
|
|
137
|
+
autofocus: boolean;
|
|
138
|
+
markdownFormat: boolean;
|
|
139
|
+
} & {} & {
|
|
140
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
modelValue: string;
|
|
143
|
+
toolbar: unknown[];
|
|
144
|
+
description: string;
|
|
145
|
+
placeholder: string;
|
|
146
|
+
autofocus: boolean;
|
|
147
|
+
markdownFormat: boolean;
|
|
148
|
+
}, true>);
|
|
149
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor.vue_vue_type_script_lang-f5d3e39b.js';
|
|
2
|
+
import 'vue';
|
|
3
|
+
import '../../useFocusTrap-d21726e3.js';
|
|
4
|
+
import '@vueuse/core';
|
|
5
|
+
import 'node:punycode';
|
|
6
|
+
import '../../index.es-3f39f316.js';
|
|
7
|
+
import '../../OrIconButton-00ab6c2d.js';
|
|
8
|
+
import '../../OrIconButton.vue_vue_type_script_lang-b35040f9.js';
|
|
9
|
+
import '../../OrIcon-3a514933.js';
|
|
10
|
+
import '../../OrIcon.vue_vue_type_script_lang-41a6a57a.js';
|
|
11
|
+
import '../../useClassAttribute-00888f78.js';
|
|
12
|
+
import '../../OrTooltip.vue_vue_type_script_lang-a4168546.js';
|
|
13
|
+
import '../../OrPopover-93ef8c26.js';
|
|
14
|
+
import '../../OrPopover.vue_vue_type_script_lang-e200f5be.js';
|
|
15
|
+
import '../../floating-ui.dom.esm-83eba816.js';
|
|
16
|
+
import '../../OrBottomSheet.vue_vue_type_script_lang-44d8147a.js';
|
|
17
|
+
import '../../OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
|
|
18
|
+
import '../../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
|
|
19
|
+
import '../../useElevation-c8d5d3ba.js';
|
|
20
|
+
import '../../useResponsive-9d397e2a.js';
|
|
21
|
+
import '../../OrLabel-2809e2db.js';
|
|
22
|
+
import '../../OrLabel.vue_vue_type_script_lang-e42de5d1.js';
|
|
23
|
+
import '../../OrMenuItem-94ffa853.js';
|
|
24
|
+
import '../../OrMenuItem.vue_vue_type_script_lang-ccb7e082.js';
|
|
25
|
+
import '../../OrMenu-08aa60de.js';
|
|
26
|
+
import '../../OrMenu.vue_vue_type_script_lang-bae45062.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const EditorContainer: string[];
|
|
2
|
+
export declare const ToolbarContainer: string[];
|
|
3
|
+
export declare const Toolbar: string[];
|
|
4
|
+
export declare const ToolbarButton: string[];
|
|
5
|
+
export declare const ToolbarButtonActive: string[];
|
|
6
|
+
export declare const EditorInput: string[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs.vue_vue_type_script_lang-2fdbd2f2.js';
|
|
2
2
|
import '@vueuse/core';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '../../OrIcon-3a514933.js';
|
|
5
5
|
import '../../OrIcon.vue_vue_type_script_lang-41a6a57a.js';
|
|
6
6
|
import '../../useClassAttribute-00888f78.js';
|
|
7
|
+
import '../../OrMenu-08aa60de.js';
|
|
7
8
|
import '../../OrMenu.vue_vue_type_script_lang-bae45062.js';
|
|
8
9
|
import '../../OrPopover-93ef8c26.js';
|
|
9
10
|
import '../../OrPopover.vue_vue_type_script_lang-e200f5be.js';
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var base = {
|
|
2
|
+
8: "Backspace",
|
|
3
|
+
9: "Tab",
|
|
4
|
+
10: "Enter",
|
|
5
|
+
12: "NumLock",
|
|
6
|
+
13: "Enter",
|
|
7
|
+
16: "Shift",
|
|
8
|
+
17: "Control",
|
|
9
|
+
18: "Alt",
|
|
10
|
+
20: "CapsLock",
|
|
11
|
+
27: "Escape",
|
|
12
|
+
32: " ",
|
|
13
|
+
33: "PageUp",
|
|
14
|
+
34: "PageDown",
|
|
15
|
+
35: "End",
|
|
16
|
+
36: "Home",
|
|
17
|
+
37: "ArrowLeft",
|
|
18
|
+
38: "ArrowUp",
|
|
19
|
+
39: "ArrowRight",
|
|
20
|
+
40: "ArrowDown",
|
|
21
|
+
44: "PrintScreen",
|
|
22
|
+
45: "Insert",
|
|
23
|
+
46: "Delete",
|
|
24
|
+
59: ";",
|
|
25
|
+
61: "=",
|
|
26
|
+
91: "Meta",
|
|
27
|
+
92: "Meta",
|
|
28
|
+
106: "*",
|
|
29
|
+
107: "+",
|
|
30
|
+
108: ",",
|
|
31
|
+
109: "-",
|
|
32
|
+
110: ".",
|
|
33
|
+
111: "/",
|
|
34
|
+
144: "NumLock",
|
|
35
|
+
145: "ScrollLock",
|
|
36
|
+
160: "Shift",
|
|
37
|
+
161: "Shift",
|
|
38
|
+
162: "Control",
|
|
39
|
+
163: "Control",
|
|
40
|
+
164: "Alt",
|
|
41
|
+
165: "Alt",
|
|
42
|
+
173: "-",
|
|
43
|
+
186: ";",
|
|
44
|
+
187: "=",
|
|
45
|
+
188: ",",
|
|
46
|
+
189: "-",
|
|
47
|
+
190: ".",
|
|
48
|
+
191: "/",
|
|
49
|
+
192: "`",
|
|
50
|
+
219: "[",
|
|
51
|
+
220: "\\",
|
|
52
|
+
221: "]",
|
|
53
|
+
222: "'"
|
|
54
|
+
};
|
|
55
|
+
var shift = {
|
|
56
|
+
48: ")",
|
|
57
|
+
49: "!",
|
|
58
|
+
50: "@",
|
|
59
|
+
51: "#",
|
|
60
|
+
52: "$",
|
|
61
|
+
53: "%",
|
|
62
|
+
54: "^",
|
|
63
|
+
55: "&",
|
|
64
|
+
56: "*",
|
|
65
|
+
57: "(",
|
|
66
|
+
59: ":",
|
|
67
|
+
61: "+",
|
|
68
|
+
173: "_",
|
|
69
|
+
186: ":",
|
|
70
|
+
187: "+",
|
|
71
|
+
188: "<",
|
|
72
|
+
189: "_",
|
|
73
|
+
190: ">",
|
|
74
|
+
191: "?",
|
|
75
|
+
192: "~",
|
|
76
|
+
219: "{",
|
|
77
|
+
220: "|",
|
|
78
|
+
221: "}",
|
|
79
|
+
222: "\""
|
|
80
|
+
};
|
|
81
|
+
var chrome = typeof navigator != "undefined" && /Chrome\/(\d+)/.exec(navigator.userAgent);
|
|
82
|
+
typeof navigator != "undefined" && /Gecko\/\d+/.test(navigator.userAgent);
|
|
83
|
+
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
|
|
84
|
+
var ie = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
85
|
+
var brokenModifierNames = mac || chrome && +chrome[1] < 57;
|
|
86
|
+
|
|
87
|
+
// Fill in the digit keys
|
|
88
|
+
for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
|
|
89
|
+
|
|
90
|
+
// The function keys
|
|
91
|
+
for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
|
|
92
|
+
|
|
93
|
+
// And the alphabetic keys
|
|
94
|
+
for (var i = 65; i <= 90; i++) {
|
|
95
|
+
base[i] = String.fromCharCode(i + 32);
|
|
96
|
+
shift[i] = String.fromCharCode(i);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// For each code that doesn't have a shift-equivalent, copy the base name
|
|
100
|
+
for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
|
|
101
|
+
function keyName(event) {
|
|
102
|
+
var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) || ie && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
|
|
103
|
+
var name = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
|
|
104
|
+
// Edge sometimes produces wrong names (Issue #3)
|
|
105
|
+
if (name == "Esc") name = "Escape";
|
|
106
|
+
if (name == "Del") name = "Delete";
|
|
107
|
+
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
|
|
108
|
+
if (name == "Left") name = "ArrowLeft";
|
|
109
|
+
if (name == "Up") name = "ArrowUp";
|
|
110
|
+
if (name == "Right") name = "ArrowRight";
|
|
111
|
+
if (name == "Down") name = "ArrowDown";
|
|
112
|
+
return name;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export { base as b, keyName as k, shift as s };
|