@onereach/ui-components 2.62.7-beta.1928.0 → 2.62.7-beta.1929.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.
@@ -151,7 +151,7 @@ var script = defineComponent({
151
151
  default: false
152
152
  }
153
153
  },
154
- emits: ['update:modelValue', 'input', 'focus', 'blur'],
154
+ emits: ['update:modelValue', 'input'],
155
155
  expose: ['root'],
156
156
  setup(props, context) {
157
157
  // Refs
@@ -169,7 +169,7 @@ var __vue_render__ = function () {
169
169
  return _c('OrTab', {
170
170
  key: tab.value,
171
171
  attrs: {
172
- "selected": _vm.proxyModelValue === tab.value
172
+ "selected": tab.value === _vm.proxyModelValue
173
173
  },
174
174
  on: {
175
175
  "click": function ($event) {
package/dist/v2/index.js CHANGED
@@ -63,7 +63,7 @@ export { _ as OrRadio } from './OrRadio-514e8de8.js';
63
63
  export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
64
64
  export { _ as OrRadioV3 } from './OrRadio-4ba56887.js';
65
65
  export { _ as OrSearchV3 } from './OrSearch-978a3a6e.js';
66
- export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-58b5db14.js';
66
+ export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-908d951a.js';
67
67
  export { _ as OrSelect } from './OrSelect-ea27a70e.js';
68
68
  export { _ as OrSelectV3 } from './OrSelect-c6d0a69e.js';
69
69
  export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
@@ -78,7 +78,7 @@ export { _ as OrTab } from './OrTab-8dfdeca0.js';
78
78
  export { _ as OrTabHeaderItem } from './OrTabHeaderItem-6a08756e.js';
79
79
  export { _ as OrTabV3 } from './OrTab-4e6ff742.js';
80
80
  export { _ as OrTabs } from './OrTabs-12138346.js';
81
- export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-b4a9740b.js';
81
+ export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-f2a60b41.js';
82
82
  export { _ as OrTag } from './OrTag-140d4f72.js';
83
83
  export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-1ced4e58.js';
84
84
  export { _ as OrTeleport } from './OrTeleportVue2-fce4676d.js';
package/dist/v2/index2.js CHANGED
@@ -63,7 +63,7 @@ export { _ as OrRadio } from './OrRadio-514e8de8.js';
63
63
  export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
64
64
  export { _ as OrRadioV3 } from './OrRadio-4ba56887.js';
65
65
  export { _ as OrSearchV3 } from './OrSearch-978a3a6e.js';
66
- export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-58b5db14.js';
66
+ export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-908d951a.js';
67
67
  export { _ as OrSelect } from './OrSelect-ea27a70e.js';
68
68
  export { _ as OrSelectV3 } from './OrSelect-c6d0a69e.js';
69
69
  export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
@@ -78,7 +78,7 @@ export { _ as OrTab } from './OrTab-8dfdeca0.js';
78
78
  export { _ as OrTabHeaderItem } from './OrTabHeaderItem-6a08756e.js';
79
79
  export { _ as OrTabV3 } from './OrTab-4e6ff742.js';
80
80
  export { _ as OrTabs } from './OrTabs-12138346.js';
81
- export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-b4a9740b.js';
81
+ export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-f2a60b41.js';
82
82
  export { _ as OrTag } from './OrTag-140d4f72.js';
83
83
  export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-1ced4e58.js';
84
84
  export { _ as OrTeleport } from './OrTeleportVue2-fce4676d.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-58b5db14.js';
1
+ export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-908d951a.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -1,4 +1,4 @@
1
- export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-b4a9740b.js';
1
+ export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-f2a60b41.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -128,7 +128,7 @@ var script = defineComponent({
128
128
  default: false
129
129
  }
130
130
  },
131
- emits: ['update:modelValue', 'input', 'focus', 'blur'],
131
+ emits: ['update:modelValue', 'input'],
132
132
  expose: ['root'],
133
133
  setup(props, context) {
134
134
  // Refs
@@ -166,7 +166,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
166
166
  }), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs.normal, tab => {
167
167
  return openBlock(), createBlock(_component_OrTab, {
168
168
  key: tab.value,
169
- selected: _ctx.proxyModelValue === tab.value,
169
+ selected: tab.value === _ctx.proxyModelValue,
170
170
  onClick: withModifiers($event => _ctx.proxyModelValue = tab.value, ["stop"])
171
171
  }, {
172
172
  default: withCtx(() => [createTextVNode(toDisplayString(tab.label), 1 /* TEXT */)]),
package/dist/v3/index.js CHANGED
@@ -58,7 +58,7 @@ export { s as OrRadio } from './OrRadio-c3ab11f2.js';
58
58
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
59
59
  export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
60
60
  export { s as OrSearchV3 } from './OrSearch-375eab55.js';
61
- export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e45af169.js';
61
+ export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e6fdc79b.js';
62
62
  export { s as OrSelect } from './OrSelect-056731af.js';
63
63
  export { s as OrSelectV3 } from './OrSelect-52cfb10d.js';
64
64
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
@@ -73,7 +73,7 @@ export { s as OrTab } from './OrTab-bc98be02.js';
73
73
  export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
74
74
  export { s as OrTabV3 } from './OrTab-97044946.js';
75
75
  export { s as OrTabs } from './OrTabs-d3812c11.js';
76
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
76
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-ac0be933.js';
77
77
  export { s as OrTag } from './OrTag-7e24fdbc.js';
78
78
  export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-deaff080.js';
79
79
  export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
package/dist/v3/index2.js CHANGED
@@ -58,7 +58,7 @@ export { s as OrRadio } from './OrRadio-c3ab11f2.js';
58
58
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
59
59
  export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
60
60
  export { s as OrSearchV3 } from './OrSearch-375eab55.js';
61
- export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e45af169.js';
61
+ export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e6fdc79b.js';
62
62
  export { s as OrSelect } from './OrSelect-056731af.js';
63
63
  export { s as OrSelectV3 } from './OrSelect-52cfb10d.js';
64
64
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
@@ -73,7 +73,7 @@ export { s as OrTab } from './OrTab-bc98be02.js';
73
73
  export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
74
74
  export { s as OrTabV3 } from './OrTab-97044946.js';
75
75
  export { s as OrTabs } from './OrTabs-d3812c11.js';
76
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
76
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-ac0be933.js';
77
77
  export { s as OrTag } from './OrTag-7e24fdbc.js';
78
78
  export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-deaff080.js';
79
79
  export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
@@ -1,4 +1,4 @@
1
- export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e45af169.js';
1
+ export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e6fdc79b.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -1,4 +1,4 @@
1
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
1
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-ac0be933.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.62.7-beta.1928.0",
3
+ "version": "2.62.7-beta.1929.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -41,14 +41,6 @@ export default {
41
41
  input: {
42
42
  table: { disable: true },
43
43
  },
44
-
45
- focus: {
46
- table: { disable: true },
47
- },
48
-
49
- blur: {
50
- table: { disable: true },
51
- },
52
44
  },
53
45
 
54
46
  parameters: {
@@ -84,8 +76,6 @@ const Template: StoryFn<typeof OrSegmentedControl> = (args) => ({
84
76
  model,
85
77
  onUpdateModelValue: action('update:modelValue'),
86
78
  onInput: action('input'),
87
- onFocus: action('focus'),
88
- onBlur: action('blur'),
89
79
  };
90
80
  },
91
81
 
@@ -65,8 +65,6 @@ export default defineComponent({
65
65
  'update:modelValue',
66
66
 
67
67
  'input',
68
- 'focus',
69
- 'blur',
70
68
  ],
71
69
 
72
70
  expose: [
@@ -1,6 +1,6 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
  import { Meta, StoryFn } from '@storybook/vue3';
3
- import { ref } from 'vue-demi';
3
+ import { ref, watch } from 'vue-demi';
4
4
  import OrTabsDocs from './OrTabs.docs.mdx';
5
5
  import OrTabs from './OrTabs.vue';
6
6
  import { TabsVariant } from './props';
@@ -63,11 +63,16 @@ const Template: StoryFn<typeof OrTabs> = (args) => ({
63
63
 
64
64
  setup() {
65
65
  // State
66
- const value = ref<string>();
66
+ const model = ref<string>();
67
+
68
+ // Effects
69
+ watch(model, (value) => {
70
+ console.debug(value);
71
+ });
67
72
 
68
73
  return {
69
74
  args,
70
- value,
75
+ model,
71
76
  onUpdateModelValue: action('update:modelValue'),
72
77
  onInput: action('input'),
73
78
  };
@@ -75,7 +80,7 @@ const Template: StoryFn<typeof OrTabs> = (args) => ({
75
80
 
76
81
  template: `
77
82
  <OrTabs
78
- v-model="value"
83
+ v-model="model"
79
84
  v-bind="args"
80
85
  @update:modelValue="onUpdateModelValue"
81
86
  @input="onInput"
@@ -8,7 +8,7 @@
8
8
  <OrTab
9
9
  v-for="tab in tabs.normal"
10
10
  :key="tab.value"
11
- :selected="proxyModelValue === tab.value"
11
+ :selected="tab.value === proxyModelValue"
12
12
  @click.stop="proxyModelValue = tab.value"
13
13
  >
14
14
  {{ tab.label }}