@onereach/ui-components 2.69.1-beta.2095.0 → 2.69.1-beta.2099.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 (151) 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-953657a7.js +347 -0
  4. package/dist/bundled/v2/{OrConfirm-e1ca1422.js → OrConfirm-18c534df.js} +1 -1
  5. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-a11b3621.js} +9 -3
  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 +5 -0
  13. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +65 -39
  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/OrSearch.vue.d.ts +13 -0
  21. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  22. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  23. package/dist/bundled/v2/components/or-select-v3/index.d.ts +0 -1
  24. package/dist/bundled/v2/components/or-select-v3/index.js +1 -1
  25. package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
  26. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  27. package/dist/bundled/v2/index.js +8 -9
  28. package/dist/bundled/v3/{OrButton-9640286b.js → OrButton-8ab33d9d.js} +2 -3
  29. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-06d8ead1.js → OrButton.vue_vue_type_script_lang-3718b300.js} +1 -13
  30. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-4debae8a.js +229 -0
  31. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-f1b81f00.js → OrConfirm.vue_vue_type_script_lang-85472b12.js} +2 -2
  32. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-0ae8a6dd.js} +8 -2
  33. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-d0626539.js → OrSelect.vue_vue_type_script_lang-dfadd12f.js} +2 -2
  34. package/dist/bundled/v3/components/index.d.ts +0 -1
  35. package/dist/bundled/v3/components/index.js +10 -11
  36. package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
  37. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  38. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  39. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +65 -39
  40. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  41. package/dist/bundled/v3/components/or-card-collection-v3/constatnts.d.ts +4 -0
  42. package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -4
  43. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
  44. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
  45. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  46. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  47. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  48. package/dist/bundled/v3/components/or-select-v3/index.d.ts +0 -1
  49. package/dist/bundled/v3/components/or-select-v3/index.js +1 -1
  50. package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
  51. package/dist/bundled/v3/index.js +300 -351
  52. package/dist/esm/v2/{OrButton-3d4fc9da.js → OrButton-357a5756.js} +1 -14
  53. package/dist/esm/v2/OrCardCollection-55e282a7.js +347 -0
  54. package/dist/esm/v2/{OrConfirm-ba3f8c45.js → OrConfirm-b0b2e43c.js} +1 -1
  55. package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-62d91301.js} +7 -1
  56. package/dist/esm/v2/{OrSelect-ca2510cd.js → OrSelect-ac382aa6.js} +3 -3
  57. package/dist/esm/v2/components/index.d.ts +0 -1
  58. package/dist/esm/v2/components/index.js +5 -6
  59. package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
  60. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  61. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  62. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +65 -39
  63. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  64. package/dist/esm/v2/components/or-card-collection-v3/constatnts.d.ts +4 -0
  65. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
  66. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
  67. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  68. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  69. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  70. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  71. package/dist/esm/v2/components/or-select-v3/index.d.ts +0 -1
  72. package/dist/esm/v2/components/or-select-v3/index.js +1 -1
  73. package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
  74. package/dist/esm/v2/index.js +5 -6
  75. package/dist/esm/v3/{OrButton-970ae320.js → OrButton-f4b9ee51.js} +2 -15
  76. package/dist/esm/v3/OrCardCollection-0c6da4b8.js +290 -0
  77. package/dist/esm/v3/{OrConfirm-7cb2f36b.js → OrConfirm-906427ef.js} +1 -1
  78. package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-aafb93b4.js} +7 -1
  79. package/dist/esm/v3/{OrSelect-bff22c7f.js → OrSelect-fee9c099.js} +3 -3
  80. package/dist/esm/v3/components/index.d.ts +0 -1
  81. package/dist/esm/v3/components/index.js +5 -6
  82. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
  83. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  84. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  85. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +65 -39
  86. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  87. package/dist/esm/v3/components/or-card-collection-v3/constatnts.d.ts +4 -0
  88. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -4
  89. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
  90. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  91. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  92. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  93. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  94. package/dist/esm/v3/components/or-select-v3/index.d.ts +0 -1
  95. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  96. package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
  97. package/dist/esm/v3/index.js +5 -6
  98. package/package.json +1 -1
  99. package/src/components/index.ts +0 -1
  100. package/src/components/or-button-v3/OrButton.stories3.ts +0 -4
  101. package/src/components/or-button-v3/OrButton.vue +0 -6
  102. package/src/components/or-button-v3/styles.ts +1 -15
  103. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +229 -28
  104. package/src/components/or-card-collection-v3/OrCardCollection.vue +119 -76
  105. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
  106. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
  107. package/src/components/or-card-collection-v3/constatnts.ts +12 -0
  108. package/src/components/or-card-collection-v3/styles.ts +1 -1
  109. package/src/components/or-card-collection-v3/types.ts +9 -3
  110. package/src/components/or-search-v3/OrSearch.vue +7 -1
  111. package/src/components/or-select-v3/OrSelect.vue +3 -3
  112. package/src/components/or-select-v3/index.ts +0 -1
  113. package/src/components/or-select-v3/types.ts +1 -1
  114. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
  115. package/dist/bundled/v2/OrPagination-354e9abd.js +0 -296
  116. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  117. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  118. package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +0 -2
  119. package/dist/bundled/v2/components/or-pagination-v3/index.js +0 -20
  120. package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +0 -3
  121. package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +0 -4
  122. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +0 -164
  123. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-ff22b11c.js +0 -180
  124. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  125. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  126. package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +0 -2
  127. package/dist/bundled/v3/components/or-pagination-v3/index.js +0 -22
  128. package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +0 -3
  129. package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +0 -4
  130. package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
  131. package/dist/esm/v2/OrPagination-a56eb93b.js +0 -296
  132. package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  133. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  134. package/dist/esm/v2/components/or-pagination-v3/index.d.ts +0 -2
  135. package/dist/esm/v2/components/or-pagination-v3/index.js +0 -18
  136. package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +0 -3
  137. package/dist/esm/v2/components/or-pagination-v3/types.d.ts +0 -4
  138. package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
  139. package/dist/esm/v3/OrPagination-d351a13b.js +0 -257
  140. package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  141. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  142. package/dist/esm/v3/components/or-pagination-v3/index.d.ts +0 -2
  143. package/dist/esm/v3/components/or-pagination-v3/index.js +0 -17
  144. package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +0 -3
  145. package/dist/esm/v3/components/or-pagination-v3/types.d.ts +0 -4
  146. package/src/components/or-pagination-v3/OrPagination.docs.mdx +0 -7
  147. package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -87
  148. package/src/components/or-pagination-v3/OrPagination.vue +0 -260
  149. package/src/components/or-pagination-v3/index.ts +0 -2
  150. package/src/components/or-pagination-v3/styles.ts +0 -30
  151. 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,347 @@
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-62d91301.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: ''
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
+ model: {
279
+ value: _vm.proxySearch,
280
+ callback: function ($$v) {
281
+ _vm.proxySearch = $$v;
282
+ },
283
+ expression: "proxySearch"
284
+ }
285
+ }), _vm._v(" "), _c('div', {
286
+ staticClass: "layout-row gap-sm"
287
+ }, [_vm.viewModes.length > 1 ? _vm._l(_vm.viewModes, function (viewOption) {
288
+ return _c('OrIconButton', {
289
+ key: viewOption.view,
290
+ attrs: {
291
+ "icon": {
292
+ icon: viewOption.icon,
293
+ variant: viewOption.view === _vm.proxyView ? 'filled' : 'outlined'
294
+ }
295
+ },
296
+ on: {
297
+ "click": function ($event) {
298
+ return _vm.switchView(viewOption.view);
299
+ }
300
+ }
301
+ });
302
+ }) : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)], 1)]), _vm._v(" "), _vm._t("header", null, null, {
303
+ items: _vm.items,
304
+ mode: _vm.proxyView
305
+ }), _vm._v(" "), _vm.items.length ? _vm._t(_vm.proxyView, function () {
306
+ return [_c('OrCardCollectionView', {
307
+ attrs: {
308
+ "items": _vm.items,
309
+ "mode": _vm.proxyView
310
+ },
311
+ scopedSlots: _vm._u([{
312
+ key: "item",
313
+ fn: function (props) {
314
+ return [_vm._t("item", null, null, props)];
315
+ }
316
+ }], null, true)
317
+ })];
318
+ }, null, {
319
+ items: _vm.items
320
+ }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 ? _vm._t("noSearchResults", function () {
321
+ return [_vm._v("\n No results\n ")];
322
+ }, null, {
323
+ search: _vm.proxySearch
324
+ }) : _vm._e()], 2);
325
+ };
326
+ var __vue_staticRenderFns__ = [];
327
+
328
+ /* style */
329
+ const __vue_inject_styles__ = undefined;
330
+ /* scoped */
331
+ const __vue_scope_id__ = undefined;
332
+ /* module identifier */
333
+ const __vue_module_identifier__ = undefined;
334
+ /* functional template */
335
+ const __vue_is_functional_template__ = false;
336
+ /* style inject */
337
+
338
+ /* style inject SSR */
339
+
340
+ /* style inject shadow dom */
341
+
342
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
343
+ render: __vue_render__,
344
+ staticRenderFns: __vue_staticRenderFns__
345
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
346
+
347
+ 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';
@@ -12,6 +12,11 @@ var script = defineComponent({
12
12
  },
13
13
  inheritAttrs: false,
14
14
  props: {
15
+ modelValue: {
16
+ type: String,
17
+ default: '',
18
+ required: false
19
+ },
15
20
  size: {
16
21
  type: String,
17
22
  default: InputBoxSize.M
@@ -36,13 +41,14 @@ var script = defineComponent({
36
41
  emits: ['search', 'input', 'keydown', 'keyup', 'focus', 'blur', 'clear'],
37
42
  expose: ['root', 'focus', 'clear'],
38
43
  setup(props, context) {
44
+ var _a;
39
45
  // Refs
40
46
  const root = ref();
41
47
  // Styles
42
48
  const classAttribute = useClassAttribute();
43
49
  const rootStyles = computed(() => ['or-search', classAttribute.value]);
44
50
  // State
45
- const localModelValue = ref('');
51
+ const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
46
52
  // Events
47
53
  debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
48
54
  debounce: props.debounce
@@ -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-55e282a7.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,16 +58,15 @@ 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';
65
64
  export { _ as OrRadioGroup } from '../OrRadioGroup-d9d32cba.js';
66
65
  export { _ as OrRadioV3 } from '../OrRadio-848ce55d.js';
67
- export { _ as OrSearchV3 } from '../OrSearch-ddb7c1fe.js';
66
+ export { _ as OrSearchV3 } from '../OrSearch-62d91301.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,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>;