@onereach/ui-components 2.69.1-beta.2100.0 → 2.69.1-beta.2101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/bundled/v2/{OrAvatar-2fa559e1.js → OrAvatar-1ada4581.js} +7 -1
  2. package/dist/bundled/v2/{OrCard-29116e1f.js → OrCard-58a1ba3e.js} +2 -2
  3. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +228 -0
  4. package/dist/bundled/v2/{OrSearch-a11b3621.js → OrSearch-9d402f56.js} +3 -9
  5. package/dist/bundled/v2/{OrSortHeader-9932d28f.js → OrSortHeader-396e6a7c.js} +2 -2
  6. package/dist/bundled/v2/components/index.js +5 -5
  7. package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -1
  8. package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +2 -1
  9. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  10. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  11. package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -7
  12. package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +1 -5
  13. package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  14. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +3 -8
  15. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  16. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  17. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  18. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  19. package/dist/bundled/v2/index.js +6 -6
  20. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-22e46ce1.js → OrAvatar.vue_vue_type_script_lang-a0a72134.js} +7 -1
  21. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +164 -0
  22. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-85472b12.js → OrConfirm.vue_vue_type_script_lang-289b5600.js} +36 -6
  23. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0ae8a6dd.js → OrSearch.vue_vue_type_script_lang-ed78b21f.js} +2 -8
  24. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-919b2021.js} +36 -10
  25. package/dist/bundled/v3/components/index.js +8 -10
  26. package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -1
  27. package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +2 -1
  28. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  29. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  30. package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -11
  31. package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +1 -5
  32. package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  33. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +3 -8
  34. package/dist/bundled/v3/components/or-confirm-v3/index.js +1 -2
  35. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  36. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  37. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  38. package/dist/bundled/v3/index.js +298 -329
  39. package/dist/esm/v2/{OrAvatar-0afdef36.js → OrAvatar-95b029b4.js} +7 -1
  40. package/dist/esm/v2/OrCardCollection-4f001551.js +227 -0
  41. package/dist/esm/v2/{OrSearch-62d91301.js → OrSearch-ddb7c1fe.js} +1 -7
  42. package/dist/esm/v2/components/index.js +3 -3
  43. package/dist/esm/v2/components/or-avatar-v3/index.js +1 -1
  44. package/dist/esm/v2/components/or-avatar-v3/props.d.ts +2 -1
  45. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  46. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  47. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -7
  48. package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +1 -5
  49. package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  50. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +3 -8
  51. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  52. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  53. package/dist/esm/v2/index.js +3 -3
  54. package/dist/esm/v3/{OrAvatar-ef88d31c.js → OrAvatar-9ed782da.js} +7 -1
  55. package/dist/esm/v3/OrCardCollection-5a0febaf.js +198 -0
  56. package/dist/esm/v3/{OrSearch-aafb93b4.js → OrSearch-cdde55ce.js} +1 -7
  57. package/dist/esm/v3/components/index.js +3 -3
  58. package/dist/esm/v3/components/or-avatar-v3/index.js +1 -1
  59. package/dist/esm/v3/components/or-avatar-v3/props.d.ts +2 -1
  60. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  61. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  62. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -7
  63. package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +1 -5
  64. package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  65. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +3 -8
  66. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  67. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  68. package/dist/esm/v3/index.js +3 -3
  69. package/package.json +1 -1
  70. package/src/components/or-avatar-v3/props.ts +1 -0
  71. package/src/components/or-avatar-v3/styles.ts +9 -0
  72. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +30 -230
  73. package/src/components/or-card-collection-v3/OrCardCollection.vue +77 -120
  74. package/src/components/or-card-collection-v3/props.ts +1 -14
  75. package/src/components/or-card-collection-v3/styles.ts +3 -3
  76. package/src/components/or-card-collection-v3/types.ts +3 -9
  77. package/src/components/or-search-v3/OrSearch.vue +1 -7
  78. package/dist/bundled/v2/OrCardCollection-773ae0db.js +0 -346
  79. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  80. package/dist/bundled/v3/OrButton-8ab33d9d.js +0 -33
  81. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-b983bda7.js +0 -228
  82. package/dist/bundled/v3/OrMenu-f26e8e55.js +0 -29
  83. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  84. package/dist/esm/v2/OrCardCollection-61c86bfc.js +0 -346
  85. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  86. package/dist/esm/v3/OrCardCollection-fdc7848b.js +0 -289
  87. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  88. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +0 -41
  89. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +0 -42
@@ -10,6 +10,7 @@ var AvatarSize;
10
10
  AvatarSize["L"] = "l";
11
11
  AvatarSize["M"] = "m";
12
12
  AvatarSize["S"] = "s";
13
+ AvatarSize["XS"] = "xs";
13
14
  })(AvatarSize || (AvatarSize = {}));
14
15
  var AvatarColor;
15
16
  (function (AvatarColor) {
@@ -51,7 +52,12 @@ const AvatarRootSizes = {
51
52
  // Box
52
53
  'w-[32px]', 'h-[32px]',
53
54
  // Typography
54
- 'text-[16px]']
55
+ 'text-[16px]'],
56
+ 'xs': [
57
+ // Box
58
+ 'w-[24px]', 'h-[24px]',
59
+ // Typography
60
+ 'text-[12px]']
55
61
  };
56
62
  const AvatarRootColors = {
57
63
  [AvatarColor.blue]: [
@@ -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 __vue_component__$1 = __vue_component__;
70
+ var OrCard = __vue_component__;
71
71
 
72
- export { __vue_component__$1 as _ };
72
+ export { OrCard as O };
@@ -0,0 +1,228 @@
1
+ import './index-fa6eb4ca.js';
2
+ import { O as OrCard } from './OrCard-58a1ba3e.js';
3
+ import { O as OrIconButton } from './OrIconButton-a215104c.js';
4
+ import { O as OrInput } from './OrInput-8b90e08f.js';
5
+ import { O as OrSortHeader } from './OrSortHeader-396e6a7c.js';
6
+ import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
7
+ import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
8
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
9
+
10
+ var CardCollectionView;
11
+ (function (CardCollectionView) {
12
+ CardCollectionView["Grid"] = "grid";
13
+ CardCollectionView["List"] = "list";
14
+ })(CardCollectionView || (CardCollectionView = {}));
15
+
16
+ const CardCollectionRoot = [
17
+ // Layout
18
+ 'layout-column',
19
+ // Spacing
20
+ 'gap-md'];
21
+ const CardCollectionToolbar = [
22
+ // Layout
23
+ 'layout-row justify-between',
24
+ // Typography
25
+ 'typography-body-2-regular',
26
+ // Theme
27
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
28
+ const CardCollectionToolbarPanel = [
29
+ // Layout
30
+ 'layout-row',
31
+ // Spacing
32
+ 'gap-sm+'];
33
+ const CardCollectionContent = [
34
+ // Layout
35
+ 'grid',
36
+ // Spacing
37
+ 'gap-sm md:gap-md'];
38
+ const CardCollectionContentViews = {
39
+ 'grid': [
40
+ // Layout
41
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
42
+ 'list': []
43
+ };
44
+
45
+ var script = defineComponent({
46
+ name: 'OrCardCollection',
47
+ components: {
48
+ OrCard,
49
+ OrIconButton,
50
+ OrInput,
51
+ OrSortHeader
52
+ },
53
+ inheritAttrs: false,
54
+ props: {
55
+ items: {
56
+ type: Array,
57
+ default: []
58
+ },
59
+ view: {
60
+ type: String,
61
+ default: CardCollectionView.Grid
62
+ },
63
+ sort: {
64
+ type: Object,
65
+ default: undefined
66
+ },
67
+ sortHeaders: {
68
+ type: Array,
69
+ default: undefined
70
+ },
71
+ search: {
72
+ type: String,
73
+ default: undefined
74
+ }
75
+ },
76
+ emits: ['viewChange', 'sortChange', 'searchChange'],
77
+ expose: ['root'],
78
+ setup(props, context) {
79
+ // Refs
80
+ const root = ref();
81
+ // Styles
82
+ const classAttribute = useClassAttribute();
83
+ const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
84
+ const toolbarStyles = computed(() => [...CardCollectionToolbar]);
85
+ const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
86
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
87
+ // State
88
+ const proxyView = ref(props.view);
89
+ const proxySort = ref(props.sort);
90
+ const proxySearch = ref(props.search);
91
+ // Methods
92
+ function switchToGridView() {
93
+ proxyView.value = CardCollectionView.Grid;
94
+ }
95
+ function switchToListView() {
96
+ proxyView.value = CardCollectionView.List;
97
+ }
98
+ // Effects
99
+ watch(() => props.view, value => {
100
+ proxyView.value = value;
101
+ });
102
+ watch(proxyView, value => {
103
+ context.emit('viewChange', value);
104
+ });
105
+ watch(() => props.sort, value => {
106
+ proxySort.value = value;
107
+ });
108
+ watch(proxySort, value => {
109
+ context.emit('sortChange', value);
110
+ });
111
+ watch(() => props.search, value => {
112
+ proxySearch.value = value;
113
+ });
114
+ watch(proxySearch, value => {
115
+ context.emit('searchChange', value);
116
+ });
117
+ return {
118
+ root,
119
+ rootStyles,
120
+ toolbarStyles,
121
+ toolbarPanelStyles,
122
+ contentStyles,
123
+ proxyView,
124
+ proxySort,
125
+ proxySearch,
126
+ switchToGridView,
127
+ switchToListView
128
+ };
129
+ }
130
+ });
131
+
132
+ /* script */
133
+ const __vue_script__ = script;
134
+
135
+ /* template */
136
+ var __vue_render__ = function () {
137
+ var _vm = this;
138
+ var _h = _vm.$createElement;
139
+ var _c = _vm._self._c || _h;
140
+ return _c('div', _vm._b({
141
+ ref: "root",
142
+ class: _vm.rootStyles
143
+ }, 'div', _vm.$attrs, false), [_c('div', {
144
+ class: _vm.toolbarStyles
145
+ }, [_c('div', {
146
+ class: _vm.toolbarPanelStyles
147
+ }, [_vm.sortHeaders ? _vm._l(_vm.sortHeaders, function (header) {
148
+ return _c('OrSortHeader', {
149
+ key: header.value,
150
+ attrs: {
151
+ "input-value": header.value
152
+ },
153
+ model: {
154
+ value: _vm.proxySort,
155
+ callback: function ($$v) {
156
+ _vm.proxySort = $$v;
157
+ },
158
+ expression: "proxySort"
159
+ }
160
+ }, [_vm._v("\n " + _vm._s(header.label) + "\n ")]);
161
+ }) : _vm._e()], 2), _vm._v(" "), _c('div', {
162
+ class: _vm.toolbarPanelStyles
163
+ }, [_c('OrInput', {
164
+ attrs: {
165
+ "type": 'search',
166
+ "placeholder": 'Search',
167
+ "size": 's'
168
+ },
169
+ model: {
170
+ value: _vm.proxySearch,
171
+ callback: function ($$v) {
172
+ _vm.proxySearch = $$v;
173
+ },
174
+ expression: "proxySearch"
175
+ }
176
+ }), _vm._v(" "), _c('OrIconButton', {
177
+ attrs: {
178
+ "icon": 'grid_view'
179
+ },
180
+ on: {
181
+ "click": function ($event) {
182
+ return _vm.switchToGridView();
183
+ }
184
+ }
185
+ }), _vm._v(" "), _c('OrIconButton', {
186
+ attrs: {
187
+ "icon": 'view_list'
188
+ },
189
+ on: {
190
+ "click": function ($event) {
191
+ return _vm.switchToListView();
192
+ }
193
+ }
194
+ }), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _c('div', {
195
+ class: _vm.contentStyles
196
+ }, [_vm.proxyView === 'grid' ? _vm._l(_vm.items, function (item) {
197
+ return _c('OrCard', {
198
+ key: item.id
199
+ }, [_vm._t("gridItem", null, null, item)], 2);
200
+ }) : _vm._e(), _vm._v(" "), _vm.proxyView === 'list' ? _vm._l(_vm.items, function (item) {
201
+ return _c('OrCard', {
202
+ key: item.id
203
+ }, [_vm._t("listItem", null, null, item)], 2);
204
+ }) : _vm._e()], 2)]);
205
+ };
206
+ var __vue_staticRenderFns__ = [];
207
+
208
+ /* style */
209
+ const __vue_inject_styles__ = undefined;
210
+ /* scoped */
211
+ const __vue_scope_id__ = undefined;
212
+ /* module identifier */
213
+ const __vue_module_identifier__ = undefined;
214
+ /* functional template */
215
+ const __vue_is_functional_template__ = false;
216
+ /* style inject */
217
+
218
+ /* style inject SSR */
219
+
220
+ /* style inject shadow dom */
221
+
222
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
223
+ render: __vue_render__,
224
+ staticRenderFns: __vue_staticRenderFns__
225
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
226
+ var __vue_component__$1 = __vue_component__;
227
+
228
+ export { CardCollectionView as C, __vue_component__$1 as _ };
@@ -13,11 +13,6 @@ var script = defineComponent({
13
13
  },
14
14
  inheritAttrs: false,
15
15
  props: {
16
- modelValue: {
17
- type: String,
18
- default: '',
19
- required: false
20
- },
21
16
  size: {
22
17
  type: String,
23
18
  default: InputBoxSize.M
@@ -42,14 +37,13 @@ var script = defineComponent({
42
37
  emits: ['search', 'input', 'keydown', 'keyup', 'focus', 'blur', 'clear'],
43
38
  expose: ['root', 'focus', 'clear'],
44
39
  setup(props, context) {
45
- var _a;
46
40
  // Refs
47
41
  const root = ref();
48
42
  // Styles
49
43
  const classAttribute = useClassAttribute();
50
44
  const rootStyles = computed(() => ['or-search', classAttribute.value]);
51
45
  // State
52
- const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
46
+ const localModelValue = ref('');
53
47
  // Events
54
48
  debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
55
49
  debounce: props.debounce
@@ -143,6 +137,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
143
137
  render: __vue_render__,
144
138
  staticRenderFns: __vue_staticRenderFns__
145
139
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
146
- var OrSearch = __vue_component__;
140
+ var __vue_component__$1 = __vue_component__;
147
141
 
148
- export { OrSearch as O };
142
+ export { __vue_component__$1 as _ };
@@ -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 __vue_component__$1 = __vue_component__;
132
+ var OrSortHeader = __vue_component__;
133
133
 
134
- export { __vue_component__$1 as _ };
134
+ export { OrSortHeader as O };
@@ -1,5 +1,5 @@
1
1
  export { O as OR_AVATAR_SIZE, _ as OrAvatar } from '../OrAvatar-0a2c265f.js';
2
- export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../OrAvatar-2fa559e1.js';
2
+ export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../OrAvatar-1ada4581.js';
3
3
  export { O as OrBottomSheetV3 } from '../OrBottomSheet-1cd1ab4c.js';
4
4
  export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from '../OrButton-2abd29d0.js';
5
5
  export { O as OrButtonV2 } from '../OrButton-705cd0bd.js';
@@ -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-0e91a808.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 { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-773ae0db.js';
12
- export { _ as OrCardV3 } from '../OrCard-29116e1f.js';
11
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-a9a779ea.js';
12
+ export { O as OrCardV3 } from '../OrCard-58a1ba3e.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 { O as OrSearchV3 } from '../OrSearch-a11b3621.js';
66
+ export { _ as OrSearchV3 } from '../OrSearch-9d402f56.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-759b4410.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 { _ as OrSortHeaderV3 } from '../OrSortHeader-9932d28f.js';
75
+ export { O as OrSortHeaderV3 } from '../OrSortHeader-396e6a7c.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,4 @@
1
- export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../../OrAvatar-2fa559e1.js';
1
+ export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../../OrAvatar-1ada4581.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -2,7 +2,8 @@ export declare enum AvatarSize {
2
2
  XL = "xl",
3
3
  L = "l",
4
4
  M = "m",
5
- S = "s"
5
+ S = "s",
6
+ XS = "xs"
6
7
  }
7
8
  export declare enum AvatarColor {
8
9
  blue = "blue",
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryFn } from '@storybook/vue3';
2
- import OrCardCollection from './OrCardCollection.vue';
3
2
  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, {
4
3
  [x: string]: ((...args: any[]) => any) | null;
5
4
  } | string[], {} & {}, {
@@ -16,7 +15,3 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
16
15
  } | string[], {} & {}, {
17
16
  [x: number]: string;
18
17
  } | {}, 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,51 +1,41 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { CardCollectionItem, SortOption, ViewMode } from './types';
2
+ import { SortHeaderModel } from '../or-sort-header-v3';
3
+ import { CardCollectionView } from './props';
4
+ import { CardCollectionItem, CardCollectionSortHeader } from './types';
3
5
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
6
  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>;
15
7
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
16
8
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
17
9
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
18
- proxyView: import("@vue/composition-api").Ref<string>;
19
- proxySort: import("@vue/composition-api").Ref<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
+ }>;
20
16
  proxySearch: import("@vue/composition-api").Ref<string>;
21
- sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
22
- switchView: (view: string) => void;
23
- handleSort: (sort: string) => void;
24
- handleSearch: (search: string) => void;
17
+ switchToGridView: () => void;
18
+ switchToListView: () => void;
25
19
  }> & import("@vue/composition-api").Data, {}, {}, {
26
20
  items: {
27
21
  type: PropType<CardCollectionItem[]>;
28
22
  default: CardCollectionItem[];
29
23
  };
30
24
  view: {
31
- type: StringConstructor;
32
- default: string;
33
- };
34
- viewModes: {
35
- type: PropType<ViewMode[]>;
36
- default: () => ViewMode[];
25
+ type: PropType<CardCollectionView>;
26
+ default: CardCollectionView;
37
27
  };
38
28
  sort: {
39
- type: StringConstructor;
29
+ type: PropType<SortHeaderModel>;
40
30
  default: undefined;
41
31
  };
42
- sortOptions: {
43
- type: PropType<SortOption[]>;
44
- default: () => never[];
32
+ sortHeaders: {
33
+ type: PropType<CardCollectionSortHeader[]>;
34
+ default: undefined;
45
35
  };
46
36
  search: {
47
37
  type: StringConstructor;
48
- default: string;
38
+ default: undefined;
49
39
  };
50
40
  }, import("@vue/composition-api").ExtractPropTypes<{
51
41
  items: {
@@ -53,71 +43,56 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
53
43
  default: CardCollectionItem[];
54
44
  };
55
45
  view: {
56
- type: StringConstructor;
57
- default: string;
58
- };
59
- viewModes: {
60
- type: PropType<ViewMode[]>;
61
- default: () => ViewMode[];
46
+ type: PropType<CardCollectionView>;
47
+ default: CardCollectionView;
62
48
  };
63
49
  sort: {
64
- type: StringConstructor;
50
+ type: PropType<SortHeaderModel>;
65
51
  default: undefined;
66
52
  };
67
- sortOptions: {
68
- type: PropType<SortOption[]>;
69
- default: () => never[];
53
+ sortHeaders: {
54
+ type: PropType<CardCollectionSortHeader[]>;
55
+ default: undefined;
70
56
  };
71
57
  search: {
72
58
  type: StringConstructor;
73
- default: string;
59
+ default: undefined;
74
60
  };
75
61
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
76
62
  search: string;
77
- sort: string;
63
+ sort: SortHeaderModel;
78
64
  items: CardCollectionItem[];
79
- view: string;
80
- viewModes: ViewMode[];
81
- sortOptions: SortOption[];
65
+ view: CardCollectionView;
66
+ sortHeaders: CardCollectionSortHeader[];
82
67
  } & {} & {
83
68
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
84
69
  }, import("@vue/composition-api").ShallowUnwrapRef<{
85
70
  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>;
96
71
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
97
72
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
98
73
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
99
- proxyView: import("@vue/composition-api").Ref<string>;
100
- proxySort: import("@vue/composition-api").Ref<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
+ }>;
101
80
  proxySearch: import("@vue/composition-api").Ref<string>;
102
- sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
103
- switchView: (view: string) => void;
104
- handleSort: (sort: string) => void;
105
- handleSearch: (search: string) => void;
81
+ switchToGridView: () => void;
82
+ switchToListView: () => void;
106
83
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
107
84
  search: string;
108
- sort: string;
85
+ sort: SortHeaderModel;
109
86
  items: CardCollectionItem[];
110
- view: string;
111
- viewModes: ViewMode[];
112
- sortOptions: SortOption[];
87
+ view: CardCollectionView;
88
+ sortHeaders: CardCollectionSortHeader[];
113
89
  } & {} & {
114
90
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
115
91
  }, {
116
92
  search: string;
117
- sort: string;
93
+ sort: SortHeaderModel;
118
94
  items: CardCollectionItem[];
119
- view: string;
120
- viewModes: ViewMode[];
121
- sortOptions: SortOption[];
95
+ view: CardCollectionView;
96
+ sortHeaders: CardCollectionSortHeader[];
122
97
  }, true>);
123
98
  export default _default;
@@ -1,11 +1,12 @@
1
- export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-773ae0db.js';
1
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-a9a779ea.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
5
+ import '../../OrCard-58a1ba3e.js';
6
+ import '../../useClassAttribute-9bf33346.js';
5
7
  import '../../normalize-component-6e8e3d80.js';
6
8
  import '../../OrIconButton-a215104c.js';
7
9
  import '../../OrIcon-8625385f.js';
8
- import '../../useClassAttribute-9bf33346.js';
9
10
  import '../../OrTooltip-fbfa05fd.js';
10
11
  import '@vueuse/core';
11
12
  import '../../OrPopover-5dc240f1.js';
@@ -16,14 +17,10 @@ import '../../OrTeleport.vue2-e9ba3054.js';
16
17
  import 'portal-vue';
17
18
  import '../../useElevation-aac032f4.js';
18
19
  import '../../useResponsive-e13dfbb0.js';
19
- import '../../OrButton-0e91a808.js';
20
- import '../../OrLoader-6a1f937b.js';
21
- import '../../OrMenu-fa47c888.js';
22
- import '../../OrMenuItem-26420908.js';
23
- import '../../OrSearch-a11b3621.js';
24
20
  import '../../OrInput-8b90e08f.js';
25
21
  import '../../OrError-aad17598.js';
26
22
  import '../../OrHint-f38a1940.js';
27
23
  import '../../OrInputBox-79ec54ad.js';
28
24
  import '../../OrLabel-172c4b89.js';
29
25
  import '../../browser-82dea9ed.js';
26
+ import '../../OrSortHeader-396e6a7c.js';
@@ -1,8 +1,4 @@
1
- import { ViewMode } from './types';
2
- export declare enum DefaultCardCollectionViews {
1
+ export declare enum CardCollectionView {
3
2
  Grid = "grid",
4
3
  List = "list"
5
4
  }
6
- export declare const gridView: ViewMode;
7
- export declare const listView: ViewMode;
8
- export declare const defaultViewModes: ViewMode[];
@@ -1,6 +1,6 @@
1
- import { DefaultCardCollectionViews } from './props';
1
+ import { CardCollectionView } from './props';
2
2
  export declare const CardCollectionRoot: string[];
3
3
  export declare const CardCollectionToolbar: string[];
4
4
  export declare const CardCollectionToolbarPanel: string[];
5
5
  export declare const CardCollectionContent: string[];
6
- export declare const CardCollectionContentViews: Record<DefaultCardCollectionViews, string[]>;
6
+ export declare const CardCollectionContentViews: Record<CardCollectionView, string[]>;
@@ -1,12 +1,7 @@
1
1
  export interface CardCollectionItem {
2
- key?: string;
3
- [key: string | number]: any;
2
+ id: string;
4
3
  }
5
- export interface ViewMode {
6
- view: string;
7
- icon: string;
8
- }
9
- export interface SortOption {
10
- label: string;
4
+ export interface CardCollectionSortHeader {
11
5
  value: string;
6
+ label: string;
12
7
  }
@@ -1,4 +1,4 @@
1
- export { _ as OrCardV3 } from '../../OrCard-29116e1f.js';
1
+ export { O as OrCardV3 } from '../../OrCard-58a1ba3e.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';