@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
@@ -67,6 +67,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
67
67
  render: __vue_render__,
68
68
  staticRenderFns: __vue_staticRenderFns__
69
69
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
70
- var OrCard = __vue_component__;
70
+ var __vue_component__$1 = __vue_component__;
71
71
 
72
- export { OrCard as O };
72
+ export { __vue_component__$1 as _ };
@@ -0,0 +1,346 @@
1
+ import './index-fa6eb4ca.js';
2
+ import { defineComponent, computed, ref, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
3
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
4
+ import { O as OrIconButton } from './OrIconButton-a215104c.js';
5
+ import { O as OrButton } from './OrButton-4b99c680.js';
6
+ import { O as OrMenu } from './OrMenu-fa47c888.js';
7
+ import { O as OrMenuItem } from './OrMenuItem-26420908.js';
8
+ import { O as OrIcon } from './OrIcon-8625385f.js';
9
+ import { O as OrSearch } from './OrSearch-a11b3621.js';
10
+ import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
11
+
12
+ const CardCollectionRoot = [
13
+ // Layout
14
+ 'layout-column',
15
+ // Spacing
16
+ 'gap-md'];
17
+ const CardCollectionToolbar = [
18
+ // Layout
19
+ 'layout-row justify-between',
20
+ // Typography
21
+ 'typography-body-2-regular',
22
+ // Theme
23
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
24
+ const CardCollectionToolbarPanel = [
25
+ // Layout
26
+ 'layout-row',
27
+ // Spacing
28
+ 'gap-lg+'];
29
+ const CardCollectionContent = [
30
+ // Layout
31
+ 'grid',
32
+ // Spacing
33
+ 'gap-sm md:gap-md'];
34
+ const CardCollectionContentViews = {
35
+ 'grid': [
36
+ // Layout
37
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
38
+ 'list': []
39
+ };
40
+
41
+ var script$1 = defineComponent({
42
+ name: 'OrCardCollectionView',
43
+ props: {
44
+ items: {
45
+ type: Array,
46
+ default: []
47
+ },
48
+ mode: {
49
+ type: String,
50
+ required: true
51
+ }
52
+ },
53
+ setup(props) {
54
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
55
+ return {
56
+ contentStyles
57
+ };
58
+ }
59
+ });
60
+
61
+ /* script */
62
+ const __vue_script__$1 = script$1;
63
+
64
+ /* template */
65
+ var __vue_render__$1 = function () {
66
+ var _vm = this;
67
+ var _h = _vm.$createElement;
68
+ var _c = _vm._self._c || _h;
69
+ return _c('div', {
70
+ class: _vm.contentStyles
71
+ }, [_vm._l(_vm.items, function (item) {
72
+ return _vm._t("item", function () {
73
+ return [_vm._v("\n " + _vm._s(item.key) + "\n ")];
74
+ }, null, {
75
+ item: item,
76
+ mode: _vm.mode
77
+ });
78
+ })], 2);
79
+ };
80
+ var __vue_staticRenderFns__$1 = [];
81
+
82
+ /* style */
83
+ const __vue_inject_styles__$1 = undefined;
84
+ /* scoped */
85
+ const __vue_scope_id__$1 = undefined;
86
+ /* module identifier */
87
+ const __vue_module_identifier__$1 = undefined;
88
+ /* functional template */
89
+ const __vue_is_functional_template__$1 = false;
90
+ /* style inject */
91
+
92
+ /* style inject SSR */
93
+
94
+ /* style inject shadow dom */
95
+
96
+ const __vue_component__$2 = /*#__PURE__*/normalizeComponent({
97
+ render: __vue_render__$1,
98
+ staticRenderFns: __vue_staticRenderFns__$1
99
+ }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
100
+ var OrCardCollectionView = __vue_component__$2;
101
+
102
+ var DefaultCardCollectionViews;
103
+ (function (DefaultCardCollectionViews) {
104
+ DefaultCardCollectionViews["Grid"] = "grid";
105
+ DefaultCardCollectionViews["List"] = "list";
106
+ })(DefaultCardCollectionViews || (DefaultCardCollectionViews = {}));
107
+ const gridView = {
108
+ view: DefaultCardCollectionViews.Grid,
109
+ icon: 'grid_view'
110
+ };
111
+ const listView = {
112
+ view: DefaultCardCollectionViews.List,
113
+ icon: 'view_agenda'
114
+ };
115
+ const defaultViewModes = [gridView, listView];
116
+
117
+ var script = defineComponent({
118
+ name: 'OrCardCollection',
119
+ components: {
120
+ OrCardCollectionView,
121
+ OrIconButton,
122
+ OrButton,
123
+ OrMenu,
124
+ OrMenuItem,
125
+ OrIcon,
126
+ OrSearch
127
+ },
128
+ inheritAttrs: false,
129
+ props: {
130
+ items: {
131
+ type: Array,
132
+ default: []
133
+ },
134
+ view: {
135
+ type: String,
136
+ default: gridView.view
137
+ },
138
+ viewModes: {
139
+ type: Array,
140
+ default: () => defaultViewModes
141
+ },
142
+ sort: {
143
+ type: String,
144
+ default: undefined
145
+ },
146
+ sortOptions: {
147
+ type: Array,
148
+ default: () => []
149
+ },
150
+ search: {
151
+ type: String,
152
+ default: ''
153
+ }
154
+ },
155
+ emits: ['viewChange', 'sortChange', 'searchChange'],
156
+ expose: ['root'],
157
+ setup(props, context) {
158
+ // Refs
159
+ const root = ref();
160
+ const sortMenu = ref();
161
+ const sortButton = ref();
162
+ // Styles
163
+ const classAttribute = useClassAttribute();
164
+ const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
165
+ const toolbarStyles = computed(() => [...CardCollectionToolbar]);
166
+ const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
167
+ const sortLabel = computed(() => {
168
+ var _a;
169
+ return (_a = props.sortOptions.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
170
+ });
171
+ // State
172
+ const proxyView = ref(props.view);
173
+ const proxySort = ref(props.sort);
174
+ const proxySearch = ref(props.search);
175
+ // Methods
176
+ function switchView(view) {
177
+ proxyView.value = view;
178
+ }
179
+ function handleSort(sort) {
180
+ proxySort.value = sort;
181
+ }
182
+ function handleSearch(search) {
183
+ proxySearch.value = search;
184
+ }
185
+ // Effects
186
+ watch(() => props.view, value => {
187
+ proxyView.value = value;
188
+ });
189
+ watch(proxyView, value => {
190
+ context.emit('viewChange', value);
191
+ });
192
+ watch(() => props.sort, value => {
193
+ proxySort.value = value;
194
+ });
195
+ watch(proxySort, value => {
196
+ context.emit('sortChange', value);
197
+ });
198
+ watch(() => props.search, value => {
199
+ proxySearch.value = value;
200
+ });
201
+ watch(proxySearch, value => {
202
+ context.emit('searchChange', value);
203
+ });
204
+ return {
205
+ root,
206
+ sortMenu,
207
+ sortButton,
208
+ rootStyles,
209
+ toolbarStyles,
210
+ toolbarPanelStyles,
211
+ proxyView,
212
+ proxySort,
213
+ proxySearch,
214
+ sortLabel,
215
+ switchView,
216
+ handleSort,
217
+ handleSearch
218
+ };
219
+ }
220
+ });
221
+
222
+ /* script */
223
+ const __vue_script__ = script;
224
+
225
+ /* template */
226
+ var __vue_render__ = function () {
227
+ var _vm = this;
228
+ var _h = _vm.$createElement;
229
+ var _c = _vm._self._c || _h;
230
+ return _c('div', _vm._b({
231
+ ref: "root",
232
+ class: _vm.rootStyles
233
+ }, 'div', _vm.$attrs, false), [_c('div', {
234
+ class: _vm.toolbarStyles
235
+ }, [_c('div', {
236
+ class: _vm.toolbarPanelStyles
237
+ }, [_vm.sortOptions.length ? [_c('OrButton', {
238
+ ref: "sortButton",
239
+ attrs: {
240
+ "variant": "link",
241
+ "color": "inherit"
242
+ },
243
+ on: {
244
+ "click": function ($event) {
245
+ return _vm.sortMenu.toggle();
246
+ }
247
+ }
248
+ }, [_vm._v("\n " + _vm._s(_vm.sortLabel) + "\n "), _vm.sortMenu ? _c('OrIcon', {
249
+ attrs: {
250
+ "icon": _vm.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
251
+ }
252
+ }) : _vm._e()], 1), _vm._v(" "), _c('OrMenu', {
253
+ ref: "sortMenu",
254
+ attrs: {
255
+ "trigger": _vm.sortButton && _vm.sortButton.root
256
+ }
257
+ }, _vm._l(_vm.sortOptions, function (sortItem) {
258
+ return _c('OrMenuItem', {
259
+ key: sortItem,
260
+ on: {
261
+ "click": function ($event) {
262
+ return _vm.handleSort(sortItem.value);
263
+ }
264
+ }
265
+ }, [_vm._v("\n " + _vm._s(sortItem.label) + "\n ")]);
266
+ }), 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
267
+ class: _vm.toolbarPanelStyles
268
+ }, [_c('OrSearch', {
269
+ staticClass: "md:w-[350px]",
270
+ attrs: {
271
+ "size": "s"
272
+ },
273
+ on: {
274
+ "search": _vm.handleSearch
275
+ },
276
+ model: {
277
+ value: _vm.proxySearch,
278
+ callback: function ($$v) {
279
+ _vm.proxySearch = $$v;
280
+ },
281
+ expression: "proxySearch"
282
+ }
283
+ }), _vm._v(" "), _c('div', {
284
+ staticClass: "layout-row gap-sm"
285
+ }, [_vm.viewModes.length > 1 ? _vm._l(_vm.viewModes, function (viewOption) {
286
+ return _c('OrIconButton', {
287
+ key: viewOption.view,
288
+ attrs: {
289
+ "icon": {
290
+ icon: viewOption.icon,
291
+ variant: viewOption.view === _vm.proxyView ? 'filled' : 'outlined'
292
+ }
293
+ },
294
+ on: {
295
+ "click": function ($event) {
296
+ return _vm.switchView(viewOption.view);
297
+ }
298
+ }
299
+ });
300
+ }) : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)], 1)]), _vm._v(" "), _vm._t("header", null, null, {
301
+ items: _vm.items,
302
+ mode: _vm.proxyView
303
+ }), _vm._v(" "), _vm.items.length ? _vm._t(_vm.proxyView, function () {
304
+ return [_c('OrCardCollectionView', {
305
+ attrs: {
306
+ "items": _vm.items,
307
+ "mode": _vm.proxyView
308
+ },
309
+ scopedSlots: _vm._u([{
310
+ key: "item",
311
+ fn: function (props) {
312
+ return [_vm._t("item", null, null, props)];
313
+ }
314
+ }], null, true)
315
+ })];
316
+ }, null, {
317
+ items: _vm.items
318
+ }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 ? _vm._t("noSearchResults", function () {
319
+ return [_vm._v("\n No results\n ")];
320
+ }, null, {
321
+ search: _vm.proxySearch
322
+ }) : _vm._e()], 2);
323
+ };
324
+ var __vue_staticRenderFns__ = [];
325
+
326
+ /* style */
327
+ const __vue_inject_styles__ = undefined;
328
+ /* scoped */
329
+ const __vue_scope_id__ = undefined;
330
+ /* module identifier */
331
+ const __vue_module_identifier__ = undefined;
332
+ /* functional template */
333
+ const __vue_is_functional_template__ = false;
334
+ /* style inject */
335
+
336
+ /* style inject SSR */
337
+
338
+ /* style inject shadow dom */
339
+
340
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
341
+ render: __vue_render__,
342
+ staticRenderFns: __vue_staticRenderFns__
343
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
344
+ var __vue_component__$1 = __vue_component__;
345
+
346
+ export { DefaultCardCollectionViews as D, __vue_component__$1 as _, defaultViewModes as d, gridView as g, listView as l };
@@ -13,6 +13,11 @@ var script = defineComponent({
13
13
  },
14
14
  inheritAttrs: false,
15
15
  props: {
16
+ modelValue: {
17
+ type: String,
18
+ default: '',
19
+ required: false
20
+ },
16
21
  size: {
17
22
  type: String,
18
23
  default: InputBoxSize.M
@@ -37,13 +42,14 @@ var script = defineComponent({
37
42
  emits: ['search', 'input', 'keydown', 'keyup', 'focus', 'blur', 'clear'],
38
43
  expose: ['root', 'focus', 'clear'],
39
44
  setup(props, context) {
45
+ var _a;
40
46
  // Refs
41
47
  const root = ref();
42
48
  // Styles
43
49
  const classAttribute = useClassAttribute();
44
50
  const rootStyles = computed(() => ['or-search', classAttribute.value]);
45
51
  // State
46
- const localModelValue = ref('');
52
+ const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
47
53
  // Events
48
54
  debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
49
55
  debounce: props.debounce
@@ -137,6 +143,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
137
143
  render: __vue_render__,
138
144
  staticRenderFns: __vue_staticRenderFns__
139
145
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
140
- var __vue_component__$1 = __vue_component__;
146
+ var OrSearch = __vue_component__;
141
147
 
142
- export { __vue_component__$1 as _ };
148
+ export { OrSearch as O };
@@ -129,6 +129,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
129
129
  render: __vue_render__,
130
130
  staticRenderFns: __vue_staticRenderFns__
131
131
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
132
- var OrSortHeader = __vue_component__;
132
+ var __vue_component__$1 = __vue_component__;
133
133
 
134
- export { OrSortHeader as O };
134
+ export { __vue_component__$1 as _ };
@@ -8,8 +8,8 @@ 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, O as OrButtonV3 } from '../OrButton-4b99c680.js';
9
9
  export { O as OrCard } from '../OrCard-a6b30f8f.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-89428bbf.js';
11
- export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-a9a779ea.js';
12
- export { O as OrCardV3 } from '../OrCard-58a1ba3e.js';
11
+ export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-f622df47.js';
12
+ export { _ as OrCardV3 } from '../OrCard-29116e1f.js';
13
13
  export { a as OrCarousel, _ as OrCarouselItem } from '../OrCarouselItem-6da755c0.js';
14
14
  export { O as OrCheckbox } from '../OrCheckbox-4cbddd67.js';
15
15
  export { O as OrCheckboxV3 } from '../OrCheckbox-dbef9f9a.js';
@@ -63,7 +63,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
63
63
  export { _ as OrRadio } from '../OrRadio-187d6fc7.js';
64
64
  export { _ as OrRadioGroup } from '../OrRadioGroup-aa9f0757.js';
65
65
  export { _ as OrRadioV3 } from '../OrRadio-cd39b20b.js';
66
- export { _ as OrSearchV3 } from '../OrSearch-9d402f56.js';
66
+ export { O as OrSearchV3 } from '../OrSearch-a11b3621.js';
67
67
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-21cc914e.js';
68
68
  export { _ as OrSelect } from '../OrSelect-a23d4210.js';
69
69
  export { _ as OrSelectV3 } from '../OrSelect-b20a9be0.js';
@@ -72,7 +72,7 @@ export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-c95ef614
72
72
  export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-242d22f3.js';
73
73
  export { _ as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText-516993b4.js';
74
74
  export { _ as OrSlider } from '../OrSlider-59d05856.js';
75
- export { O as OrSortHeaderV3 } from '../OrSortHeader-396e6a7c.js';
75
+ export { _ as OrSortHeaderV3 } from '../OrSortHeader-9932d28f.js';
76
76
  export { _ as OrStepper } from '../OrStepper-3fc1a2b3.js';
77
77
  export { _ as OrSwitch } from '../OrSwitch-47670dbd.js';
78
78
  export { _ as OrSwitchV3 } from '../OrSwitch-237a2081.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>;
@@ -1,41 +1,51 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { SortHeaderModel } from '../or-sort-header-v3';
3
- import { CardCollectionView } from './props';
4
- import { CardCollectionItem, CardCollectionSortHeader } from './types';
2
+ import { CardCollectionItem, SortOption, ViewMode } from './types';
5
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
6
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
+ sortMenu: import("@vue/composition-api").Ref<(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, {
6
+ [x: string]: ((...args: any[]) => any) | null;
7
+ } | string[], {} & {}, {
8
+ [x: number]: string;
9
+ } | {}, true>)) | undefined>;
10
+ sortButton: import("@vue/composition-api").Ref<(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, {
11
+ [x: string]: ((...args: any[]) => any) | null;
12
+ } | string[], {} & {}, {
13
+ [x: number]: string;
14
+ } | {}, true>)) | undefined>;
7
15
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
8
16
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
9
17
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
10
- contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
11
- proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
12
- proxySort: import("@vue/composition-api").Ref<{
13
- column: string;
14
- direction: "asc" | "desc";
15
- }>;
18
+ proxyView: import("@vue/composition-api").Ref<string>;
19
+ proxySort: import("@vue/composition-api").Ref<string>;
16
20
  proxySearch: import("@vue/composition-api").Ref<string>;
17
- switchToGridView: () => void;
18
- switchToListView: () => void;
21
+ sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
22
+ switchView: (view: string) => void;
23
+ handleSort: (sort: string) => void;
24
+ handleSearch: (search: string) => void;
19
25
  }> & import("@vue/composition-api").Data, {}, {}, {
20
26
  items: {
21
27
  type: PropType<CardCollectionItem[]>;
22
28
  default: CardCollectionItem[];
23
29
  };
24
30
  view: {
25
- type: PropType<CardCollectionView>;
26
- default: CardCollectionView;
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ viewModes: {
35
+ type: PropType<ViewMode[]>;
36
+ default: () => ViewMode[];
27
37
  };
28
38
  sort: {
29
- type: PropType<SortHeaderModel>;
39
+ type: StringConstructor;
30
40
  default: undefined;
31
41
  };
32
- sortHeaders: {
33
- type: PropType<CardCollectionSortHeader[]>;
34
- default: undefined;
42
+ sortOptions: {
43
+ type: PropType<SortOption[]>;
44
+ default: () => never[];
35
45
  };
36
46
  search: {
37
47
  type: StringConstructor;
38
- default: undefined;
48
+ default: string;
39
49
  };
40
50
  }, import("@vue/composition-api").ExtractPropTypes<{
41
51
  items: {
@@ -43,56 +53,71 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
43
53
  default: CardCollectionItem[];
44
54
  };
45
55
  view: {
46
- type: PropType<CardCollectionView>;
47
- default: CardCollectionView;
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ viewModes: {
60
+ type: PropType<ViewMode[]>;
61
+ default: () => ViewMode[];
48
62
  };
49
63
  sort: {
50
- type: PropType<SortHeaderModel>;
64
+ type: StringConstructor;
51
65
  default: undefined;
52
66
  };
53
- sortHeaders: {
54
- type: PropType<CardCollectionSortHeader[]>;
55
- default: undefined;
67
+ sortOptions: {
68
+ type: PropType<SortOption[]>;
69
+ default: () => never[];
56
70
  };
57
71
  search: {
58
72
  type: StringConstructor;
59
- default: undefined;
73
+ default: string;
60
74
  };
61
75
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
62
76
  search: string;
63
- sort: SortHeaderModel;
77
+ sort: string;
64
78
  items: CardCollectionItem[];
65
- view: CardCollectionView;
66
- sortHeaders: CardCollectionSortHeader[];
79
+ view: string;
80
+ viewModes: ViewMode[];
81
+ sortOptions: SortOption[];
67
82
  } & {} & {
68
83
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
69
84
  }, import("@vue/composition-api").ShallowUnwrapRef<{
70
85
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
86
+ sortMenu: import("@vue/composition-api").Ref<(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, {
87
+ [x: string]: ((...args: any[]) => any) | null;
88
+ } | string[], {} & {}, {
89
+ [x: number]: string;
90
+ } | {}, true>)) | undefined>;
91
+ sortButton: import("@vue/composition-api").Ref<(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, {
92
+ [x: string]: ((...args: any[]) => any) | null;
93
+ } | string[], {} & {}, {
94
+ [x: number]: string;
95
+ } | {}, true>)) | undefined>;
71
96
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
72
97
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
73
98
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
74
- contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
75
- proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
76
- proxySort: import("@vue/composition-api").Ref<{
77
- column: string;
78
- direction: "asc" | "desc";
79
- }>;
99
+ proxyView: import("@vue/composition-api").Ref<string>;
100
+ proxySort: import("@vue/composition-api").Ref<string>;
80
101
  proxySearch: import("@vue/composition-api").Ref<string>;
81
- switchToGridView: () => void;
82
- switchToListView: () => void;
102
+ sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
103
+ switchView: (view: string) => void;
104
+ handleSort: (sort: string) => void;
105
+ handleSearch: (search: string) => void;
83
106
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
84
107
  search: string;
85
- sort: SortHeaderModel;
108
+ sort: string;
86
109
  items: CardCollectionItem[];
87
- view: CardCollectionView;
88
- sortHeaders: CardCollectionSortHeader[];
110
+ view: string;
111
+ viewModes: ViewMode[];
112
+ sortOptions: SortOption[];
89
113
  } & {} & {
90
114
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
91
115
  }, {
92
116
  search: string;
93
- sort: SortHeaderModel;
117
+ sort: string;
94
118
  items: CardCollectionItem[];
95
- view: CardCollectionView;
96
- sortHeaders: CardCollectionSortHeader[];
119
+ view: string;
120
+ viewModes: ViewMode[];
121
+ sortOptions: SortOption[];
97
122
  }, true>);
98
123
  export default _default;
@@ -0,0 +1,35 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { CardCollectionItem } from './types';
3
+ import { DefaultCardCollectionViews } from './props';
4
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
+ }> & import("@vue/composition-api").Data, {}, {}, {
7
+ items: {
8
+ type: PropType<CardCollectionItem[]>;
9
+ default: CardCollectionItem[];
10
+ };
11
+ mode: {
12
+ type: PropType<DefaultCardCollectionViews>;
13
+ required: true;
14
+ };
15
+ }, import("@vue/composition-api").ExtractPropTypes<{
16
+ items: {
17
+ type: PropType<CardCollectionItem[]>;
18
+ default: CardCollectionItem[];
19
+ };
20
+ mode: {
21
+ type: PropType<DefaultCardCollectionViews>;
22
+ required: true;
23
+ };
24
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
25
+ items: CardCollectionItem[];
26
+ mode: DefaultCardCollectionViews;
27
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
28
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
29
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
30
+ items: CardCollectionItem[];
31
+ mode: DefaultCardCollectionViews;
32
+ } & {}, {
33
+ items: CardCollectionItem[];
34
+ }, true>);
35
+ export default _default;