@onereach/ui-components 2.68.0-beta.2008.0 → 2.68.0-beta.2016.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.
Files changed (81) hide show
  1. package/dist/bundled/v2/{OrCode-b9332066.js → OrCode-edc7a1f5.js} +115 -2
  2. package/dist/bundled/v2/{OrConfirm-19758dae.js → OrConfirm-56d01cff.js} +1 -1
  3. package/dist/bundled/{v3/useFocusTrap-d21726e3.js → v2/OrModal-a5411b0d.js} +200 -3
  4. package/dist/bundled/v2/components/index.d.ts +0 -1
  5. package/dist/bundled/v2/components/index.js +3 -7
  6. package/dist/bundled/v2/components/or-code/index.js +2 -4
  7. package/dist/bundled/v2/components/or-confirm/index.js +2 -3
  8. package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -1
  9. package/dist/bundled/v2/components/or-modal/index.js +1 -2
  10. package/dist/bundled/v2/index.js +4 -8
  11. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-5fe573eb.js → OrCode.vue_vue_type_script_lang-ef5e7f04.js} +116 -3
  12. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-4451e782.js → OrConfirm.vue_vue_type_script_lang-0f16fc67.js} +2 -2
  13. package/dist/bundled/v3/{OrModal-bbabef06.js → OrModal-868160ef.js} +1 -1
  14. package/dist/bundled/{v2/useFocusTrap-d744652a.js → v3/OrModal.vue_vue_type_script_lang-a1ed2ebb.js} +126 -4
  15. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2fdbd2f2.js → OrTabs.vue_vue_type_script_lang-ca57f9d9.js} +36 -10
  16. package/dist/bundled/v3/components/index.d.ts +0 -1
  17. package/dist/bundled/v3/components/index.js +5 -10
  18. package/dist/bundled/v3/components/or-code/index.js +3 -5
  19. package/dist/bundled/v3/components/or-confirm/index.js +3 -4
  20. package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -1
  21. package/dist/bundled/v3/components/or-modal/index.js +1 -2
  22. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  23. package/dist/bundled/v3/index.js +182 -278
  24. package/dist/esm/v2/components/index.d.ts +0 -1
  25. package/dist/esm/v2/components/index.js +0 -19
  26. package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -1
  27. package/dist/esm/v2/index.js +0 -19
  28. package/dist/esm/v3/OrInput-4f55c0eb.js +1 -1
  29. package/dist/esm/v3/{OrInputBox-634230b1.js → OrInputBox-542d2f2c.js} +1 -1
  30. package/dist/esm/v3/OrSearch-d74891a5.js +1 -1
  31. package/dist/esm/v3/OrSelect-b3a233cc.js +1 -1
  32. package/dist/esm/v3/OrTextarea-98895b2a.js +1 -1
  33. package/dist/esm/v3/components/index.d.ts +0 -1
  34. package/dist/esm/v3/components/index.js +1 -20
  35. package/dist/esm/v3/components/or-card-collection-v3/index.js +1 -1
  36. package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
  37. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -1
  38. package/dist/esm/v3/components/or-input-box-v3/index.js +2 -2
  39. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  40. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  41. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  42. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  43. package/dist/esm/v3/index.js +1 -20
  44. package/package.json +10 -20
  45. package/src/components/index.ts +0 -1
  46. package/src/components/or-input-box-v3/OrInputBox.vue +1 -1
  47. package/src/utils/functions/text.ts +2 -2
  48. package/dist/bundled/v2/OrModal-71d33219.js +0 -202
  49. package/dist/bundled/v2/OrRichTextEditor-4a41e294.js +0 -36832
  50. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  51. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  52. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  53. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +0 -25
  54. package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  55. package/dist/bundled/v2/index.es-3f39f316.js +0 -115
  56. package/dist/bundled/v3/OrMenu-08aa60de.js +0 -29
  57. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-a599dfe7.js +0 -128
  58. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-f5d3e39b.js +0 -36712
  59. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  60. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  61. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  62. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +0 -26
  63. package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  64. package/dist/bundled/v3/index.es-3f39f316.js +0 -115
  65. package/dist/esm/v2/OrRichTextEditor-11967cd9.js +0 -520
  66. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  67. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  68. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  69. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -39
  70. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  71. package/dist/esm/v3/OrRichTextEditor-ad5f24ba.js +0 -490
  72. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  73. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  74. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  75. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -38
  76. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  77. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
  78. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -62
  79. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -526
  80. package/src/components/or-rich-text-editor-v3/index.ts +0 -1
  81. package/src/components/or-rich-text-editor-v3/styles.ts +0 -65
@@ -87,4 +87,3 @@ export * from './or-toast';
87
87
  export * from './or-toast-v3';
88
88
  export * from './or-tooltip';
89
89
  export * from './or-tooltip-v3';
90
- export * from './or-rich-text-editor-v3';
@@ -95,7 +95,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-0665
95
95
  export { _ as OrTooltip } from '../OrTooltip-614b016d.js';
96
96
  export { _ as OrTooltipContent } from '../OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
97
97
  export { _ as OrTooltipV3 } from '../OrTooltip-3454c2e6.js';
98
- export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-11967cd9.js';
99
98
  import 'vue-demi';
100
99
  import 'lodash';
101
100
  import '../normalize-component-6e8e3d80.js';
@@ -125,21 +124,3 @@ import '../dropdown-open-0d314aa4.js';
125
124
  import '../useOverflow-ac506c65.js';
126
125
  import 'portal-vue/dist/portal-vue.esm.js';
127
126
  import 'portal-vue';
128
- import 'prosemirror-markdown';
129
- import 'prosemirror-model';
130
- import 'marked';
131
- import '@tiptap/core';
132
- import '@tiptap/starter-kit';
133
- import '@tiptap/extension-underline';
134
- import '@tiptap/extension-link';
135
- import '@tiptap/extension-highlight';
136
- import '@tiptap/extension-heading';
137
- import '@tiptap/extension-placeholder';
138
- import '@tiptap/extension-paragraph';
139
- import '@tiptap/extension-bullet-list';
140
- import '@tiptap/extension-list-item';
141
- import '@tiptap/extension-ordered-list';
142
- import '@tiptap/extension-strike';
143
- import '@tiptap/extension-italic';
144
- import '@tiptap/extension-hard-break';
145
- import '@tiptap/extension-bold';
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { InputBoxVariant } from '.';
2
+ import { InputBoxVariant } from './props';
3
3
  import { InputBoxSize } from './props';
4
4
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
5
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
@@ -95,7 +95,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-06654
95
95
  export { _ as OrTooltip } from './OrTooltip-614b016d.js';
96
96
  export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
97
97
  export { _ as OrTooltipV3 } from './OrTooltip-3454c2e6.js';
98
- export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-11967cd9.js';
99
98
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
100
99
  export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
101
100
  export { u as useElevation } from './useElevation-31bfe1f6.js';
@@ -125,24 +124,6 @@ import 'sortablejs';
125
124
  import '@vueuse/integrations/useFocusTrap';
126
125
  import 'portal-vue/dist/portal-vue.esm.js';
127
126
  import 'portal-vue';
128
- import 'prosemirror-markdown';
129
- import 'prosemirror-model';
130
- import 'marked';
131
- import '@tiptap/core';
132
- import '@tiptap/starter-kit';
133
- import '@tiptap/extension-underline';
134
- import '@tiptap/extension-link';
135
- import '@tiptap/extension-highlight';
136
- import '@tiptap/extension-heading';
137
- import '@tiptap/extension-placeholder';
138
- import '@tiptap/extension-paragraph';
139
- import '@tiptap/extension-bullet-list';
140
- import '@tiptap/extension-list-item';
141
- import '@tiptap/extension-ordered-list';
142
- import '@tiptap/extension-strike';
143
- import '@tiptap/extension-italic';
144
- import '@tiptap/extension-hard-break';
145
- import '@tiptap/extension-bold';
146
127
 
147
128
  function getAbbreviation(text, limit) {
148
129
  var _a;
@@ -5,7 +5,7 @@ import { s as script$1 } from './OrError-19a62a18.js';
5
5
  import { s as script$2 } from './OrHint-73835593.js';
6
6
  import { s as script$4 } from './OrIconButton-85abafab.js';
7
7
  import { s as script$3 } from './OrIcon-e2fa4cf8.js';
8
- import { s as script$5, a as InputBoxSize } from './OrInputBox-634230b1.js';
8
+ import { s as script$5, a as InputBoxSize } from './OrInputBox-542d2f2c.js';
9
9
  import { s as script$6 } from './OrLabel-7d4fe80b.js';
10
10
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, withModifiers, Fragment, createSlots } from 'vue';
11
11
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
- import { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';
3
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
3
  import '@vueuse/core';
4
+ import { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';
5
5
 
6
6
  var InputBoxVariant;
7
7
  (function (InputBoxVariant) {
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
4
  import { s as script$1 } from './OrInput-4f55c0eb.js';
5
- import { a as InputBoxSize } from './OrInputBox-634230b1.js';
5
+ import { a as InputBoxSize } from './OrInputBox-542d2f2c.js';
6
6
  import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
7
7
 
8
8
  var script = defineComponent({
@@ -8,7 +8,7 @@ import { s as script$2 } from './OrError-19a62a18.js';
8
8
  import { s as script$3 } from './OrExpansionPanel-65afdfad.js';
9
9
  import { s as script$4 } from './OrHint-73835593.js';
10
10
  import { s as script$5 } from './OrIcon-e2fa4cf8.js';
11
- import { s as script$7, a as InputBoxSize } from './OrInputBox-634230b1.js';
11
+ import { s as script$7, a as InputBoxSize } from './OrInputBox-542d2f2c.js';
12
12
  import { s as script$6 } from './OrInput-4f55c0eb.js';
13
13
  import { s as script$8 } from './OrLabel-7d4fe80b.js';
14
14
  import { s as script$9 } from './OrMenuItem-d001f0f6.js';
@@ -3,7 +3,7 @@ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
3
  import '@vueuse/core';
4
4
  import { s as script$1 } from './OrError-19a62a18.js';
5
5
  import { s as script$2 } from './OrHint-73835593.js';
6
- import { s as script$3, a as InputBoxSize } from './OrInputBox-634230b1.js';
6
+ import { s as script$3, a as InputBoxSize } from './OrInputBox-542d2f2c.js';
7
7
  import { s as script$4 } from './OrLabel-7d4fe80b.js';
8
8
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelText, Fragment, createSlots } from 'vue';
9
9
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
@@ -87,4 +87,3 @@ export * from './or-toast';
87
87
  export * from './or-toast-v3';
88
88
  export * from './or-tooltip';
89
89
  export * from './or-tooltip-v3';
90
- export * from './or-rich-text-editor-v3';
@@ -33,7 +33,7 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
33
33
  export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput-299e2275.js';
34
34
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from '../OrInlineTextEdit-1aa477b5.js';
35
35
  export { s as OrInlineTextareaV3 } from '../OrInlineTextarea-40ee5ffb.js';
36
- 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 { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox-542d2f2c.js';
37
37
  export { I as InputType, s as OrInputV3 } from '../OrInput-4f55c0eb.js';
38
38
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from '../OrSearch-7cb2c91c.js';
39
39
  export { s as OrLabel } from '../OrLabel-876f8729.js';
@@ -89,7 +89,6 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../types-
89
89
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-0665462d.js';
90
90
  export { s as OrTooltip, a as OrTooltipContent } from '../OrTooltip-78cd7f6b.js';
91
91
  export { s as OrTooltipV3 } from '../OrTooltip-1500a1cd.js';
92
- export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-ad5f24ba.js';
93
92
  import 'vue-demi';
94
93
  import 'lodash';
95
94
  import 'vue';
@@ -117,21 +116,3 @@ import '../useResponsive-a02e95b7.js';
117
116
  import '@vueuse/integrations/useFocusTrap';
118
117
  import '../dropdown-open-0d314aa4.js';
119
118
  import '../useOverflow-ac506c65.js';
120
- import 'prosemirror-markdown';
121
- import 'prosemirror-model';
122
- import 'marked';
123
- import '@tiptap/core';
124
- import '@tiptap/starter-kit';
125
- import '@tiptap/extension-underline';
126
- import '@tiptap/extension-link';
127
- import '@tiptap/extension-highlight';
128
- import '@tiptap/extension-heading';
129
- import '@tiptap/extension-placeholder';
130
- import '@tiptap/extension-paragraph';
131
- import '@tiptap/extension-bullet-list';
132
- import '@tiptap/extension-list-item';
133
- import '@tiptap/extension-ordered-list';
134
- import '@tiptap/extension-strike';
135
- import '@tiptap/extension-italic';
136
- import '@tiptap/extension-hard-break';
137
- import '@tiptap/extension-bold';
@@ -17,7 +17,7 @@ import '../../OrTeleport.vue3-8099178c.js';
17
17
  import '../../OrInput-4f55c0eb.js';
18
18
  import '../../OrError-19a62a18.js';
19
19
  import '../../OrHint-73835593.js';
20
- import '../../OrInputBox-634230b1.js';
20
+ import '../../OrInputBox-542d2f2c.js';
21
21
  import '../../OrLabel-7d4fe80b.js';
22
22
  import '../../style-inject.es-4c6f2515.js';
23
23
  import '../../OrSortHeader-9d645226.js';
@@ -18,7 +18,7 @@ import '../../OrPopover-94a8f21d.js';
18
18
  import '@floating-ui/dom';
19
19
  import '../../useResponsive-a02e95b7.js';
20
20
  import '../../OrBottomSheet-0eb33b18.js';
21
- import '../../OrInputBox-634230b1.js';
21
+ import '../../OrInputBox-542d2f2c.js';
22
22
  import '../../OrLabel-7d4fe80b.js';
23
23
  import '../../style-inject.es-4c6f2515.js';
24
24
  import '@vueuse/math';
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { InputBoxVariant } from '.';
2
+ import { InputBoxVariant } from './props';
3
3
  import { InputBoxSize } from './props';
4
4
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
5
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
@@ -1,5 +1,5 @@
1
- export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-634230b1.js';
1
+ export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-542d2f2c.js';
2
2
  import 'vue-demi';
3
- import 'vue';
4
3
  import '../../useClassAttribute-47fdb016.js';
5
4
  import '@vueuse/core';
5
+ import 'vue';
@@ -1,5 +1,5 @@
1
1
  export { I as InputType, s as OrInputV3 } from '../../OrInput-4f55c0eb.js';
2
- export { a as InputSize } from '../../OrInputBox-634230b1.js';
2
+ export { a as InputSize } from '../../OrInputBox-542d2f2c.js';
3
3
  import 'vue-demi';
4
4
  import '../../useClassAttribute-47fdb016.js';
5
5
  import '@vueuse/core';
@@ -1,5 +1,5 @@
1
1
  export { s as OrSearchV3 } from '../../OrSearch-d74891a5.js';
2
- export { a as SearchSize } from '../../OrInputBox-634230b1.js';
2
+ export { a as SearchSize } from '../../OrInputBox-542d2f2c.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
5
5
  import '../../useClassAttribute-47fdb016.js';
@@ -1,5 +1,5 @@
1
1
  export { s as OrSelectV3 } from '../../OrSelect-b3a233cc.js';
2
- export { a as SelectSize } from '../../OrInputBox-634230b1.js';
2
+ export { a as SelectSize } from '../../OrInputBox-542d2f2c.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
5
5
  import '../../useClassAttribute-47fdb016.js';
@@ -1,5 +1,5 @@
1
1
  export { s as OrTextareaV3 } from '../../OrTextarea-98895b2a.js';
2
- export { a as TextareaSize } from '../../OrInputBox-634230b1.js';
2
+ export { a as TextareaSize } from '../../OrInputBox-542d2f2c.js';
3
3
  import 'vue-demi';
4
4
  import '../../useClassAttribute-47fdb016.js';
5
5
  import '@vueuse/core';
@@ -33,7 +33,7 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
33
33
  export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-299e2275.js';
34
34
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
35
35
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-40ee5ffb.js';
36
- 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 { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-542d2f2c.js';
37
37
  export { I as InputType, s as OrInputV3 } from './OrInput-4f55c0eb.js';
38
38
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
39
39
  export { s as OrLabel } from './OrLabel-876f8729.js';
@@ -89,7 +89,6 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-9
89
89
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
90
90
  export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
91
91
  export { s as OrTooltipV3 } from './OrTooltip-1500a1cd.js';
92
- export { s as OrRichTextEditorV3 } from './OrRichTextEditor-ad5f24ba.js';
93
92
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
94
93
  export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
95
94
  export { u as useElevation } from './useElevation-31bfe1f6.js';
@@ -117,24 +116,6 @@ import '@floating-ui/dom';
117
116
  import 'uuid';
118
117
  import 'sortablejs';
119
118
  import '@vueuse/integrations/useFocusTrap';
120
- import 'prosemirror-markdown';
121
- import 'prosemirror-model';
122
- import 'marked';
123
- import '@tiptap/core';
124
- import '@tiptap/starter-kit';
125
- import '@tiptap/extension-underline';
126
- import '@tiptap/extension-link';
127
- import '@tiptap/extension-highlight';
128
- import '@tiptap/extension-heading';
129
- import '@tiptap/extension-placeholder';
130
- import '@tiptap/extension-paragraph';
131
- import '@tiptap/extension-bullet-list';
132
- import '@tiptap/extension-list-item';
133
- import '@tiptap/extension-ordered-list';
134
- import '@tiptap/extension-strike';
135
- import '@tiptap/extension-italic';
136
- import '@tiptap/extension-hard-break';
137
- import '@tiptap/extension-bold';
138
119
 
139
120
  function getAbbreviation(text, limit) {
140
121
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.68.0-beta.2008.0",
3
+ "version": "2.68.0-beta.2016.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -39,21 +39,6 @@
39
39
  "@floating-ui/dom": "0.3.1",
40
40
  "@onereach/styles": "^2.32.0",
41
41
  "@splidejs/splide": "4.0.6",
42
- "@tiptap/core": "2.0.0-beta.209",
43
- "@tiptap/extension-bold": "2.0.0-beta.209",
44
- "@tiptap/extension-bullet-list": "2.0.0-beta.209",
45
- "@tiptap/extension-hard-break": "2.0.0-beta.209",
46
- "@tiptap/extension-heading": "2.0.0-beta.209",
47
- "@tiptap/extension-highlight": "2.0.0-beta.209",
48
- "@tiptap/extension-italic": "2.0.0-beta.209",
49
- "@tiptap/extension-link": "2.0.0-beta.209",
50
- "@tiptap/extension-list-item": "2.0.0-beta.209",
51
- "@tiptap/extension-ordered-list": "2.0.0-beta.209",
52
- "@tiptap/extension-paragraph": "2.0.0-beta.209",
53
- "@tiptap/extension-placeholder": "2.0.0-beta.209",
54
- "@tiptap/extension-strike": "2.0.0-beta.209",
55
- "@tiptap/extension-underline": "2.0.0-beta.209",
56
- "@tiptap/starter-kit": "2.0.0-beta.209",
57
42
  "@types/lodash": "4.14.173",
58
43
  "@types/sortablejs": "1.10.7",
59
44
  "@types/uuid": "8.3.1",
@@ -62,8 +47,6 @@
62
47
  "@vueuse/math": "9.5.0",
63
48
  "codemirror": "6.0.1",
64
49
  "focus-trap": "7.2.0",
65
- "marked": "4.2.12",
66
- "prosemirror-markdown": "^1.10.1",
67
50
  "sortablejs": "1.14.0",
68
51
  "uuid": "8.3.2",
69
52
  "vue-demi": "0.13.11"
@@ -78,7 +61,6 @@
78
61
  "@storybook/testing-library": "^0.0.13",
79
62
  "@storybook/vue3": "6.5.15",
80
63
  "@types/faker": "5.5.9",
81
- "@types/marked": "4.0.8",
82
64
  "@vue/composition-api": "1.7.0",
83
65
  "faker": "5.5.3",
84
66
  "sass": "1.32.8",
@@ -91,7 +73,7 @@
91
73
  "@vue/composition-api": ">=1",
92
74
  "@vueuse/core": ">=9",
93
75
  "lodash": ">=4.17.21",
94
- "portal-vue": ">=2.1.7",
76
+ "portal-vue": ">=2.1.7 <3.0.0",
95
77
  "vue": ">=2.6.14 || >=3.0.5"
96
78
  },
97
79
  "peerDependenciesMeta": {
@@ -124,6 +106,14 @@
124
106
  "types": "./dist/auto/hooks/index.d.ts",
125
107
  "default": "./dist/auto/hooks/index.js"
126
108
  },
109
+ "./esm/v2/*": {
110
+ "types": "./dist/esm/v2/components/*/index.d.ts",
111
+ "default": "./dist/esm/v2/components/*/index.js"
112
+ },
113
+ "./esm/v3/*": {
114
+ "types": "./dist/esm/v3/components/*/index.d.ts",
115
+ "default": "./dist/esm/v3/components/*/index.js"
116
+ },
127
117
  "./esm-css/v2/*": {
128
118
  "types": "./dist/esm-css/v2/components/*/index.d.ts",
129
119
  "default": "./dist/esm-css/v2/components/*/index.js"
@@ -87,4 +87,3 @@ export * from './or-toast';
87
87
  export * from './or-toast-v3';
88
88
  export * from './or-tooltip';
89
89
  export * from './or-tooltip-v3';
90
- export * from './or-rich-text-editor-v3';
@@ -13,7 +13,7 @@
13
13
 
14
14
  <script lang="ts">
15
15
  import { computed, defineComponent, PropType, ref } from 'vue-demi';
16
- import { InputBoxVariant } from '.';
16
+ import { InputBoxVariant } from './props';
17
17
  import { useClassAttribute } from '../../hooks';
18
18
  import { InputBoxSize } from './props';
19
19
  import { InputBoxRoot, InputBoxRootSizes, InputBoxRootVariants } from './styles';
@@ -2,7 +2,7 @@ import { RX_ABBREVIATION_FROM_STRING } from '../constants/regex';
2
2
 
3
3
  export function getAbbreviation(text: string | null, limit?: number): string {
4
4
  if (typeof text != 'string' || !text) return '';
5
- return (text.match(RX_ABBREVIATION_FROM_STRING) ?? [])
6
- .reduce((previous, next) => previous + ((+next === 0 || parseInt(next)) ? parseInt(next) : next[0] || ''), '')
5
+ return ((text.match(RX_ABBREVIATION_FROM_STRING) ?? []) as string[])
6
+ .reduce((previous: string, next: string) => previous + ((+next === 0 || parseInt(next)) ? parseInt(next) : next[0] || ''), '')
7
7
  .toUpperCase().substring(0, limit);
8
8
  }
@@ -1,202 +0,0 @@
1
- import './index-fa6eb4ca.js';
2
- import _ from 'lodash';
3
- import { onClickOutside } from '@vueuse/core';
4
- import { u as useFocusTrap } from './useFocusTrap-d744652a.js';
5
- import { O as OrIconButton } from './OrIconButton-65962c1c.js';
6
- import { O as OrOverlay } from './OrOverlay-47967a8b.js';
7
- import { defineComponent, ref, watch, onBeforeUnmount } from '@vue/composition-api/dist/vue-composition-api.mjs';
8
- import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
9
- import { c as createInjector } from './browser-82dea9ed.js';
10
-
11
- var OrModalSizes;
12
- (function (OrModalSizes) {
13
- OrModalSizes["tiny"] = "tiny";
14
- OrModalSizes["small"] = "small";
15
- OrModalSizes["medium"] = "medium";
16
- OrModalSizes["large"] = "large";
17
- OrModalSizes["fullScreen"] = "fullScreen";
18
- })(OrModalSizes || (OrModalSizes = {}));
19
-
20
- var script = defineComponent({
21
- name: 'OrModal',
22
- components: {
23
- OrIconButton,
24
- OrOverlay
25
- },
26
- props: {
27
- titleText: {
28
- type: String,
29
- required: false,
30
- default: null,
31
- validator: _.isString
32
- },
33
- showClose: {
34
- type: Boolean,
35
- default: true,
36
- validator: _.isBoolean
37
- },
38
- closeOnClickOutside: {
39
- type: Boolean,
40
- required: false,
41
- default: false,
42
- validator: _.isBoolean
43
- },
44
- size: {
45
- type: String,
46
- required: false,
47
- default: OrModalSizes.small
48
- },
49
- isOpen: {
50
- type: Boolean,
51
- required: true,
52
- validator: _.isBoolean
53
- },
54
- isWithoutOverlay: {
55
- type: Boolean,
56
- required: false,
57
- default: false,
58
- validator: _.isBoolean
59
- },
60
- trapFocus: {
61
- type: Boolean,
62
- default: true,
63
- validator: _.isBoolean
64
- }
65
- },
66
- emits: ['close'],
67
- setup(props, {
68
- emit
69
- }) {
70
- const overlay = ref();
71
- let container = ref(null);
72
- let trap = useFocusTrap(container, {
73
- immediate: props.trapFocus,
74
- fallbackFocus: '.container',
75
- allowOutsideClick: true
76
- });
77
- const handleClose = () => emit('close');
78
- onClickOutside(container, evt => {
79
- if (!evt.composedPath().includes(overlay.value.$el)) return;
80
- if (props.closeOnClickOutside) handleClose();
81
- });
82
- const toggleFocusTrap = isNeedToTrap => {
83
- if (isNeedToTrap && props.isOpen) {
84
- trap.activate();
85
- } else {
86
- trap === null || trap === void 0 ? void 0 : trap.deactivate();
87
- }
88
- };
89
- watch(() => props.trapFocus, toggleFocusTrap, {
90
- immediate: true
91
- });
92
- watch(() => props.isOpen, isOpen => {
93
- toggleFocusTrap(false);
94
- if (isOpen) {
95
- container = ref(null);
96
- } else {
97
- trap === null || trap === void 0 ? void 0 : trap.deactivate();
98
- }
99
- });
100
- onBeforeUnmount(() => {
101
- trap === null || trap === void 0 ? void 0 : trap.deactivate();
102
- });
103
- return {
104
- container,
105
- overlay,
106
- handleClose
107
- };
108
- },
109
- computed: {
110
- sizeClass() {
111
- return `is-${this.size}`;
112
- }
113
- }
114
- });
115
-
116
- /* script */
117
- const __vue_script__ = script;
118
-
119
- /* template */
120
- var __vue_render__ = function () {
121
- var _vm = this;
122
- var _h = _vm.$createElement;
123
- var _c = _vm._self._c || _h;
124
- return _vm.isOpen ? _c('div', {
125
- staticClass: "or-modal"
126
- }, [_c('or-overlay', {
127
- ref: "overlay",
128
- attrs: {
129
- "is-active": "",
130
- "is-without-background": _vm.isWithoutOverlay
131
- }
132
- }, [_c('div', {
133
- ref: "container",
134
- class: [_vm.sizeClass, 'container', {
135
- 'is-without-overlay': _vm.isWithoutOverlay
136
- }]
137
- }, [_vm._t("header", function () {
138
- return [_c('div', {
139
- staticClass: "header"
140
- }, [_vm._t("title", function () {
141
- return [_c('div', {
142
- staticClass: "title"
143
- }, [_vm._v("\n " + _vm._s(_vm.titleText) + "\n ")])];
144
- }), _vm._v(" "), _c('or-icon-button', {
145
- directives: [{
146
- name: "show",
147
- rawName: "v-show",
148
- value: _vm.showClose,
149
- expression: "showClose"
150
- }],
151
- attrs: {
152
- "icon": "close",
153
- "icon-color": "neutral-6"
154
- },
155
- on: {
156
- "click": _vm.handleClose
157
- }
158
- })], 2)];
159
- }), _vm._v(" "), _vm._t("content", function () {
160
- return [_c('div', {
161
- staticClass: "content"
162
- }, [_vm._t("default")], 2)];
163
- }), _vm._v(" "), _c('div', {
164
- directives: [{
165
- name: "show",
166
- rawName: "v-show",
167
- value: _vm.$slots.footer,
168
- expression: "$slots.footer"
169
- }],
170
- staticClass: "footer"
171
- }, [_vm._t("footer", null, {
172
- "close": _vm.handleClose
173
- })], 2)], 2)])], 1) : _vm._e();
174
- };
175
- var __vue_staticRenderFns__ = [];
176
-
177
- /* style */
178
- const __vue_inject_styles__ = function (inject) {
179
- if (!inject) return;
180
- inject("data-v-1caff449_0", {
181
- source: "@keyframes spinAround-data-v-1caff449{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-1caff449{from{opacity:1}to{opacity:0}}.or-modal[data-v-1caff449]{position:fixed;top:0;left:0;z-index:50;width:100%;height:100%}.or-modal .or-overlay[data-v-1caff449]{align-items:center;justify-content:center}.or-modal .container[data-v-1caff449]{position:absolute;display:flex;flex-flow:column;max-width:100%;max-height:80%;background-color:var(--c-neutral-0);border-radius:var(--s-2);outline:0}.or-modal .container.is-without-overlay[data-v-1caff449]{box-shadow:0 .125rem .5rem 0 rgba(0,0,0,.1)}.or-modal .container.is-fullScreen[data-v-1caff449]{width:calc(100% - var(--s-7));height:calc(100% - var(--s-7));max-height:calc(100% - var(--s-7));margin:0 auto}.or-modal .container.is-tiny[data-v-1caff449]{width:320px}.or-modal .container.is-small[data-v-1caff449]{width:480px}.or-modal .container.is-medium[data-v-1caff449]{width:700px}.or-modal .container.is-large[data-v-1caff449]{width:1049px}.or-modal .container .header[data-v-1caff449]{display:flex;justify-content:space-between;padding:24px 24px 20px 24px;border-radius:var(--s-2) var(--s-2) 0 0}.or-modal .container .header .title[data-v-1caff449]{font-size:1.125rem;font-weight:700}.or-modal .container .content[data-v-1caff449]{flex-grow:1;padding:0 24px 24px 24px;overflow:auto}.or-modal .container .footer[data-v-1caff449]{padding:16px 24px 24px 24px;border-radius:0 0 var(--s-2) var(--s-2);box-shadow:0 -3px 4px 0 rgba(0,0,0,.08)}",
182
- map: undefined,
183
- media: undefined
184
- });
185
- };
186
- /* scoped */
187
- const __vue_scope_id__ = "data-v-1caff449";
188
- /* module identifier */
189
- const __vue_module_identifier__ = undefined;
190
- /* functional template */
191
- const __vue_is_functional_template__ = false;
192
- /* style inject SSR */
193
-
194
- /* style inject shadow dom */
195
-
196
- const __vue_component__ = /*#__PURE__*/normalizeComponent({
197
- render: __vue_render__,
198
- staticRenderFns: __vue_staticRenderFns__
199
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);
200
- var OrModal = __vue_component__;
201
-
202
- export { OrModal as O, OrModalSizes as a };