@onereach/ui-components 2.69.3 → 2.69.4

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 (76) hide show
  1. package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
  2. package/dist/bundled/v2/OrCardCollection-f622df47.js +346 -0
  3. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-a11b3621.js} +9 -3
  4. package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
  5. package/dist/bundled/v2/components/index.js +4 -4
  6. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  7. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  8. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  9. package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -4
  10. package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +5 -1
  11. package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  12. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
  13. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  14. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  15. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  16. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  17. package/dist/bundled/v2/index.js +5 -5
  18. package/dist/bundled/v3/OrButton-a671b8a1.js +33 -0
  19. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-15645a65.js +228 -0
  20. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-49a3a9bd.js → OrConfirm.vue_vue_type_script_lang-f57ffa1a.js} +6 -36
  21. package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
  22. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-0ae8a6dd.js} +8 -2
  23. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
  24. package/dist/bundled/v3/components/index.js +8 -6
  25. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  26. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  27. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  28. package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -4
  29. package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +5 -1
  30. package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  31. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
  32. package/dist/bundled/v3/components/or-confirm-v3/index.js +2 -1
  33. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  34. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  35. package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
  36. package/dist/bundled/v3/index.js +326 -295
  37. package/dist/esm/v2/OrCardCollection-43aa4a3c.js +346 -0
  38. package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-62d91301.js} +7 -1
  39. package/dist/esm/v2/components/index.js +2 -2
  40. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  41. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  42. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  43. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
  44. package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +5 -1
  45. package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  46. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
  47. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  48. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  49. package/dist/esm/v2/index.js +2 -2
  50. package/dist/esm/v3/OrCardCollection-6b5e6b76.js +289 -0
  51. package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-aafb93b4.js} +7 -1
  52. package/dist/esm/v3/components/index.js +2 -2
  53. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  54. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  55. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  56. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -4
  57. package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +5 -1
  58. package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  59. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
  60. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  61. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  62. package/dist/esm/v3/index.js +2 -2
  63. package/package.json +2 -2
  64. package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +4 -0
  65. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +230 -30
  66. package/src/components/or-card-collection-v3/OrCardCollection.vue +120 -77
  67. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
  68. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
  69. package/src/components/or-card-collection-v3/props.ts +14 -1
  70. package/src/components/or-card-collection-v3/styles.ts +3 -3
  71. package/src/components/or-card-collection-v3/types.ts +9 -3
  72. package/src/components/or-search-v3/OrSearch.vue +7 -1
  73. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
  74. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-861158b5.js +0 -164
  75. package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
  76. package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
@@ -0,0 +1,33 @@
1
+ import { s as script } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
3
+
4
+ const _hoisted_1 = ["type", "disabled"];
5
+ const _hoisted_2 = {
6
+ key: 0,
7
+ class: /*#__PURE__*/normalizeClass(['absolute'])
8
+ };
9
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
10
+ const _component_OrLoader = resolveComponent("OrLoader");
11
+ return openBlock(), createElementBlock("button", mergeProps({
12
+ ref: "root"
13
+ }, _ctx.$attrs, {
14
+ class: _ctx.rootStyles,
15
+ type: _ctx.type,
16
+ disabled: _ctx.disabled,
17
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
18
+ onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
19
+ onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
20
+ }), [createElementVNode("div", {
21
+ class: normalizeClass(['contents', _ctx.loading && 'invisible'])
22
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
23
+ key: 0,
24
+ variant: 'circular',
25
+ color: 'inherit',
26
+ size: 's'
27
+ })) : (openBlock(), createElementBlock(Fragment, {
28
+ key: 1
29
+ }, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
30
+ }
31
+
32
+ script.render = render;
33
+ script.__file = "src/components/or-button-v3/OrButton.vue";
@@ -0,0 +1,228 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createBlock, ref, watch } from 'vue';
2
+ import './OrIconButton-1581013c.js';
3
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
4
+ import './OrButton-a671b8a1.js';
5
+ import './OrMenu-f26e8e55.js';
6
+ import { s as script$5 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
7
+ import './OrMenuItem-4feaba6c.js';
8
+ import { s as script$6 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
9
+ import './OrIcon-d878b768.js';
10
+ import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-0ae8a6dd.js';
11
+ import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
12
+ import { s as script$4 } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
13
+ import { s as script$7 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
14
+
15
+ const CardCollectionRoot = [
16
+ // Layout
17
+ 'layout-column',
18
+ // Spacing
19
+ 'gap-md'];
20
+ const CardCollectionToolbar = [
21
+ // Layout
22
+ 'layout-row justify-between',
23
+ // Typography
24
+ 'typography-body-2-regular',
25
+ // Theme
26
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
27
+ const CardCollectionToolbarPanel = [
28
+ // Layout
29
+ 'layout-row',
30
+ // Spacing
31
+ 'gap-lg+'];
32
+ const CardCollectionContent = [
33
+ // Layout
34
+ 'grid',
35
+ // Spacing
36
+ 'gap-sm md:gap-md'];
37
+ const CardCollectionContentViews = {
38
+ 'grid': [
39
+ // Layout
40
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
41
+ 'list': []
42
+ };
43
+
44
+ var script$1 = defineComponent({
45
+ name: 'OrCardCollectionView',
46
+ props: {
47
+ items: {
48
+ type: Array,
49
+ default: []
50
+ },
51
+ mode: {
52
+ type: String,
53
+ required: true
54
+ }
55
+ },
56
+ setup(props) {
57
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
58
+ return {
59
+ contentStyles
60
+ };
61
+ }
62
+ });
63
+
64
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
65
+ return openBlock(), createElementBlock("div", {
66
+ class: normalizeClass(_ctx.contentStyles)
67
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
68
+ return renderSlot(_ctx.$slots, "item", mergeProps({
69
+ key: item.key || index
70
+ }, {
71
+ item,
72
+ mode: _ctx.mode
73
+ }), () => [createTextVNode(toDisplayString(item.key), 1 /* TEXT */)]);
74
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
75
+ }
76
+
77
+ script$1.render = render$1;
78
+ script$1.__file = "src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue";
79
+
80
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
81
+ const _component_OrInput = resolveComponent("OrInput");
82
+ return openBlock(), createBlock(_component_OrInput, mergeProps({
83
+ ref: "root"
84
+ }, _ctx.$attrs, {
85
+ modelValue: _ctx.localModelValue,
86
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.localModelValue = $event),
87
+ modelModifiers: {
88
+ trim: true
89
+ },
90
+ class: _ctx.rootStyles,
91
+ type: 'search',
92
+ size: _ctx.size,
93
+ placeholder: _ctx.placeholder,
94
+ debounce: _ctx.debounce,
95
+ disabled: _ctx.disabled,
96
+ "disable-default-styles": _ctx.disableDefaultStyles,
97
+ onInput: _cache[1] || (_cache[1] = $event => _ctx.$emit('input', $event)),
98
+ onKeydown: _cache[2] || (_cache[2] = $event => _ctx.$emit('keydown', $event)),
99
+ onKeyup: _cache[3] || (_cache[3] = $event => _ctx.$emit('keyup', $event)),
100
+ onFocus: _cache[4] || (_cache[4] = $event => _ctx.$emit('focus', $event)),
101
+ onBlur: _cache[5] || (_cache[5] = $event => _ctx.$emit('blur', $event))
102
+ }), null, 16 /* FULL_PROPS */, ["modelValue", "class", "size", "placeholder", "debounce", "disabled", "disable-default-styles"]);
103
+ }
104
+
105
+ script$2.render = render;
106
+ script$2.__file = "src/components/or-search-v3/OrSearch.vue";
107
+
108
+ var DefaultCardCollectionViews;
109
+ (function (DefaultCardCollectionViews) {
110
+ DefaultCardCollectionViews["Grid"] = "grid";
111
+ DefaultCardCollectionViews["List"] = "list";
112
+ })(DefaultCardCollectionViews || (DefaultCardCollectionViews = {}));
113
+ const gridView = {
114
+ view: DefaultCardCollectionViews.Grid,
115
+ icon: 'grid_view'
116
+ };
117
+ const listView = {
118
+ view: DefaultCardCollectionViews.List,
119
+ icon: 'view_agenda'
120
+ };
121
+ const defaultViewModes = [gridView, listView];
122
+
123
+ var script = defineComponent({
124
+ name: 'OrCardCollection',
125
+ components: {
126
+ OrCardCollectionView: script$1,
127
+ OrIconButton: script$3,
128
+ OrButton: script$4,
129
+ OrMenu: script$5,
130
+ OrMenuItem: script$6,
131
+ OrIcon: script$7,
132
+ OrSearch: script$2
133
+ },
134
+ inheritAttrs: false,
135
+ props: {
136
+ items: {
137
+ type: Array,
138
+ default: []
139
+ },
140
+ view: {
141
+ type: String,
142
+ default: gridView.view
143
+ },
144
+ viewModes: {
145
+ type: Array,
146
+ default: () => defaultViewModes
147
+ },
148
+ sort: {
149
+ type: String,
150
+ default: undefined
151
+ },
152
+ sortOptions: {
153
+ type: Array,
154
+ default: () => []
155
+ },
156
+ search: {
157
+ type: String,
158
+ default: ''
159
+ }
160
+ },
161
+ emits: ['viewChange', 'sortChange', 'searchChange'],
162
+ expose: ['root'],
163
+ setup(props, context) {
164
+ // Refs
165
+ const root = ref();
166
+ const sortMenu = ref();
167
+ const sortButton = ref();
168
+ // Styles
169
+ const classAttribute = useClassAttribute();
170
+ const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
171
+ const toolbarStyles = computed(() => [...CardCollectionToolbar]);
172
+ const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
173
+ const sortLabel = computed(() => {
174
+ var _a;
175
+ return (_a = props.sortOptions.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
176
+ });
177
+ // State
178
+ const proxyView = ref(props.view);
179
+ const proxySort = ref(props.sort);
180
+ const proxySearch = ref(props.search);
181
+ // Methods
182
+ function switchView(view) {
183
+ proxyView.value = view;
184
+ }
185
+ function handleSort(sort) {
186
+ proxySort.value = sort;
187
+ }
188
+ function handleSearch(search) {
189
+ proxySearch.value = search;
190
+ }
191
+ // Effects
192
+ watch(() => props.view, value => {
193
+ proxyView.value = value;
194
+ });
195
+ watch(proxyView, value => {
196
+ context.emit('viewChange', value);
197
+ });
198
+ watch(() => props.sort, value => {
199
+ proxySort.value = value;
200
+ });
201
+ watch(proxySort, value => {
202
+ context.emit('sortChange', value);
203
+ });
204
+ watch(() => props.search, value => {
205
+ proxySearch.value = value;
206
+ });
207
+ watch(proxySearch, value => {
208
+ context.emit('searchChange', value);
209
+ });
210
+ return {
211
+ root,
212
+ sortMenu,
213
+ sortButton,
214
+ rootStyles,
215
+ toolbarStyles,
216
+ toolbarPanelStyles,
217
+ proxyView,
218
+ proxySort,
219
+ proxySearch,
220
+ sortLabel,
221
+ switchView,
222
+ handleSort,
223
+ handleSearch
224
+ };
225
+ }
226
+ });
227
+
228
+ export { DefaultCardCollectionViews as D, defaultViewModes as d, gridView as g, listView as l, script as s };
@@ -1,43 +1,13 @@
1
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
1
+ import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import { useMagicKeys, whenever } from '@vueuse/core';
3
3
  import { l as logicAnd } from './index-01519e46.js';
4
4
  import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
5
- import { s as script$1, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
5
+ import './OrButton-a671b8a1.js';
6
6
  import './OrInput-fa782fc1.js';
7
- import { s as script$2 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
7
+ import { s as script$2, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
8
+ import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
8
9
  import { s as script$3 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
9
10
 
10
- const _hoisted_1 = ["type", "disabled"];
11
- const _hoisted_2 = {
12
- key: 0,
13
- class: /*#__PURE__*/normalizeClass(['absolute'])
14
- };
15
- function render(_ctx, _cache, $props, $setup, $data, $options) {
16
- const _component_OrLoader = resolveComponent("OrLoader");
17
- return openBlock(), createElementBlock("button", mergeProps({
18
- ref: "root"
19
- }, _ctx.$attrs, {
20
- class: _ctx.rootStyles,
21
- type: _ctx.type,
22
- disabled: _ctx.disabled,
23
- onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
24
- onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
25
- onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
26
- }), [createElementVNode("div", {
27
- class: normalizeClass(['contents', _ctx.loading && 'invisible'])
28
- }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
29
- key: 0,
30
- variant: 'circular',
31
- color: 'inherit',
32
- size: 's'
33
- })) : (openBlock(), createElementBlock(Fragment, {
34
- key: 1
35
- }, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
36
- }
37
-
38
- script$1.render = render;
39
- script$1.__file = "src/components/or-button-v3/OrButton.vue";
40
-
41
11
  var ConfirmType;
42
12
  (function (ConfirmType) {
43
13
  ConfirmType["D"] = "d";
@@ -89,8 +59,8 @@ const ConfirmFooterButtons = [
89
59
  var script = defineComponent({
90
60
  name: 'OrConfirm',
91
61
  components: {
92
- OrOverlay: script$2,
93
- OrButton: script$1,
62
+ OrOverlay: script$1,
63
+ OrButton: script$2,
94
64
  OrInput: script$3
95
65
  },
96
66
  props: {
@@ -0,0 +1,29 @@
1
+ import { s as script } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot } from 'vue';
3
+
4
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
5
+ const _component_OrPopover = resolveComponent("OrPopover");
6
+ return openBlock(), createElementBlock("div", mergeProps({
7
+ ref: "root"
8
+ }, _ctx.$attrs, {
9
+ class: _ctx.rootStyles
10
+ }), [createVNode(_component_OrPopover, {
11
+ ref: "popover",
12
+ variant: 'auto',
13
+ trigger: _ctx.trigger,
14
+ placement: _ctx.placement,
15
+ "full-width": false,
16
+ "disable-default-styles": false,
17
+ "onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
18
+ }, {
19
+ default: withCtx(() => [createElementVNode("div", {
20
+ class: normalizeClass(_ctx.bodyStyles),
21
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
22
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
23
+
24
+ _: 3 /* FORWARDED */
25
+ }, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
26
+ }
27
+
28
+ script.render = render;
29
+ script.__file = "src/components/or-menu-v3/OrMenu.vue";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import './OrInput-fa782fc1.js';
4
- import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
5
4
  import { s as script$1 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
5
+ import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
6
6
  import { a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
7
7
 
8
8
  var script = defineComponent({
@@ -12,6 +12,11 @@ var script = defineComponent({
12
12
  },
13
13
  inheritAttrs: false,
14
14
  props: {
15
+ modelValue: {
16
+ type: String,
17
+ default: '',
18
+ required: false
19
+ },
15
20
  size: {
16
21
  type: String,
17
22
  default: InputBoxSize.M
@@ -36,13 +41,14 @@ var script = defineComponent({
36
41
  emits: ['search', 'input', 'keydown', 'keyup', 'focus', 'blur', 'clear'],
37
42
  expose: ['root', 'focus', 'clear'],
38
43
  setup(props, context) {
44
+ var _a;
39
45
  // Refs
40
46
  const root = ref();
41
47
  // Styles
42
48
  const classAttribute = useClassAttribute();
43
49
  const rootStyles = computed(() => ['or-search', classAttribute.value]);
44
50
  // State
45
- const localModelValue = ref('');
51
+ const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
46
52
  // Events
47
53
  debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
48
54
  debounce: props.debounce
@@ -1,40 +1,14 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
2
+ import { openBlock, createElementBlock, mergeProps, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
3
3
  import './OrIcon-d878b768.js';
4
- import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
4
+ import './OrMenu-f26e8e55.js';
5
5
  import './OrMenuItem-4feaba6c.js';
6
- import { s as script$2 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
6
+ import { s as script$1 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
7
7
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
8
- import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
8
+ import { s as script$2 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
9
+ import { s as script$3 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
9
10
  import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
10
11
 
11
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
12
- const _component_OrPopover = resolveComponent("OrPopover");
13
- return openBlock(), createElementBlock("div", mergeProps({
14
- ref: "root"
15
- }, _ctx.$attrs, {
16
- class: _ctx.rootStyles
17
- }), [createVNode(_component_OrPopover, {
18
- ref: "popover",
19
- variant: 'auto',
20
- trigger: _ctx.trigger,
21
- placement: _ctx.placement,
22
- "full-width": false,
23
- "disable-default-styles": false,
24
- "onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
25
- }, {
26
- default: withCtx(() => [createElementVNode("div", {
27
- class: normalizeClass(_ctx.bodyStyles),
28
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
29
- }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
30
-
31
- _: 3 /* FORWARDED */
32
- }, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
33
- }
34
-
35
- script$1.render = render$1;
36
- script$1.__file = "src/components/or-menu-v3/OrMenu.vue";
37
-
38
12
  const _hoisted_1 = ["selected"];
39
13
  function render(_ctx, _cache, $props, $setup, $data, $options) {
40
14
  return openBlock(), createElementBlock("div", mergeProps({
@@ -49,8 +23,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
49
23
  }), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */, _hoisted_1);
50
24
  }
51
25
 
52
- script$2.render = render;
53
- script$2.__file = "src/components/or-tab-v3/OrTab.vue";
26
+ script$1.render = render;
27
+ script$1.__file = "src/components/or-tab-v3/OrTab.vue";
54
28
 
55
29
  var TabsVariant;
56
30
  (function (TabsVariant) {
@@ -79,10 +53,10 @@ const TabsRootVariants = {
79
53
  var script = defineComponent({
80
54
  name: 'OrTabs',
81
55
  components: {
82
- OrIcon: script$3,
83
- OrMenu: script$1,
56
+ OrIcon: script$2,
57
+ OrMenu: script$3,
84
58
  OrMenuItem: script$4,
85
- OrTab: script$2
59
+ OrTab: script$1
86
60
  },
87
61
  inheritAttrs: false,
88
62
  props: {
@@ -8,7 +8,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
8
8
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-b0dc31ca.js';
9
9
  export { s as OrCard } from '../OrCard.vue_vue_type_script_lang-90ba001b.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection.vue_vue_type_script_lang-d8124dda.js';
11
- export { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection.vue_vue_type_script_lang-861158b5.js';
11
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection.vue_vue_type_script_lang-15645a65.js';
12
12
  export { s as OrCardV3 } from '../OrCard.vue_vue_type_script_lang-165de137.js';
13
13
  export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem.vue_vue_type_script_lang-ad286afc.js';
14
14
  export { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-d8a66818.js';
@@ -19,7 +19,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script
19
19
  export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-65cbb754.js';
20
20
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker.vue_vue_type_script_lang-4141378d.js';
21
21
  export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-0f16fc67.js';
22
- export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-49a3a9bd.js';
22
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-f57ffa1a.js';
23
23
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker.vue_vue_type_script_lang-7bfe5005.js';
24
24
  export { s as OrError } from '../OrError.vue_vue_type_script_lang-7c39e012.js';
25
25
  export { s as OrErrorTagV3 } from '../OrErrorTag.vue_vue_type_script_lang-4828c387.js';
@@ -63,7 +63,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
63
63
  export { s as OrRadio } from '../OrRadio.vue_vue_type_script_lang-c956b54b.js';
64
64
  export { s as OrRadioGroup } from '../OrRadioGroup.vue_vue_type_script_lang-caea7bcb.js';
65
65
  export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-2e666a56.js';
66
- export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-ed78b21f.js';
66
+ export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-0ae8a6dd.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-579406f5.js';
68
68
  export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-26c0a70a.js';
69
69
  export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-15285ce4.js';
@@ -80,7 +80,7 @@ export { s as OrTab } from '../OrTab.vue_vue_type_script_lang-de7c7063.js';
80
80
  export { s as OrTabHeaderItem } from '../OrTabHeaderItem.vue_vue_type_script_lang-e1f29563.js';
81
81
  export { s as OrTabV3 } from '../OrTab.vue_vue_type_script_lang-134ad9d1.js';
82
82
  export { s as OrTabs } from '../OrTabs.vue_vue_type_script_lang-40e2a6e9.js';
83
- export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-919b2021.js';
83
+ export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-61b79a5a.js';
84
84
  export { s as OrTag } from '../OrTag.vue_vue_type_script_lang-8c526c11.js';
85
85
  export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag.vue_vue_type_script_lang-dc6a4011.js';
86
86
  export { s as OrTeleport } from '../OrTeleportVue3-012351e1.js';
@@ -107,7 +107,9 @@ import '../OrLoader-ee97fef4.js';
107
107
  import '../OrLoader-c4bbef2f.js';
108
108
  import '../OrIconButton-e637158e.js';
109
109
  import '../OrIconButton-1581013c.js';
110
- import '../OrInput-fa782fc1.js';
110
+ import '../OrButton-a671b8a1.js';
111
+ import '../OrMenu-f26e8e55.js';
112
+ import '../OrMenuItem-4feaba6c.js';
111
113
  import '../OrLabel-c6873e79.js';
112
114
  import '../OrLabel-e412c532.js';
113
115
  import '../OrError-b43ebad8.js';
@@ -118,6 +120,7 @@ import '../dom-d21d0a92.js';
118
120
  import '../OrFloating-b6672a37.js';
119
121
  import '../index-01519e46.js';
120
122
  import '../OrButton-ec723bb7.js';
123
+ import '../OrInput-fa782fc1.js';
121
124
  import '../OrCollapse-63e83681.js';
122
125
  import '../floating-ui.dom.esm-83eba816.js';
123
126
  import '../OrHint-9592499e.js';
@@ -128,6 +131,5 @@ import '../v4-cf8987a3.js';
128
131
  import '../OrPopover-c462ce77.js';
129
132
  import '../useResponsive-9d397e2a.js';
130
133
  import '../useElevation-c8d5d3ba.js';
131
- import '../OrMenuItem-4feaba6c.js';
132
134
  import '../dropdown-open-293d2de2.js';
133
135
  import '../useOverflow-6dce216b.js';
@@ -1,4 +1,5 @@
1
1
  import { Meta, StoryFn } from '@storybook/vue3';
2
+ import OrCardCollection from './OrCardCollection.vue';
2
3
  declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
3
4
  [x: string]: ((...args: any[]) => any) | null;
4
5
  } | string[], {} & {}, {
@@ -15,3 +16,7 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
15
16
  } | string[], {} & {}, {
16
17
  [x: number]: string;
17
18
  } | {}, true>)>;
19
+ export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
20
+ export declare const ExtraViewMode: StoryFn<typeof OrCardCollection>;
21
+ export declare const WithLink: StoryFn<typeof OrCardCollection>;
22
+ export declare const EmptySearchResults: StoryFn<typeof OrCardCollection>;