@onereach/ui-components 2.68.0-beta.2008.0 → 2.68.0-beta.2017.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 (97) 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-empty-state-v3/OrEmptyState.stories3.d.ts +44 -0
  9. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +146 -0
  10. package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +3 -0
  11. package/dist/bundled/v2/components/or-empty-state-v3/index.js +242 -0
  12. package/dist/bundled/v2/components/or-empty-state-v3/props.d.ts +4 -0
  13. package/dist/bundled/v2/components/or-empty-state-v3/styles.d.ts +15 -0
  14. package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +2 -0
  15. package/dist/bundled/v2/components/or-modal/index.js +1 -2
  16. package/dist/bundled/v2/index.js +4 -8
  17. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-5fe573eb.js → OrCode.vue_vue_type_script_lang-ef5e7f04.js} +116 -3
  18. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-4451e782.js → OrConfirm.vue_vue_type_script_lang-0f16fc67.js} +2 -2
  19. package/dist/bundled/v3/{OrModal-bbabef06.js → OrModal-868160ef.js} +1 -1
  20. package/dist/bundled/{v2/useFocusTrap-d744652a.js → v3/OrModal.vue_vue_type_script_lang-a1ed2ebb.js} +126 -4
  21. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2fdbd2f2.js → OrTabs.vue_vue_type_script_lang-ca57f9d9.js} +36 -10
  22. package/dist/bundled/v3/components/index.d.ts +0 -1
  23. package/dist/bundled/v3/components/index.js +5 -10
  24. package/dist/bundled/v3/components/or-code/index.js +3 -5
  25. package/dist/bundled/v3/components/or-confirm/index.js +3 -4
  26. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +44 -0
  27. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +146 -0
  28. package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +3 -0
  29. package/dist/bundled/v3/components/or-empty-state-v3/index.js +217 -0
  30. package/dist/bundled/v3/components/or-empty-state-v3/props.d.ts +4 -0
  31. package/dist/bundled/v3/components/or-empty-state-v3/styles.d.ts +15 -0
  32. package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +2 -0
  33. package/dist/bundled/v3/components/or-modal/index.js +1 -2
  34. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  35. package/dist/bundled/v3/index.js +182 -278
  36. package/dist/esm/v2/components/index.d.ts +0 -1
  37. package/dist/esm/v2/components/index.js +0 -19
  38. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +44 -0
  39. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +146 -0
  40. package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +3 -0
  41. package/dist/esm/v2/components/or-empty-state-v3/index.js +240 -0
  42. package/dist/esm/v2/components/or-empty-state-v3/props.d.ts +4 -0
  43. package/dist/esm/v2/components/or-empty-state-v3/styles.d.ts +15 -0
  44. package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +2 -0
  45. package/dist/esm/v2/index.js +0 -19
  46. package/dist/esm/v3/components/index.d.ts +0 -1
  47. package/dist/esm/v3/components/index.js +0 -19
  48. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +44 -0
  49. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +146 -0
  50. package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +3 -0
  51. package/dist/esm/v3/components/or-empty-state-v3/index.js +217 -0
  52. package/dist/esm/v3/components/or-empty-state-v3/props.d.ts +4 -0
  53. package/dist/esm/v3/components/or-empty-state-v3/styles.d.ts +15 -0
  54. package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +2 -0
  55. package/dist/esm/v3/index.js +0 -19
  56. package/package.json +1 -19
  57. package/src/components/index.ts +0 -1
  58. package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +221 -0
  59. package/src/components/or-empty-state-v3/OrEmptyState.vue +185 -0
  60. package/src/components/or-empty-state-v3/index.ts +3 -0
  61. package/src/components/or-empty-state-v3/props.ts +4 -0
  62. package/src/components/or-empty-state-v3/styles.ts +121 -0
  63. package/src/components/or-empty-state-v3/types.ts +3 -0
  64. package/dist/bundled/v2/OrModal-71d33219.js +0 -202
  65. package/dist/bundled/v2/OrRichTextEditor-4a41e294.js +0 -36832
  66. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  67. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  68. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  69. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +0 -25
  70. package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  71. package/dist/bundled/v2/index.es-3f39f316.js +0 -115
  72. package/dist/bundled/v3/OrMenu-08aa60de.js +0 -29
  73. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-a599dfe7.js +0 -128
  74. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-f5d3e39b.js +0 -36712
  75. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  76. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  77. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  78. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +0 -26
  79. package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  80. package/dist/bundled/v3/index.es-3f39f316.js +0 -115
  81. package/dist/esm/v2/OrRichTextEditor-11967cd9.js +0 -520
  82. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  83. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  84. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  85. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -39
  86. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  87. package/dist/esm/v3/OrRichTextEditor-ad5f24ba.js +0 -490
  88. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  89. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  90. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  91. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -38
  92. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  93. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
  94. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -62
  95. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -526
  96. package/src/components/or-rich-text-editor-v3/index.ts +0 -1
  97. package/src/components/or-rich-text-editor-v3/styles.ts +0 -65
@@ -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 };