@onereach/ui-components 2.69.1-beta.2095.0 → 2.69.1-beta.2097.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 (142) hide show
  1. package/dist/bundled/v2/{OrButton-66d37aff.js → OrButton-0e91a808.js} +1 -14
  2. package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
  3. package/dist/bundled/v2/OrCardCollection-8606c407.js +336 -0
  4. package/dist/bundled/v2/{OrConfirm-e1ca1422.js → OrConfirm-18c534df.js} +1 -1
  5. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-19f43fe5.js} +2 -2
  6. package/dist/bundled/v2/{OrSelect-1c9421ad.js → OrSelect-759b4410.js} +3 -3
  7. package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
  8. package/dist/bundled/v2/components/index.d.ts +0 -1
  9. package/dist/bundled/v2/components/index.js +7 -8
  10. package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
  11. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  12. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +4 -0
  13. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +63 -37
  14. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  15. package/dist/bundled/v2/components/or-card-collection-v3/constatnts.d.ts +4 -0
  16. package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -4
  17. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
  18. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  19. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  20. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  21. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  22. package/dist/bundled/v2/components/or-select-v3/index.d.ts +0 -1
  23. package/dist/bundled/v2/components/or-select-v3/index.js +1 -1
  24. package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
  25. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  26. package/dist/bundled/v2/index.js +8 -9
  27. package/dist/bundled/v3/{OrButton-9640286b.js → OrButton-8ab33d9d.js} +2 -3
  28. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-06d8ead1.js → OrButton.vue_vue_type_script_lang-3718b300.js} +1 -13
  29. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-80c10c12.js +229 -0
  30. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-f1b81f00.js → OrConfirm.vue_vue_type_script_lang-85472b12.js} +2 -2
  31. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-cb2d6612.js} +1 -1
  32. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-d0626539.js → OrSelect.vue_vue_type_script_lang-dfadd12f.js} +2 -2
  33. package/dist/bundled/v3/components/index.d.ts +0 -1
  34. package/dist/bundled/v3/components/index.js +10 -11
  35. package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
  36. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  37. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +4 -0
  38. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +63 -37
  39. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  40. package/dist/bundled/v3/components/or-card-collection-v3/constatnts.d.ts +4 -0
  41. package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -4
  42. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
  43. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
  44. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  45. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  46. package/dist/bundled/v3/components/or-select-v3/index.d.ts +0 -1
  47. package/dist/bundled/v3/components/or-select-v3/index.js +1 -1
  48. package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
  49. package/dist/bundled/v3/index.js +295 -354
  50. package/dist/esm/v2/{OrButton-3d4fc9da.js → OrButton-357a5756.js} +1 -14
  51. package/dist/esm/v2/OrCardCollection-e7a4ead6.js +336 -0
  52. package/dist/esm/v2/{OrConfirm-ba3f8c45.js → OrConfirm-b0b2e43c.js} +1 -1
  53. package/dist/esm/v2/{OrSelect-ca2510cd.js → OrSelect-ac382aa6.js} +3 -3
  54. package/dist/esm/v2/components/index.d.ts +0 -1
  55. package/dist/esm/v2/components/index.js +4 -5
  56. package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
  57. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  58. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +4 -0
  59. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +63 -37
  60. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  61. package/dist/esm/v2/components/or-card-collection-v3/constatnts.d.ts +4 -0
  62. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
  63. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
  64. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  65. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  66. package/dist/esm/v2/components/or-select-v3/index.d.ts +0 -1
  67. package/dist/esm/v2/components/or-select-v3/index.js +1 -1
  68. package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
  69. package/dist/esm/v2/index.js +4 -5
  70. package/dist/esm/v3/{OrButton-970ae320.js → OrButton-f4b9ee51.js} +2 -15
  71. package/dist/esm/v3/OrCardCollection-3bd67c5c.js +282 -0
  72. package/dist/esm/v3/{OrConfirm-7cb2f36b.js → OrConfirm-906427ef.js} +1 -1
  73. package/dist/esm/v3/{OrSelect-bff22c7f.js → OrSelect-fee9c099.js} +3 -3
  74. package/dist/esm/v3/components/index.d.ts +0 -1
  75. package/dist/esm/v3/components/index.js +4 -5
  76. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
  77. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  78. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +4 -0
  79. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +63 -37
  80. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  81. package/dist/esm/v3/components/or-card-collection-v3/constatnts.d.ts +4 -0
  82. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -4
  83. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
  84. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  85. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  86. package/dist/esm/v3/components/or-select-v3/index.d.ts +0 -1
  87. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  88. package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
  89. package/dist/esm/v3/index.js +4 -5
  90. package/package.json +1 -1
  91. package/src/components/index.ts +0 -1
  92. package/src/components/or-button-v3/OrButton.stories3.ts +0 -4
  93. package/src/components/or-button-v3/OrButton.vue +0 -6
  94. package/src/components/or-button-v3/styles.ts +1 -15
  95. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +193 -28
  96. package/src/components/or-card-collection-v3/OrCardCollection.vue +110 -76
  97. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
  98. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
  99. package/src/components/or-card-collection-v3/constatnts.ts +12 -0
  100. package/src/components/or-card-collection-v3/styles.ts +1 -1
  101. package/src/components/or-card-collection-v3/types.ts +9 -3
  102. package/src/components/or-select-v3/OrSelect.vue +3 -3
  103. package/src/components/or-select-v3/index.ts +0 -1
  104. package/src/components/or-select-v3/types.ts +1 -1
  105. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
  106. package/dist/bundled/v2/OrPagination-354e9abd.js +0 -296
  107. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  108. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  109. package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +0 -2
  110. package/dist/bundled/v2/components/or-pagination-v3/index.js +0 -20
  111. package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +0 -3
  112. package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +0 -4
  113. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +0 -164
  114. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-ff22b11c.js +0 -180
  115. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  116. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  117. package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +0 -2
  118. package/dist/bundled/v3/components/or-pagination-v3/index.js +0 -22
  119. package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +0 -3
  120. package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +0 -4
  121. package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
  122. package/dist/esm/v2/OrPagination-a56eb93b.js +0 -296
  123. package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  124. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  125. package/dist/esm/v2/components/or-pagination-v3/index.d.ts +0 -2
  126. package/dist/esm/v2/components/or-pagination-v3/index.js +0 -18
  127. package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +0 -3
  128. package/dist/esm/v2/components/or-pagination-v3/types.d.ts +0 -4
  129. package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
  130. package/dist/esm/v3/OrPagination-d351a13b.js +0 -257
  131. package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  132. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  133. package/dist/esm/v3/components/or-pagination-v3/index.d.ts +0 -2
  134. package/dist/esm/v3/components/or-pagination-v3/index.js +0 -17
  135. package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +0 -3
  136. package/dist/esm/v3/components/or-pagination-v3/types.d.ts +0 -4
  137. package/src/components/or-pagination-v3/OrPagination.docs.mdx +0 -7
  138. package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -87
  139. package/src/components/or-pagination-v3/OrPagination.vue +0 -260
  140. package/src/components/or-pagination-v3/index.ts +0 -2
  141. package/src/components/or-pagination-v3/styles.ts +0 -30
  142. package/src/components/or-pagination-v3/types.ts +0 -4
@@ -77,15 +77,7 @@ const ButtonRootColors = {
77
77
  'danger-link': [
78
78
  // Theme
79
79
  'theme-preset-4-error', 'dark:theme-preset-4-error-dark'],
80
- 'inherit-link': [
81
- // Typography
82
- 'typography-caption-regular',
83
- // Typography (activated)
84
- 'activated:typography-caption-bold',
85
- // Theme
86
- 'theme-foreground-inherit', 'dark:theme-foreground-inherit',
87
- // Theme (activated)
88
- 'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark']
80
+ 'inherit-link': []
89
81
  };
90
82
 
91
83
  var script = defineComponent({
@@ -107,10 +99,6 @@ var script = defineComponent({
107
99
  type: String,
108
100
  default: ButtonColor.Primary
109
101
  },
110
- activated: {
111
- type: Boolean,
112
- default: false
113
- },
114
102
  disabled: {
115
103
  type: Boolean,
116
104
  default: false
@@ -152,7 +140,6 @@ var __vue_render__ = function () {
152
140
  class: _vm.rootStyles,
153
141
  attrs: {
154
142
  "type": _vm.type,
155
- "activated": _vm.activated ? '' : null,
156
143
  "disabled": _vm.disabled
157
144
  },
158
145
  on: {
@@ -0,0 +1,336 @@
1
+ import { defineComponent, computed, ref, watch } from 'vue-demi';
2
+ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
+ import '@vueuse/core';
4
+ import { _ as __vue_component__$2 } from './OrIconButton-e17e4944.js';
5
+ import { _ as __vue_component__$4 } from './OrMenu-df27d0ef.js';
6
+ import './OrPopover-9bafbdb4.js';
7
+ import { _ as __vue_component__$5 } from './OrMenuItem-c7f28480.js';
8
+ import { _ as __vue_component__$6 } from './OrIcon-5e394c62.js';
9
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
10
+ import { _ as __vue_component__$3 } from './OrButton-357a5756.js';
11
+ import { _ as __vue_component__$7 } from './OrSearch-ddb7c1fe.js';
12
+ import './OrInputBox-4d5a318d.js';
13
+
14
+ var CardCollectionView;
15
+ (function (CardCollectionView) {
16
+ CardCollectionView["Grid"] = "grid";
17
+ CardCollectionView["List"] = "list";
18
+ })(CardCollectionView || (CardCollectionView = {}));
19
+
20
+ const CardCollectionRoot = [
21
+ // Layout
22
+ 'layout-column',
23
+ // Spacing
24
+ 'gap-md'];
25
+ const CardCollectionToolbar = [
26
+ // Layout
27
+ 'layout-row justify-between',
28
+ // Typography
29
+ 'typography-body-2-regular',
30
+ // Theme
31
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
32
+ const CardCollectionToolbarPanel = [
33
+ // Layout
34
+ 'layout-row',
35
+ // Spacing
36
+ 'gap-lg+'];
37
+ const CardCollectionContent = [
38
+ // Layout
39
+ 'grid',
40
+ // Spacing
41
+ 'gap-sm md:gap-md'];
42
+ const CardCollectionContentViews = {
43
+ 'grid': [
44
+ // Layout
45
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
46
+ 'list': []
47
+ };
48
+
49
+ var script$1 = defineComponent({
50
+ name: 'OrCardCollectionView',
51
+ props: {
52
+ items: {
53
+ type: Array,
54
+ default: []
55
+ },
56
+ mode: {
57
+ type: String,
58
+ required: true
59
+ }
60
+ },
61
+ setup(props) {
62
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
63
+ return {
64
+ contentStyles
65
+ };
66
+ }
67
+ });
68
+
69
+ /* script */
70
+ const __vue_script__$1 = script$1;
71
+
72
+ /* template */
73
+ var __vue_render__$1 = function () {
74
+ var _vm = this;
75
+ var _h = _vm.$createElement;
76
+ var _c = _vm._self._c || _h;
77
+ return _c('div', {
78
+ class: _vm.contentStyles
79
+ }, [_vm._l(_vm.items, function (item) {
80
+ return _vm._t("item", function () {
81
+ return [_vm._v("\n " + _vm._s(item.key) + "\n ")];
82
+ }, null, {
83
+ item: item,
84
+ mode: _vm.mode
85
+ });
86
+ })], 2);
87
+ };
88
+ var __vue_staticRenderFns__$1 = [];
89
+
90
+ /* style */
91
+ const __vue_inject_styles__$1 = undefined;
92
+ /* scoped */
93
+ const __vue_scope_id__$1 = undefined;
94
+ /* module identifier */
95
+ const __vue_module_identifier__$1 = undefined;
96
+ /* functional template */
97
+ const __vue_is_functional_template__$1 = false;
98
+ /* style inject */
99
+
100
+ /* style inject SSR */
101
+
102
+ /* style inject shadow dom */
103
+
104
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
105
+ render: __vue_render__$1,
106
+ staticRenderFns: __vue_staticRenderFns__$1
107
+ }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
108
+
109
+ const gridView = {
110
+ view: 'grid',
111
+ icon: 'grid_view'
112
+ };
113
+ const listView = {
114
+ view: 'list',
115
+ icon: 'view_agenda'
116
+ };
117
+ const defaultViewModes = [gridView, listView];
118
+
119
+ var script = defineComponent({
120
+ name: 'OrCardCollection',
121
+ components: {
122
+ OrCardCollectionView: __vue_component__$1,
123
+ OrIconButton: __vue_component__$2,
124
+ OrButton: __vue_component__$3,
125
+ OrMenu: __vue_component__$4,
126
+ OrMenuItem: __vue_component__$5,
127
+ OrIcon: __vue_component__$6,
128
+ OrSearch: __vue_component__$7
129
+ },
130
+ inheritAttrs: false,
131
+ props: {
132
+ items: {
133
+ type: Array,
134
+ default: []
135
+ },
136
+ view: {
137
+ type: String,
138
+ default: CardCollectionView.Grid
139
+ },
140
+ viewModes: {
141
+ type: Array,
142
+ default: () => defaultViewModes
143
+ },
144
+ sort: {
145
+ type: String,
146
+ default: undefined
147
+ },
148
+ sortOptions: {
149
+ type: Array,
150
+ default: () => []
151
+ },
152
+ search: {
153
+ type: String,
154
+ default: undefined
155
+ }
156
+ },
157
+ emits: ['viewChange', 'sortChange', 'searchChange'],
158
+ expose: ['root'],
159
+ setup(props, context) {
160
+ // Refs
161
+ const root = ref();
162
+ const sortMenu = ref();
163
+ const sortButton = ref();
164
+ // Styles
165
+ const classAttribute = useClassAttribute();
166
+ const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
167
+ const toolbarStyles = computed(() => [...CardCollectionToolbar]);
168
+ const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
169
+ const sortLabel = computed(() => {
170
+ var _a;
171
+ return (_a = props.sortOptions.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
172
+ });
173
+ // State
174
+ const proxyView = ref(props.view);
175
+ const proxySort = ref(props.sort);
176
+ const proxySearch = ref(props.search);
177
+ // Methods
178
+ function switchView(view) {
179
+ proxyView.value = view;
180
+ }
181
+ function handleSort(sort) {
182
+ proxySort.value = sort;
183
+ }
184
+ function handleSearch(search) {
185
+ proxySearch.value = search;
186
+ }
187
+ // Effects
188
+ watch(() => props.view, value => {
189
+ proxyView.value = value;
190
+ });
191
+ watch(proxyView, value => {
192
+ context.emit('viewChange', value);
193
+ });
194
+ watch(() => props.sort, value => {
195
+ proxySort.value = value;
196
+ });
197
+ watch(proxySort, value => {
198
+ context.emit('sortChange', value);
199
+ });
200
+ watch(() => props.search, value => {
201
+ proxySearch.value = value;
202
+ });
203
+ watch(proxySearch, value => {
204
+ context.emit('searchChange', value);
205
+ });
206
+ return {
207
+ root,
208
+ sortMenu,
209
+ sortButton,
210
+ rootStyles,
211
+ toolbarStyles,
212
+ toolbarPanelStyles,
213
+ proxyView,
214
+ proxySort,
215
+ proxySearch,
216
+ sortLabel,
217
+ switchView,
218
+ handleSort,
219
+ handleSearch
220
+ };
221
+ }
222
+ });
223
+
224
+ /* script */
225
+ const __vue_script__ = script;
226
+
227
+ /* template */
228
+ var __vue_render__ = function () {
229
+ var _vm = this;
230
+ var _h = _vm.$createElement;
231
+ var _c = _vm._self._c || _h;
232
+ return _c('div', _vm._b({
233
+ ref: "root",
234
+ class: _vm.rootStyles
235
+ }, 'div', _vm.$attrs, false), [_c('div', {
236
+ class: _vm.toolbarStyles
237
+ }, [_c('div', {
238
+ class: _vm.toolbarPanelStyles
239
+ }, [_vm.sortOptions.length ? [_c('OrButton', {
240
+ ref: "sortButton",
241
+ attrs: {
242
+ "variant": "link",
243
+ "color": "inherit"
244
+ },
245
+ on: {
246
+ "click": function ($event) {
247
+ return _vm.sortMenu.toggle();
248
+ }
249
+ }
250
+ }, [_vm._v("\n " + _vm._s(_vm.sortLabel) + "\n "), _vm.sortMenu ? _c('OrIcon', {
251
+ attrs: {
252
+ "icon": _vm.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
253
+ }
254
+ }) : _vm._e()], 1), _vm._v(" "), _c('OrMenu', {
255
+ ref: "sortMenu",
256
+ attrs: {
257
+ "trigger": _vm.sortButton && _vm.sortButton.root
258
+ }
259
+ }, _vm._l(_vm.sortOptions, function (sortItem) {
260
+ return _c('OrMenuItem', {
261
+ key: sortItem,
262
+ on: {
263
+ "click": function ($event) {
264
+ return _vm.handleSort(sortItem.value);
265
+ }
266
+ }
267
+ }, [_vm._v("\n " + _vm._s(sortItem.label) + "\n ")]);
268
+ }), 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
269
+ class: _vm.toolbarPanelStyles
270
+ }, [_c('OrSearch', {
271
+ staticClass: "md:w-[350px]",
272
+ attrs: {
273
+ "size": "s"
274
+ },
275
+ on: {
276
+ "search": _vm.handleSearch
277
+ }
278
+ }), _vm._v(" "), _c('div', {
279
+ staticClass: "layout-row gap-sm"
280
+ }, [_vm.viewModes.length > 1 ? _vm._l(_vm.viewModes, function (viewOption) {
281
+ return _c('OrIconButton', {
282
+ key: viewOption.view,
283
+ attrs: {
284
+ "icon": {
285
+ icon: viewOption.icon,
286
+ variant: viewOption.view === _vm.proxyView ? 'filled' : 'outlined'
287
+ }
288
+ },
289
+ on: {
290
+ "click": function ($event) {
291
+ return _vm.switchView(viewOption.view);
292
+ }
293
+ }
294
+ });
295
+ }) : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)], 1)]), _vm._v(" "), _vm._t("header", null, null, {
296
+ items: _vm.items,
297
+ mode: _vm.proxyView
298
+ }), _vm._v(" "), _vm._t(_vm.proxyView, function () {
299
+ return [_c('OrCardCollectionView', {
300
+ attrs: {
301
+ "items": _vm.items,
302
+ "mode": _vm.proxyView
303
+ },
304
+ scopedSlots: _vm._u([{
305
+ key: "item",
306
+ fn: function (props) {
307
+ return [_vm._t("item", null, null, props)];
308
+ }
309
+ }], null, true)
310
+ })];
311
+ }, null, {
312
+ items: _vm.items
313
+ })], 2);
314
+ };
315
+ var __vue_staticRenderFns__ = [];
316
+
317
+ /* style */
318
+ const __vue_inject_styles__ = undefined;
319
+ /* scoped */
320
+ const __vue_scope_id__ = undefined;
321
+ /* module identifier */
322
+ const __vue_module_identifier__ = undefined;
323
+ /* functional template */
324
+ const __vue_is_functional_template__ = false;
325
+ /* style inject */
326
+
327
+ /* style inject SSR */
328
+
329
+ /* style inject shadow dom */
330
+
331
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
332
+ render: __vue_render__,
333
+ staticRenderFns: __vue_staticRenderFns__
334
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
335
+
336
+ export { CardCollectionView as C, __vue_component__ as _ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
- import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-3d4fc9da.js';
2
+ import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-357a5756.js';
3
3
  import { _ as __vue_component__$1 } from './OrOverlay-18ba2dc6.js';
4
4
  import { _ as __vue_component__$3 } from './OrInput-2f16a7ac.js';
5
5
  import { useMagicKeys, whenever } from '@vueuse/core';
@@ -82,11 +82,11 @@ var script = defineComponent({
82
82
  default: []
83
83
  },
84
84
  modelValue: {
85
- type: [String, Number, Array],
85
+ type: [String, Array],
86
86
  default: undefined
87
87
  },
88
88
  value: {
89
- type: [String, Number, Array],
89
+ type: [String, Array],
90
90
  default: undefined
91
91
  },
92
92
  multiple: {
@@ -347,7 +347,7 @@ var __vue_render__ = function () {
347
347
  return _vm.$emit('blur', $event);
348
348
  }
349
349
  }
350
- }, [_vm.proxyModelValue !== undefined ? [_vm.multiple ? [_vm._t("valueTemplate", function () {
350
+ }, [_vm.proxyModelValue && _vm.proxyModelValue.length > 0 ? [_vm.multiple ? [_vm._t("valueTemplate", function () {
351
351
  return _vm._l(_vm.selection, function (option) {
352
352
  return _c('OrTag', {
353
353
  key: option.value,
@@ -52,7 +52,6 @@ export * from './or-notification-v3';
52
52
  export * from './or-overflow-menu';
53
53
  export * from './or-overlay';
54
54
  export * from './or-overlay-v3';
55
- export * from './or-pagination-v3';
56
55
  export * from './or-popover-v3';
57
56
  export * from './or-progress';
58
57
  export * from './or-progress-v3';
@@ -5,10 +5,10 @@ export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonVi
5
5
  export { _ as OrButtonV2 } from '../OrButton-c4f9955b.js';
6
6
  export { _ as OrIconButton } from '../OrIconButton-014e86a7.js';
7
7
  export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE } from '../OrIconButton.vue_rollup-plugin-vue_script-9fb7b7ab.js';
8
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from '../OrButton-3d4fc9da.js';
8
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from '../OrButton-357a5756.js';
9
9
  export { _ as OrCard } from '../OrCard-b7268256.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-f6b07557.js';
11
- export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-4f001551.js';
11
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-e7a4ead6.js';
12
12
  export { _ as OrCardV3 } from '../OrCard-de799db0.js';
13
13
  export { a as OrCarousel, _ as OrCarouselItem } from '../OrCarouselItem-4e2cf3d8.js';
14
14
  export { _ as OrCheckbox } from '../OrCheckbox-915f1f0a.js';
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-41dd5f9b.js';
19
19
  export { _ as OrCollapse } from '../OrCollapse-4d892ca3.js';
20
20
  export { _ 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-75abefdd.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-d7112dd3.js';
22
- export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-ba3f8c45.js';
22
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-b0b2e43c.js';
23
23
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-349df9b2.js';
24
24
  export { _ as OrError } from '../OrError-081130bb.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-782dd714.js';
@@ -58,7 +58,6 @@ export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotificati
58
58
  export { _ as OrOverflowMenu } from '../OrOverflowMenu-10a4166a.js';
59
59
  export { _ as OrOverlay } from '../OrOverlay-3b52865d.js';
60
60
  export { _ as OrOverlayV3 } from '../OrOverlay-18ba2dc6.js';
61
- export { _ as OrPaginationV3 } from '../OrPagination-a56eb93b.js';
62
61
  export { _ as OrProgress, O as OrProgressColors, a as OrProgressTypes } from '../OrProgress-4ee24824.js';
63
62
  export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-c27c8946.js';
64
63
  export { _ as OrRadio } from '../OrRadio-e4198532.js';
@@ -67,7 +66,7 @@ export { _ as OrRadioV3 } from '../OrRadio-848ce55d.js';
67
66
  export { _ as OrSearchV3 } from '../OrSearch-ddb7c1fe.js';
68
67
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-e8dce8f9.js';
69
68
  export { _ as OrSelect } from '../OrSelect-dae2b069.js';
70
- export { _ as OrSelectV3 } from '../OrSelect-ca2510cd.js';
69
+ export { _ as OrSelectV3 } from '../OrSelect-ac382aa6.js';
71
70
  export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-7d6125bb.js';
72
71
  export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-fabc7bc9.js';
73
72
  export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-cc94bdc9.js';
@@ -16,10 +16,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
16
16
  type: PropType<ButtonColor>;
17
17
  default: ButtonColor;
18
18
  };
19
- activated: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
19
  disabled: {
24
20
  type: BooleanConstructor;
25
21
  default: boolean;
@@ -45,10 +41,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
45
41
  type: PropType<ButtonColor>;
46
42
  default: ButtonColor;
47
43
  };
48
- activated: {
49
- type: BooleanConstructor;
50
- default: boolean;
51
- };
52
44
  disabled: {
53
45
  type: BooleanConstructor;
54
46
  default: boolean;
@@ -62,7 +54,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
62
54
  default: string;
63
55
  };
64
56
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
65
- activated: boolean;
66
57
  type: ButtonType;
67
58
  variant: ButtonVariant;
68
59
  color: ButtonColor;
@@ -75,7 +66,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
75
66
  root: import("@vue/composition-api").Ref<HTMLButtonElement | undefined>;
76
67
  rootStyles: import("@vue/composition-api").ComputedRef<(string | false | undefined)[]>;
77
68
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
78
- activated: boolean;
79
69
  type: ButtonType;
80
70
  variant: ButtonVariant;
81
71
  color: ButtonColor;
@@ -85,7 +75,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
85
75
  } & {} & {
86
76
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
87
77
  }, {
88
- activated: boolean;
89
78
  type: ButtonType;
90
79
  variant: ButtonVariant;
91
80
  color: ButtonColor;
@@ -1,4 +1,4 @@
1
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from '../../OrButton-3d4fc9da.js';
1
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from '../../OrButton-357a5756.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -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,6 @@ 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>;