@onereach/ui-components 8.0.6-beta.3614.0 → 8.0.6

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 (30) hide show
  1. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
  2. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +1 -1
  3. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +8 -3
  4. package/dist/bundled/v2/components/OrTabsV3/styles.js +2 -2
  5. package/dist/bundled/v2/index.js +1 -1
  6. package/dist/bundled/v2/markdown-3b17cc9b.js +15365 -0
  7. package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-1658b1a2.js → OrRichTextEditor.vue_vue_type_script_lang-667a8827.js} +1 -1
  8. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2
  9. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
  10. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +1 -1
  11. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +9 -6
  12. package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
  13. package/dist/bundled/v3/components/OrTabsV3/styles.js +2 -2
  14. package/dist/bundled/v3/components/index.js +2 -2
  15. package/dist/bundled/v3/index.js +3 -3
  16. package/dist/bundled/v3/markdown-3b17cc9b.js +15365 -0
  17. package/dist/esm/v2/{OrTabs-db6e7f59.js → OrTabs-20560ebc.js} +10 -5
  18. package/dist/esm/v2/components/index.js +1 -1
  19. package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
  20. package/dist/esm/v2/index.js +1 -1
  21. package/dist/esm/v3/{OrTabs-0660d898.js → OrTabs-faae418d.js} +9 -6
  22. package/dist/esm/v3/components/index.js +1 -1
  23. package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
  24. package/dist/esm/v3/index.js +1 -1
  25. package/package.json +3 -2
  26. package/src/components/or-tabs-v3/OrTabs.vue +9 -3
  27. package/src/components/or-tabs-v3/styles.ts +1 -3
  28. package/dist/bundled/v2/markdown-7d2cd3a5.js +0 -8287
  29. package/dist/bundled/v3/markdown-7d2cd3a5.js +0 -8287
  30. /package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-fabab6e0.js → OrTabs.vue_vue_type_script_lang-e1b245b2.js} +0 -0
@@ -21,7 +21,7 @@ const TabsRoot = [
21
21
  // Layout
22
22
  'grid', 'grid-flow-col', 'items-center',
23
23
  // Box
24
- 'overflow-hidden', 'flex-shrink-0',
24
+ 'shrink-0',
25
25
  // Spacing
26
26
  'gap-lg',
27
27
  // Theme
@@ -38,7 +38,7 @@ const TabsContainer = [
38
38
  // Layout
39
39
  'layout-column',
40
40
  // Box
41
- 'h-full', 'overflow-hidden',
41
+ 'h-full',
42
42
  // Spacing
43
43
  'gap-lg'];
44
44
  const TabsContent = [
@@ -191,13 +191,18 @@ var __vue_render__ = function () {
191
191
  _vm.proxyModelValue = tab.value;
192
192
  }
193
193
  }
194
- }, [_vm._v("\n " + _vm._s(tab.label) + "\n ")]);
194
+ }, [_vm._t("tab", function () {
195
+ return [_vm._v("\n " + _vm._s(tab.label) + "\n ")];
196
+ }, {
197
+ "tab": tab,
198
+ "activeTab": _vm.activeTab
199
+ })], 2);
195
200
  }), _vm._v(" "), _vm.tabs.hidden.length > 0 ? [_c('OrTab', {
196
201
  ref: "overflowTab",
197
202
  on: {
198
203
  "click": function ($event) {
199
204
  $event.stopPropagation();
200
- return _vm.overflowMenu.open();
205
+ _vm.overflowMenu && _vm.overflowMenu.open();
201
206
  }
202
207
  }
203
208
  }, [_c('OrIcon', {
@@ -217,7 +222,7 @@ var __vue_render__ = function () {
217
222
  "click": function ($event) {
218
223
  $event.stopPropagation();
219
224
  _vm.proxyModelValue = tab.value;
220
- _vm.overflowMenu.close();
225
+ _vm.overflowMenu && _vm.overflowMenu.close();
221
226
  }
222
227
  }
223
228
  }, [_vm._v("\n " + _vm._s(tab.label) + "\n ")]);
@@ -117,7 +117,7 @@ export { _ as OrTab } from '../OrTab-58821c9b.js';
117
117
  export { _ as OrTabHeaderItem } from '../OrTabHeaderItem-424f2986.js';
118
118
  export { _ as OrTabV3 } from '../OrTab-13db2e49.js';
119
119
  export { _ as OrTabs } from '../OrTabs-62e7e478.js';
120
- export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-db6e7f59.js';
120
+ export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-20560ebc.js';
121
121
  export { _ as OrTag } from '../OrTag-b5803a20.js';
122
122
  export { _ as OrTagInputV3 } from '../OrTagInput-ea068aee.js';
123
123
  export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-d5b9610f.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrTabsV3, T as TabsVariant } from '../../OrTabs-db6e7f59.js';
1
+ export { _ as OrTabsV3, T as TabsVariant } from '../../OrTabs-20560ebc.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import '../../dom-aecadd9a.js';
@@ -117,7 +117,7 @@ export { _ as OrTab } from './OrTab-58821c9b.js';
117
117
  export { _ as OrTabHeaderItem } from './OrTabHeaderItem-424f2986.js';
118
118
  export { _ as OrTabV3 } from './OrTab-13db2e49.js';
119
119
  export { _ as OrTabs } from './OrTabs-62e7e478.js';
120
- export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-db6e7f59.js';
120
+ export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-20560ebc.js';
121
121
  export { _ as OrTag } from './OrTag-b5803a20.js';
122
122
  export { _ as OrTagInputV3 } from './OrTagInput-ea068aee.js';
123
123
  export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-d5b9610f.js';
@@ -9,7 +9,7 @@ import { s as script$3 } from './OrMenuItem-c5d2a427.js';
9
9
  import { s as script$2 } from './OrMenu-72844eb1.js';
10
10
  import './OrPopover-3b07d49e.js';
11
11
  import { s as script$4 } from './OrTab-db771526.js';
12
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, createVNode, createCommentVNode, renderSlot } from 'vue';
12
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, Fragment, renderList, createBlock, withModifiers, withCtx, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode } from 'vue';
13
13
 
14
14
  var TabsVariant;
15
15
  (function (TabsVariant) {
@@ -21,7 +21,7 @@ const TabsRoot = [
21
21
  // Layout
22
22
  'grid', 'grid-flow-col', 'items-center',
23
23
  // Box
24
- 'overflow-hidden', 'flex-shrink-0',
24
+ 'shrink-0',
25
25
  // Spacing
26
26
  'gap-lg',
27
27
  // Theme
@@ -38,7 +38,7 @@ const TabsContainer = [
38
38
  // Layout
39
39
  'layout-column',
40
40
  // Box
41
- 'h-full', 'overflow-hidden',
41
+ 'h-full',
42
42
  // Spacing
43
43
  'gap-lg'];
44
44
  const TabsContent = [
@@ -183,7 +183,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
183
183
  selected: tab.value === _ctx.proxyModelValue,
184
184
  onClick: withModifiers($event => _ctx.proxyModelValue = tab.value, ["stop"])
185
185
  }, {
186
- default: withCtx(() => [createTextVNode(toDisplayString(tab.label), 1 /* TEXT */)]),
186
+ default: withCtx(() => [renderSlot(_ctx.$slots, "tab", {
187
+ tab: tab,
188
+ activeTab: _ctx.activeTab
189
+ }, () => [createTextVNode(toDisplayString(tab.label), 1 /* TEXT */)])]),
187
190
 
188
191
  _: 2 /* DYNAMIC */
189
192
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "onClick"]);
@@ -191,7 +194,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
191
194
  key: 0
192
195
  }, [createVNode(_component_OrTab, {
193
196
  ref: "overflowTab",
194
- onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.overflowMenu.open(), ["stop"]))
197
+ onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.overflowMenu && _ctx.overflowMenu.open(), ["stop"]))
195
198
  }, {
196
199
  default: withCtx(() => [createVNode(_component_OrIcon, {
197
200
  icon: 'more_horiz',
@@ -207,7 +210,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
207
210
  key: tab.value,
208
211
  onClick: withModifiers($event => {
209
212
  _ctx.proxyModelValue = tab.value;
210
- _ctx.overflowMenu.close();
213
+ _ctx.overflowMenu && _ctx.overflowMenu.close();
211
214
  }, ["stop"])
212
215
  }, {
213
216
  default: withCtx(() => [createTextVNode(toDisplayString(tab.label), 1 /* TEXT */)]),
@@ -114,7 +114,7 @@ export { s as OrTab } from '../OrTab-d8d4e871.js';
114
114
  export { s as OrTabHeaderItem } from '../OrTabHeaderItem-c2af7ca3.js';
115
115
  export { s as OrTabV3 } from '../OrTab-db771526.js';
116
116
  export { s as OrTabs } from '../OrTabs-3da3ea89.js';
117
- export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-0660d898.js';
117
+ export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-faae418d.js';
118
118
  export { s as OrTag } from '../OrTag-1b3b1296.js';
119
119
  export { s as OrTagInputV3 } from '../OrTagInput-bdbf9b9f.js';
120
120
  export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-a37e8e69.js';
@@ -1,4 +1,4 @@
1
- export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs-0660d898.js';
1
+ export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs-faae418d.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import '../../dom-aecadd9a.js';
@@ -114,7 +114,7 @@ export { s as OrTab } from './OrTab-d8d4e871.js';
114
114
  export { s as OrTabHeaderItem } from './OrTabHeaderItem-c2af7ca3.js';
115
115
  export { s as OrTabV3 } from './OrTab-db771526.js';
116
116
  export { s as OrTabs } from './OrTabs-3da3ea89.js';
117
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-0660d898.js';
117
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-faae418d.js';
118
118
  export { s as OrTag } from './OrTag-1b3b1296.js';
119
119
  export { s as OrTagInputV3 } from './OrTagInput-bdbf9b9f.js';
120
120
  export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-a37e8e69.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "8.0.6-beta.3614.0",
3
+ "version": "8.0.6",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -175,5 +175,6 @@
175
175
  "default": "./dist/bundled/v3/components/*/index.js"
176
176
  },
177
177
  "./package.json": "./package.json"
178
- }
178
+ },
179
+ "gitHead": "8658802f434b8151675b95e12710a87a59e4cc6f"
179
180
  }
@@ -11,13 +11,19 @@
11
11
  :selected="tab.value === proxyModelValue"
12
12
  @click.stop="proxyModelValue = tab.value"
13
13
  >
14
- {{ tab.label }}
14
+ <slot
15
+ name="tab"
16
+ :tab="tab"
17
+ :active-tab="activeTab"
18
+ >
19
+ {{ tab.label }}
20
+ </slot>
15
21
  </OrTab>
16
22
 
17
23
  <template v-if="tabs.hidden.length > 0">
18
24
  <OrTab
19
25
  ref="overflowTab"
20
- @click.stop="overflowMenu.open()"
26
+ @click.stop="overflowMenu && overflowMenu.open()"
21
27
  >
22
28
  <OrIcon
23
29
  :icon="'more_horiz'"
@@ -32,7 +38,7 @@
32
38
  <OrMenuItem
33
39
  v-for="tab in tabs.hidden"
34
40
  :key="tab.value"
35
- @click.stop="proxyModelValue = tab.value; overflowMenu.close()"
41
+ @click.stop="proxyModelValue = tab.value; overflowMenu && overflowMenu.close()"
36
42
  >
37
43
  {{ tab.label }}
38
44
  </OrMenuItem>
@@ -8,8 +8,7 @@ export const TabsRoot: string[] = [
8
8
  'items-center',
9
9
 
10
10
  // Box
11
- 'overflow-hidden',
12
- 'flex-shrink-0',
11
+ 'shrink-0',
13
12
 
14
13
  // Spacing
15
14
  'gap-lg',
@@ -39,7 +38,6 @@ export const TabsContainer: string[] = [
39
38
 
40
39
  // Box
41
40
  'h-full',
42
- 'overflow-hidden',
43
41
 
44
42
  // Spacing
45
43
  'gap-lg',