@onereach/ui-components 4.4.1-beta.2708.0 → 4.4.1

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 (42) hide show
  1. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -2
  2. package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +4 -4
  3. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +2 -6
  4. package/dist/bundled/v2/components/OrTabsV3/OrTabs.vue.d.ts +0 -2
  5. package/dist/bundled/v2/components/OrTabsV3/styles.d.ts +0 -1
  6. package/dist/bundled/v2/components/OrTabsV3/styles.js +1 -6
  7. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-2c4c9f9d.js → OrSelect.vue_vue_type_script_lang-87ff7d15.js} +2 -2
  8. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-014663ff.js → OrTabs.vue_vue_type_script_lang-6d47e560.js} +1 -3
  9. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
  10. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +4 -4
  11. package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
  12. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +5 -7
  13. package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +0 -1
  14. package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
  15. package/dist/bundled/v3/components/OrTabsV3/styles.d.ts +0 -1
  16. package/dist/bundled/v3/components/OrTabsV3/styles.js +1 -6
  17. package/dist/bundled/v3/components/index.js +2 -2
  18. package/dist/bundled/v3/index.js +2 -2
  19. package/dist/esm/v2/{OrSelect-a4c34099.js → OrSelect-3731427d.js} +2 -2
  20. package/dist/esm/v2/{OrTabs-dd38e4ab.js → OrTabs-87069663.js} +1 -10
  21. package/dist/esm/v2/components/index.js +2 -2
  22. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +4 -4
  23. package/dist/esm/v2/components/or-select-v3/index.js +1 -1
  24. package/dist/esm/v2/components/or-tabs-v3/OrTabs.vue.d.ts +0 -2
  25. package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
  26. package/dist/esm/v2/components/or-tabs-v3/styles.d.ts +0 -1
  27. package/dist/esm/v2/index.js +2 -2
  28. package/dist/esm/v3/{OrSelect-046e8e36.js → OrSelect-c811ecba.js} +2 -2
  29. package/dist/esm/v3/{OrTabs-d058761d.js → OrTabs-3d9c1a8b.js} +3 -12
  30. package/dist/esm/v3/components/index.js +2 -2
  31. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +4 -4
  32. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  33. package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +0 -1
  34. package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
  35. package/dist/esm/v3/components/or-tabs-v3/styles.d.ts +0 -1
  36. package/dist/esm/v3/index.js +2 -2
  37. package/package.json +3 -2
  38. package/src/components/or-select-v3/OrSelect.vue +2 -2
  39. package/src/components/or-tabs-v3/OrTabs.vue +2 -7
  40. package/src/components/or-tabs-v3/styles.ts +0 -8
  41. package/src/components/or-avatar-v3/OrAvatar.docs.mdx +0 -7
  42. package/src/components/or-avatar-v3/OrAvatar.stories3.ts +0 -141
@@ -84,11 +84,11 @@ var script = defineComponent({
84
84
  props: {
85
85
  options: {
86
86
  type: Array,
87
- default: []
87
+ default: () => []
88
88
  },
89
89
  searchOptions: {
90
90
  type: Array,
91
- default: []
91
+ default: () => []
92
92
  },
93
93
  modelValue: {
94
94
  type: [String, Number, Array],
@@ -41,11 +41,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
41
41
  }> & import("@vue/composition-api").Data, {}, {}, {
42
42
  options: {
43
43
  type: PropType<SelectOption[]>;
44
- default: SelectOption[];
44
+ default: () => never[];
45
45
  };
46
46
  searchOptions: {
47
47
  type: PropType<SelectOption[]>;
48
- default: SelectOption[];
48
+ default: () => never[];
49
49
  };
50
50
  modelValue: {
51
51
  type: PropType<string | number | (string | number)[]>;
@@ -106,11 +106,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
106
106
  }, import("@vue/composition-api").ExtractPropTypes<{
107
107
  options: {
108
108
  type: PropType<SelectOption[]>;
109
- default: SelectOption[];
109
+ default: () => never[];
110
110
  };
111
111
  searchOptions: {
112
112
  type: PropType<SelectOption[]>;
113
- default: SelectOption[];
113
+ default: () => never[];
114
114
  };
115
115
  modelValue: {
116
116
  type: PropType<string | number | (string | number)[]>;
@@ -1,7 +1,7 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue-demi';
3
3
  import { TabsVariant } from './props.js';
4
- import { TabsRoot, TabsRootVariants, TabsContainer } from './styles.js';
4
+ import { TabsRoot, TabsRootVariants } from './styles.js';
5
5
  import __vue_component__$1 from '../OrIconV3/OrIcon.js';
6
6
  import __vue_component__$2 from '../OrMenuV3/OrMenu.js';
7
7
  import __vue_component__$3 from '../OrMenuItemV3/OrMenuItem.js';
@@ -71,7 +71,6 @@ var script = defineComponent({
71
71
  });
72
72
  // Styles
73
73
  const rootStyles = computed(() => ['or-tabs-v3', ...TabsRoot, ...TabsRootVariants[props.variant]]);
74
- const containerStyles = computed(() => [...TabsContainer]);
75
74
  // State
76
75
  const tabs = reactive({
77
76
  normal: [],
@@ -141,7 +140,6 @@ var script = defineComponent({
141
140
  overflowMenu,
142
141
  overflowMenuRoot,
143
142
  rootStyles,
144
- containerStyles,
145
143
  tabs,
146
144
  proxyModelValue,
147
145
  activeTab
@@ -157,9 +155,7 @@ var __vue_render__ = function () {
157
155
  var _vm = this;
158
156
  var _h = _vm.$createElement;
159
157
  var _c = _vm._self._c || _h;
160
- return _c('div', {
161
- class: _vm.containerStyles
162
- }, [_c('div', _vm._b({
158
+ return _c('div', [_c('div', _vm._b({
163
159
  ref: "root",
164
160
  class: _vm.rootStyles
165
161
  }, 'div', _vm.$attrs, false), [_vm._l(_vm.tabs.normal, function (tab) {
@@ -16,7 +16,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
16
16
  } | {}, true> | undefined>;
17
17
  overflowMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
18
18
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
19
- containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
20
19
  tabs: {
21
20
  normal: {
22
21
  value: string | number;
@@ -76,7 +75,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
76
75
  } | {}, true> | undefined>;
77
76
  overflowMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
78
77
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
79
- containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
80
78
  tabs: {
81
79
  normal: {
82
80
  value: string | number;
@@ -1,4 +1,3 @@
1
1
  import { TabsVariant } from './props';
2
2
  export declare const TabsRoot: string[];
3
3
  export declare const TabsRootVariants: Record<TabsVariant, string[]>;
4
- export declare const TabsContainer: string[];
@@ -15,10 +15,5 @@ const TabsRootVariants = {
15
15
  // Layout
16
16
  'auto-cols-auto']
17
17
  };
18
- const TabsContainer = [
19
- // Layout
20
- 'layout-column',
21
- // Spacing
22
- 'gap-lg'];
23
18
 
24
- export { TabsContainer, TabsRoot, TabsRootVariants };
19
+ export { TabsRoot, TabsRootVariants };
@@ -53,11 +53,11 @@ var script = defineComponent({
53
53
  props: {
54
54
  options: {
55
55
  type: Array,
56
- default: []
56
+ default: () => []
57
57
  },
58
58
  searchOptions: {
59
59
  type: Array,
60
- default: []
60
+ default: () => []
61
61
  },
62
62
  modelValue: {
63
63
  type: [String, Number, Array],
@@ -1,7 +1,7 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue-demi';
3
3
  import { TabsVariant } from './components/OrTabsV3/props.js';
4
- import { TabsRoot, TabsRootVariants, TabsContainer } from './components/OrTabsV3/styles.js';
4
+ import { TabsRoot, TabsRootVariants } from './components/OrTabsV3/styles.js';
5
5
  import './components/OrIconV3/OrIcon.js';
6
6
  import './components/OrMenuV3/OrMenu.js';
7
7
  import './components/OrMenuItemV3/OrMenuItem.js';
@@ -55,7 +55,6 @@ var script = defineComponent({
55
55
  });
56
56
  // Styles
57
57
  const rootStyles = computed(() => ['or-tabs-v3', ...TabsRoot, ...TabsRootVariants[props.variant]]);
58
- const containerStyles = computed(() => [...TabsContainer]);
59
58
  // State
60
59
  const tabs = reactive({
61
60
  normal: [],
@@ -125,7 +124,6 @@ var script = defineComponent({
125
124
  overflowMenu,
126
125
  overflowMenuRoot,
127
126
  rootStyles,
128
- containerStyles,
129
127
  tabs,
130
128
  proxyModelValue,
131
129
  activeTab
@@ -1,5 +1,5 @@
1
- import { s as script } from '../../OrSelect.vue_vue_type_script_lang-2c4c9f9d.js';
2
- export { s as default } from '../../OrSelect.vue_vue_type_script_lang-2c4c9f9d.js';
1
+ import { s as script } from '../../OrSelect.vue_vue_type_script_lang-87ff7d15.js';
2
+ export { s as default } from '../../OrSelect.vue_vue_type_script_lang-87ff7d15.js';
3
3
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createElementVNode, Fragment, renderList, createVNode, withModifiers, vShow } from 'vue';
4
4
  import 'vue-demi';
5
5
  import './styles.js';
@@ -4,11 +4,11 @@ import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './typ
4
4
  declare const _default: import("vue-demi").DefineComponent<{
5
5
  options: {
6
6
  type: PropType<SelectOption[]>;
7
- default: SelectOption[];
7
+ default: () => never[];
8
8
  };
9
9
  searchOptions: {
10
10
  type: PropType<SelectOption[]>;
11
- default: SelectOption[];
11
+ default: () => never[];
12
12
  };
13
13
  modelValue: {
14
14
  type: PropType<string | number | (string | number)[]>;
@@ -98,11 +98,11 @@ declare const _default: import("vue-demi").DefineComponent<{
98
98
  }, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("search" | "update:modelValue" | "focus" | "blur")[], "search" | "update:modelValue" | "focus" | "blur", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
99
99
  options: {
100
100
  type: PropType<SelectOption[]>;
101
- default: SelectOption[];
101
+ default: () => never[];
102
102
  };
103
103
  searchOptions: {
104
104
  type: PropType<SelectOption[]>;
105
- default: SelectOption[];
105
+ default: () => never[];
106
106
  };
107
107
  modelValue: {
108
108
  type: PropType<string | number | (string | number)[]>;
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from '../../OrSelect.vue_vue_type_script_lang-2c4c9f9d.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect.vue_vue_type_script_lang-87ff7d15.js';
2
2
  export { InputBoxSize as SelectSize } from '../OrInputBoxV3/props.js';
3
3
  import 'vue-demi';
4
4
  import './styles.js';
@@ -1,6 +1,6 @@
1
- import { s as script } from '../../OrTabs.vue_vue_type_script_lang-014663ff.js';
2
- export { s as default } from '../../OrTabs.vue_vue_type_script_lang-014663ff.js';
3
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, createVNode, createCommentVNode, renderSlot } from 'vue';
1
+ import { s as script } from '../../OrTabs.vue_vue_type_script_lang-6d47e560.js';
2
+ export { s as default } from '../../OrTabs.vue_vue_type_script_lang-6d47e560.js';
3
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, mergeProps, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, createVNode, createCommentVNode, renderSlot } from 'vue';
4
4
  import '@vueuse/core';
5
5
  import 'vue-demi';
6
6
  import './props.js';
@@ -41,9 +41,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
41
41
  const _component_OrIcon = resolveComponent("OrIcon");
42
42
  const _component_OrMenuItem = resolveComponent("OrMenuItem");
43
43
  const _component_OrMenu = resolveComponent("OrMenu");
44
- return openBlock(), createElementBlock("div", {
45
- class: normalizeClass(_ctx.containerStyles)
46
- }, [createElementVNode("div", mergeProps({
44
+ return openBlock(), createElementBlock("div", null, [createElementVNode("div", mergeProps({
47
45
  ref: "root"
48
46
  }, _ctx.$attrs, {
49
47
  class: _ctx.rootStyles
@@ -87,7 +85,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
87
85
  }), 128 /* KEYED_FRAGMENT */))]),
88
86
 
89
87
  _: 1 /* STABLE */
90
- }, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */), renderSlot(_ctx.$slots, String(_ctx.proxyModelValue))], 2 /* CLASS */);
88
+ }, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */), renderSlot(_ctx.$slots, String(_ctx.proxyModelValue))]);
91
89
  }
92
90
 
93
91
  script.render = render;
@@ -21,7 +21,6 @@ declare const _default: import("vue-demi").DefineComponent<{
21
21
  overflowMenu: import("vue-demi").Ref<any>;
22
22
  overflowMenuRoot: import("vue-demi").ComputedRef<any>;
23
23
  rootStyles: import("vue-demi").ComputedRef<string[]>;
24
- containerStyles: import("vue-demi").ComputedRef<string[]>;
25
24
  tabs: {
26
25
  normal: {
27
26
  value: string | number;
@@ -1,5 +1,5 @@
1
1
  export { TabsVariant } from './props.js';
2
- export { s as OrTabsV3 } from '../../OrTabs.vue_vue_type_script_lang-014663ff.js';
2
+ export { s as OrTabsV3 } from '../../OrTabs.vue_vue_type_script_lang-6d47e560.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
5
  import './styles.js';
@@ -1,4 +1,3 @@
1
1
  import { TabsVariant } from './props';
2
2
  export declare const TabsRoot: string[];
3
3
  export declare const TabsRootVariants: Record<TabsVariant, string[]>;
4
- export declare const TabsContainer: string[];
@@ -15,10 +15,5 @@ const TabsRootVariants = {
15
15
  // Layout
16
16
  'auto-cols-auto']
17
17
  };
18
- const TabsContainer = [
19
- // Layout
20
- 'layout-column',
21
- // Spacing
22
- 'gap-lg'];
23
18
 
24
- export { TabsContainer, TabsRoot, TabsRootVariants };
19
+ export { TabsRoot, TabsRootVariants };
@@ -110,7 +110,7 @@ export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-1a4ebba2.j
110
110
  export { s as OrSegmentedControlV3 } from '../OrSegmentedControl.vue_vue_type_script_lang-ed0d9fe7.js';
111
111
  export { SegmentedControlSize } from './OrSegmentedControlV3/props.js';
112
112
  export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-29a48259.js';
113
- export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-2c4c9f9d.js';
113
+ export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-87ff7d15.js';
114
114
  export { s as OrSidebar } from '../OrSidebar.vue_vue_type_script_lang-00e9cda7.js';
115
115
  export { OrSidebarSide } from './OrSidebar/constants.js';
116
116
  export { s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-5723e223.js';
@@ -131,7 +131,7 @@ export { s as OrTab } from '../OrTab.vue_vue_type_script_lang-71e4fa50.js';
131
131
  export { s as OrTabHeaderItem } from '../OrTabHeaderItem.vue_vue_type_script_lang-29f331ec.js';
132
132
  export { s as OrTabV3 } from '../OrTab.vue_vue_type_script_lang-79f2f523.js';
133
133
  export { s as OrTabs } from '../OrTabs.vue_vue_type_script_lang-5836b8bd.js';
134
- export { s as OrTabsV3 } from '../OrTabs.vue_vue_type_script_lang-014663ff.js';
134
+ export { s as OrTabsV3 } from '../OrTabs.vue_vue_type_script_lang-6d47e560.js';
135
135
  export { TabsVariant } from './OrTabsV3/props.js';
136
136
  export { s as OrTag } from '../OrTag.vue_vue_type_script_lang-4e98d8a0.js';
137
137
  export { s as OrTagV3 } from '../OrTag.vue_vue_type_script_lang-8643b784.js';
@@ -78,7 +78,7 @@ export { s as OrSegmentedControlV3 } from './OrSegmentedControl.vue_vue_type_scr
78
78
  import './components/OrSelect/OrSelect.js';
79
79
  export { s as OrSelect } from './OrSelect.vue_vue_type_script_lang-29a48259.js';
80
80
  import './components/OrSelectV3/OrSelect.js';
81
- export { s as OrSelectV3 } from './OrSelect.vue_vue_type_script_lang-2c4c9f9d.js';
81
+ export { s as OrSelectV3 } from './OrSelect.vue_vue_type_script_lang-87ff7d15.js';
82
82
  import './components/OrSidebar/OrSidebar.js';
83
83
  export { s as OrSidebar } from './OrSidebar.vue_vue_type_script_lang-00e9cda7.js';
84
84
  import './components/OrSidebarV3/OrSidebar.js';
@@ -110,7 +110,7 @@ export { s as OrTab } from './OrTab.vue_vue_type_script_lang-71e4fa50.js';
110
110
  import './components/OrTabs/OrTabs.js';
111
111
  export { s as OrTabs } from './OrTabs.vue_vue_type_script_lang-5836b8bd.js';
112
112
  import './components/OrTabsV3/OrTabs.js';
113
- export { s as OrTabsV3 } from './OrTabs.vue_vue_type_script_lang-014663ff.js';
113
+ export { s as OrTabsV3 } from './OrTabs.vue_vue_type_script_lang-6d47e560.js';
114
114
  import './components/OrTag/OrTag.js';
115
115
  export { s as OrTag } from './OrTag.vue_vue_type_script_lang-4e98d8a0.js';
116
116
  import './components/OrTagsV3/OrTags.js';
@@ -84,11 +84,11 @@ var script = defineComponent({
84
84
  props: {
85
85
  options: {
86
86
  type: Array,
87
- default: []
87
+ default: () => []
88
88
  },
89
89
  searchOptions: {
90
90
  type: Array,
91
- default: []
91
+ default: () => []
92
92
  },
93
93
  modelValue: {
94
94
  type: [String, Number, Array],
@@ -30,11 +30,6 @@ const TabsRootVariants = {
30
30
  // Layout
31
31
  'auto-cols-auto']
32
32
  };
33
- const TabsContainer = [
34
- // Layout
35
- 'layout-column',
36
- // Spacing
37
- 'gap-lg'];
38
33
 
39
34
  var script = defineComponent({
40
35
  name: 'OrTabs',
@@ -80,7 +75,6 @@ var script = defineComponent({
80
75
  });
81
76
  // Styles
82
77
  const rootStyles = computed(() => ['or-tabs-v3', ...TabsRoot, ...TabsRootVariants[props.variant]]);
83
- const containerStyles = computed(() => [...TabsContainer]);
84
78
  // State
85
79
  const tabs = reactive({
86
80
  normal: [],
@@ -150,7 +144,6 @@ var script = defineComponent({
150
144
  overflowMenu,
151
145
  overflowMenuRoot,
152
146
  rootStyles,
153
- containerStyles,
154
147
  tabs,
155
148
  proxyModelValue,
156
149
  activeTab
@@ -166,9 +159,7 @@ var __vue_render__ = function () {
166
159
  var _vm = this;
167
160
  var _h = _vm.$createElement;
168
161
  var _c = _vm._self._c || _h;
169
- return _c('div', {
170
- class: _vm.containerStyles
171
- }, [_c('div', _vm._b({
162
+ return _c('div', [_c('div', _vm._b({
172
163
  ref: "root",
173
164
  class: _vm.rootStyles
174
165
  }, 'div', _vm.$attrs, false), [_vm._l(_vm.tabs.normal, function (tab) {
@@ -76,7 +76,7 @@ export { _ as OrSearch } from '../OrSearch-330e9af0.js';
76
76
  export { _ as OrSearchV3 } from '../OrSearch-7ccc1f33.js';
77
77
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-a1ea5b72.js';
78
78
  export { _ as OrSelect } from '../OrSelect-22eea9cc.js';
79
- export { _ as OrSelectV3 } from '../OrSelect-a4c34099.js';
79
+ export { _ as OrSelectV3 } from '../OrSelect-3731427d.js';
80
80
  export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-feacf13a.js';
81
81
  export { _ as OrSidebarV3 } from '../OrSidebar-de938772.js';
82
82
  export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-4bf3bad8.js';
@@ -96,7 +96,7 @@ export { _ as OrTab } from '../OrTab-8dfdeca0.js';
96
96
  export { _ as OrTabHeaderItem } from '../OrTabHeaderItem-46947417.js';
97
97
  export { _ as OrTabV3 } from '../OrTab-5b198746.js';
98
98
  export { _ as OrTabs } from '../OrTabs-1b314eeb.js';
99
- export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-dd38e4ab.js';
99
+ export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-87069663.js';
100
100
  export { _ as OrTag } from '../OrTag-8ded4261.js';
101
101
  export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-843ec724.js';
102
102
  export { _ as OrTagsV3 } from '../OrTags-4ffaa13b.js';
@@ -41,11 +41,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
41
41
  }> & import("@vue/composition-api").Data, {}, {}, {
42
42
  options: {
43
43
  type: PropType<SelectOption[]>;
44
- default: SelectOption[];
44
+ default: () => never[];
45
45
  };
46
46
  searchOptions: {
47
47
  type: PropType<SelectOption[]>;
48
- default: SelectOption[];
48
+ default: () => never[];
49
49
  };
50
50
  modelValue: {
51
51
  type: PropType<string | number | (string | number)[]>;
@@ -106,11 +106,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
106
106
  }, import("@vue/composition-api").ExtractPropTypes<{
107
107
  options: {
108
108
  type: PropType<SelectOption[]>;
109
- default: SelectOption[];
109
+ default: () => never[];
110
110
  };
111
111
  searchOptions: {
112
112
  type: PropType<SelectOption[]>;
113
- default: SelectOption[];
113
+ default: () => never[];
114
114
  };
115
115
  modelValue: {
116
116
  type: PropType<string | number | (string | number)[]>;
@@ -1,4 +1,4 @@
1
- export { _ as OrSelectV3 } from '../../OrSelect-a4c34099.js';
1
+ export { _ as OrSelectV3 } from '../../OrSelect-3731427d.js';
2
2
  export { I as SelectSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-e1f90e0a.js';
@@ -16,7 +16,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
16
16
  } | {}, true> | undefined>;
17
17
  overflowMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
18
18
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
19
- containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
20
19
  tabs: {
21
20
  normal: {
22
21
  value: string | number;
@@ -76,7 +75,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
76
75
  } | {}, true> | undefined>;
77
76
  overflowMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
78
77
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
79
- containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
80
78
  tabs: {
81
79
  normal: {
82
80
  value: string | number;
@@ -1,4 +1,4 @@
1
- export { _ as OrTabsV3, T as TabsVariant } from '../../OrTabs-dd38e4ab.js';
1
+ export { _ as OrTabsV3, T as TabsVariant } from '../../OrTabs-87069663.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import '../../OrIcon-d35a84d8.js';
@@ -1,4 +1,3 @@
1
1
  import { TabsVariant } from './props';
2
2
  export declare const TabsRoot: string[];
3
3
  export declare const TabsRootVariants: Record<TabsVariant, string[]>;
4
- export declare const TabsContainer: string[];
@@ -76,7 +76,7 @@ export { _ as OrSearch } from './OrSearch-330e9af0.js';
76
76
  export { _ as OrSearchV3 } from './OrSearch-7ccc1f33.js';
77
77
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-a1ea5b72.js';
78
78
  export { _ as OrSelect } from './OrSelect-22eea9cc.js';
79
- export { _ as OrSelectV3 } from './OrSelect-a4c34099.js';
79
+ export { _ as OrSelectV3 } from './OrSelect-3731427d.js';
80
80
  export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
81
81
  export { _ as OrSidebarV3 } from './OrSidebar-de938772.js';
82
82
  export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-4bf3bad8.js';
@@ -96,7 +96,7 @@ export { _ as OrTab } from './OrTab-8dfdeca0.js';
96
96
  export { _ as OrTabHeaderItem } from './OrTabHeaderItem-46947417.js';
97
97
  export { _ as OrTabV3 } from './OrTab-5b198746.js';
98
98
  export { _ as OrTabs } from './OrTabs-1b314eeb.js';
99
- export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-dd38e4ab.js';
99
+ export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-87069663.js';
100
100
  export { _ as OrTag } from './OrTag-8ded4261.js';
101
101
  export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-843ec724.js';
102
102
  export { _ as OrTagsV3 } from './OrTags-4ffaa13b.js';
@@ -83,11 +83,11 @@ var script = defineComponent({
83
83
  props: {
84
84
  options: {
85
85
  type: Array,
86
- default: []
86
+ default: () => []
87
87
  },
88
88
  searchOptions: {
89
89
  type: Array,
90
- default: []
90
+ default: () => []
91
91
  },
92
92
  modelValue: {
93
93
  type: [String, Number, Array],
@@ -5,7 +5,7 @@ import { s as script$3 } from './OrMenuItem-dbee450f.js';
5
5
  import { s as script$2 } from './OrMenu-bce8349d.js';
6
6
  import './OrPopover-84d5b844.js';
7
7
  import { s as script$4 } from './OrTab-f7e51ffb.js';
8
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, createVNode, createCommentVNode, renderSlot } from 'vue';
8
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, mergeProps, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, createVNode, createCommentVNode, renderSlot } from 'vue';
9
9
 
10
10
  var TabsVariant;
11
11
  (function (TabsVariant) {
@@ -30,11 +30,6 @@ const TabsRootVariants = {
30
30
  // Layout
31
31
  'auto-cols-auto']
32
32
  };
33
- const TabsContainer = [
34
- // Layout
35
- 'layout-column',
36
- // Spacing
37
- 'gap-lg'];
38
33
 
39
34
  var script = defineComponent({
40
35
  name: 'OrTabs',
@@ -80,7 +75,6 @@ var script = defineComponent({
80
75
  });
81
76
  // Styles
82
77
  const rootStyles = computed(() => ['or-tabs-v3', ...TabsRoot, ...TabsRootVariants[props.variant]]);
83
- const containerStyles = computed(() => [...TabsContainer]);
84
78
  // State
85
79
  const tabs = reactive({
86
80
  normal: [],
@@ -150,7 +144,6 @@ var script = defineComponent({
150
144
  overflowMenu,
151
145
  overflowMenuRoot,
152
146
  rootStyles,
153
- containerStyles,
154
147
  tabs,
155
148
  proxyModelValue,
156
149
  activeTab
@@ -163,9 +156,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
163
156
  const _component_OrIcon = resolveComponent("OrIcon");
164
157
  const _component_OrMenuItem = resolveComponent("OrMenuItem");
165
158
  const _component_OrMenu = resolveComponent("OrMenu");
166
- return openBlock(), createElementBlock("div", {
167
- class: normalizeClass(_ctx.containerStyles)
168
- }, [createElementVNode("div", mergeProps({
159
+ return openBlock(), createElementBlock("div", null, [createElementVNode("div", mergeProps({
169
160
  ref: "root"
170
161
  }, _ctx.$attrs, {
171
162
  class: _ctx.rootStyles
@@ -209,7 +200,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
209
200
  }), 128 /* KEYED_FRAGMENT */))]),
210
201
 
211
202
  _: 1 /* STABLE */
212
- }, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */), renderSlot(_ctx.$slots, String(_ctx.proxyModelValue))], 2 /* CLASS */);
203
+ }, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */), renderSlot(_ctx.$slots, String(_ctx.proxyModelValue))]);
213
204
  }
214
205
 
215
206
  script.render = render;
@@ -74,7 +74,7 @@ export { s as OrSearch } from '../OrSearch-f4ad73db.js';
74
74
  export { s as OrSearchV3 } from '../OrSearch-e15c7fd2.js';
75
75
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-359fbf3a.js';
76
76
  export { s as OrSelect } from '../OrSelect-6ff34196.js';
77
- export { s as OrSelectV3 } from '../OrSelect-046e8e36.js';
77
+ export { s as OrSelectV3 } from '../OrSelect-c811ecba.js';
78
78
  export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
79
79
  export { s as OrSidebarV3 } from '../OrSidebar-3f2502fb.js';
80
80
  export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-63914891.js';
@@ -94,7 +94,7 @@ export { s as OrTab } from '../OrTab-bc98be02.js';
94
94
  export { s as OrTabHeaderItem } from '../OrTabHeaderItem-3bb0b711.js';
95
95
  export { s as OrTabV3 } from '../OrTab-f7e51ffb.js';
96
96
  export { s as OrTabs } from '../OrTabs-35a376a3.js';
97
- export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-d058761d.js';
97
+ export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-3d9c1a8b.js';
98
98
  export { s as OrTag } from '../OrTag-2d9eacf8.js';
99
99
  export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-6116c6e3.js';
100
100
  export { s as OrTagsV3 } from '../OrTags-a082de82.js';
@@ -4,11 +4,11 @@ import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './typ
4
4
  declare const _default: import("vue-demi").DefineComponent<{
5
5
  options: {
6
6
  type: PropType<SelectOption[]>;
7
- default: SelectOption[];
7
+ default: () => never[];
8
8
  };
9
9
  searchOptions: {
10
10
  type: PropType<SelectOption[]>;
11
- default: SelectOption[];
11
+ default: () => never[];
12
12
  };
13
13
  modelValue: {
14
14
  type: PropType<string | number | (string | number)[]>;
@@ -98,11 +98,11 @@ declare const _default: import("vue-demi").DefineComponent<{
98
98
  }, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("search" | "update:modelValue" | "focus" | "blur")[], "search" | "update:modelValue" | "focus" | "blur", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
99
99
  options: {
100
100
  type: PropType<SelectOption[]>;
101
- default: SelectOption[];
101
+ default: () => never[];
102
102
  };
103
103
  searchOptions: {
104
104
  type: PropType<SelectOption[]>;
105
- default: SelectOption[];
105
+ default: () => never[];
106
106
  };
107
107
  modelValue: {
108
108
  type: PropType<string | number | (string | number)[]>;
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-046e8e36.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-c811ecba.js';
2
2
  export { I as SelectSize } from '../../OrInputBox-ba40bbdf.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-e1f90e0a.js';
@@ -21,7 +21,6 @@ declare const _default: import("vue-demi").DefineComponent<{
21
21
  overflowMenu: import("vue-demi").Ref<any>;
22
22
  overflowMenuRoot: import("vue-demi").ComputedRef<any>;
23
23
  rootStyles: import("vue-demi").ComputedRef<string[]>;
24
- containerStyles: import("vue-demi").ComputedRef<string[]>;
25
24
  tabs: {
26
25
  normal: {
27
26
  value: string | number;
@@ -1,4 +1,4 @@
1
- export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs-d058761d.js';
1
+ export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs-3d9c1a8b.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import '../../OrIcon-62793572.js';
@@ -1,4 +1,3 @@
1
1
  import { TabsVariant } from './props';
2
2
  export declare const TabsRoot: string[];
3
3
  export declare const TabsRootVariants: Record<TabsVariant, string[]>;
4
- export declare const TabsContainer: string[];
@@ -74,7 +74,7 @@ export { s as OrSearch } from './OrSearch-f4ad73db.js';
74
74
  export { s as OrSearchV3 } from './OrSearch-e15c7fd2.js';
75
75
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-359fbf3a.js';
76
76
  export { s as OrSelect } from './OrSelect-6ff34196.js';
77
- export { s as OrSelectV3 } from './OrSelect-046e8e36.js';
77
+ export { s as OrSelectV3 } from './OrSelect-c811ecba.js';
78
78
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
79
79
  export { s as OrSidebarV3 } from './OrSidebar-3f2502fb.js';
80
80
  export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-63914891.js';
@@ -94,7 +94,7 @@ export { s as OrTab } from './OrTab-bc98be02.js';
94
94
  export { s as OrTabHeaderItem } from './OrTabHeaderItem-3bb0b711.js';
95
95
  export { s as OrTabV3 } from './OrTab-f7e51ffb.js';
96
96
  export { s as OrTabs } from './OrTabs-35a376a3.js';
97
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-d058761d.js';
97
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-3d9c1a8b.js';
98
98
  export { s as OrTag } from './OrTag-2d9eacf8.js';
99
99
  export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-6116c6e3.js';
100
100
  export { s as OrTagsV3 } from './OrTags-a082de82.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "4.4.1-beta.2708.0",
3
+ "version": "4.4.1",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -153,5 +153,6 @@
153
153
  "default": "./dist/bundled/v3/components/*/index.js"
154
154
  },
155
155
  "./package.json": "./package.json"
156
- }
156
+ },
157
+ "gitHead": "629822d34cc6e27098be7ee728e0277b03583324"
157
158
  }
@@ -274,12 +274,12 @@ export default defineComponent({
274
274
  props: {
275
275
  options: {
276
276
  type: Array as PropType<SelectOption[]>,
277
- default: [] as SelectOption[],
277
+ default: () => [],
278
278
  },
279
279
 
280
280
  searchOptions: {
281
281
  type: Array as PropType<SelectOption[]>,
282
- default: [] as SelectOption[],
282
+ default: () => [],
283
283
  },
284
284
 
285
285
  modelValue: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="containerStyles">
2
+ <div>
3
3
  <div
4
4
  ref="root"
5
5
  v-bind="$attrs"
@@ -52,7 +52,7 @@ import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
52
52
  import { OrMenuV3 as OrMenu } from '../or-menu-v3';
53
53
  import { OrTabV3 as OrTab } from '../or-tab-v3';
54
54
  import { TabsVariant } from './props';
55
- import { TabsContainer, TabsRoot, TabsRootVariants } from './styles';
55
+ import { TabsRoot, TabsRootVariants } from './styles';
56
56
  import { TabsItem } from './types';
57
57
 
58
58
  export default defineComponent({
@@ -114,10 +114,6 @@ export default defineComponent({
114
114
  ...TabsRootVariants[props.variant],
115
115
  ]);
116
116
 
117
- const containerStyles = computed(() => [
118
- ...TabsContainer,
119
- ]);
120
-
121
117
  // State
122
118
  const tabs = reactive({
123
119
  normal: [] as TabsItem[],
@@ -201,7 +197,6 @@ export default defineComponent({
201
197
  overflowMenu,
202
198
  overflowMenuRoot,
203
199
  rootStyles,
204
- containerStyles,
205
200
  tabs,
206
201
  proxyModelValue,
207
202
  activeTab,
@@ -31,11 +31,3 @@ export const TabsRootVariants: Record<TabsVariant, string[]> = {
31
31
  'auto-cols-auto',
32
32
  ],
33
33
  };
34
-
35
- export const TabsContainer: string[] = [
36
- // Layout
37
- 'layout-column',
38
-
39
- // Spacing
40
- 'gap-lg',
41
- ];
@@ -1,7 +0,0 @@
1
- import { DocsPage } from '@storybook/addon-docs';
2
-
3
- ```ts
4
- import { OrAvatarV3 as OrAvatar } from '@onereach/ui-components';
5
- ```
6
-
7
- <DocsPage />
@@ -1,141 +0,0 @@
1
- import { Meta, StoryFn } from '@storybook/vue3';
2
- import OrAvatarDocs from './OrAvatar.docs.mdx';
3
- import OrAvatar from './OrAvatar.vue';
4
- import { AvatarColor, AvatarSize } from './props';
5
- import { getAbbreviation } from '../../utils/functions/text';
6
- import { computed } from 'vue-demi';
7
-
8
- export default {
9
- title: 'Components/Avatar',
10
- component: OrAvatar,
11
-
12
- argTypes: {
13
- // Slots
14
- default: {
15
- type: {
16
- name: 'string',
17
- required: false,
18
- },
19
-
20
- control: { type: 'text' },
21
- },
22
-
23
- // Props
24
- src: {
25
- control: { type: 'text' },
26
- },
27
-
28
- size: {
29
- control: { type: 'select' },
30
- options: Object.values(AvatarSize),
31
- },
32
-
33
- color: {
34
- control: { type: 'select' },
35
- options: Object.values(AvatarColor),
36
- },
37
-
38
- colorSalt: {
39
- control: { type: 'text' },
40
- },
41
-
42
- icon: {
43
- control: { type: 'text' },
44
- },
45
- },
46
-
47
- parameters: {
48
- layout: 'centered',
49
-
50
- docs: {
51
- page: OrAvatarDocs,
52
- },
53
-
54
- design: {
55
- type: 'figma',
56
- url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=2391%3A14170',
57
- },
58
- },
59
- } as Meta<typeof OrAvatar>;
60
-
61
- const DefaultTemplate: StoryFn<typeof OrAvatar> = (args) => ({
62
- components: {
63
- OrAvatar,
64
- },
65
-
66
- setup() {
67
- return { args };
68
- },
69
-
70
- template: `
71
- <OrAvatar v-bind="args">
72
- <template #default v-if="args.default">
73
- ${args.default}
74
- </template>
75
- </OrAvatar>
76
- `,
77
- });
78
-
79
- const AbbreviationTemplate: StoryFn<typeof OrAvatar> = (args) => ({
80
- components: {
81
- OrAvatar,
82
- },
83
-
84
- setup() {
85
- const abbreviation = computed(() => getAbbreviation(args.username, 2));
86
-
87
- return {
88
- args,
89
- abbreviation,
90
- };
91
- },
92
-
93
- template: `
94
- <OrAvatar
95
- v-bind="args"
96
- :color-salt="args.username"
97
- >
98
- {{ this.abbreviation }}
99
- </OrAvatar>
100
- `,
101
- });
102
-
103
- export const Default = DefaultTemplate.bind({});
104
- Default.args = {
105
- default: 'OR',
106
- };
107
-
108
- export const WithSrc = DefaultTemplate.bind({});
109
- WithSrc.args = {
110
- src: 'https://onereach.gitlab.io/platform/ui-next/or-favicon.ico',
111
- };
112
-
113
- export const WithTextInSlot = DefaultTemplate.bind({});
114
- WithTextInSlot.args = {
115
- default: 'A',
116
- colorSalt: 'A username',
117
- };
118
-
119
- export const WithIcon = DefaultTemplate.bind({});
120
- WithIcon.args = {
121
- icon: 'store',
122
- colorSalt: 'Any string here',
123
- };
124
-
125
- export const WithColor = DefaultTemplate.bind({});
126
- WithColor.args = {
127
- color: AvatarColor.blue,
128
- icon: 'person',
129
- };
130
-
131
- export const XL = DefaultTemplate.bind({});
132
- XL.args = {
133
- size: AvatarSize.XL,
134
- icon: 'person',
135
- colorSalt: 'Big Avatar',
136
- };
137
-
138
- export const WithAbbreviationGeneration = AbbreviationTemplate.bind({});
139
- WithAbbreviationGeneration.args = {
140
- username: 'John Doe',
141
- };