@onereach/ui-components 2.63.0 → 2.63.1-beta.1936.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 (238) hide show
  1. package/dist/v2/OrCardCollection-5d5046f1.js +227 -0
  2. package/dist/v2/{OrConfirm-24e2a1a2.js → OrConfirm-edc537b3.js} +1 -1
  3. package/dist/v2/{OrInlineInput-f00cba5e.js → OrInlineInput-da65c72a.js} +5 -5
  4. package/dist/v2/{OrInlineTextarea-75de33d0.js → OrInlineTextarea-da66759a.js} +5 -5
  5. package/dist/v2/{OrInput-24028f23.js → OrInput-655bed71.js} +5 -5
  6. package/dist/v2/{OrSearch-978a3a6e.js → OrSearch-287a08a9.js} +1 -1
  7. package/dist/v2/{OrSelect-c6d0a69e.js → OrSelect-1a353817.js} +3 -3
  8. package/dist/v2/OrSortHeader-a6004b24.js +133 -0
  9. package/dist/v2/{OrTextarea-8773d494.js → OrTextarea-cc70afc9.js} +5 -5
  10. package/dist/v2/components/index.d.ts +2 -0
  11. package/dist/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +17 -0
  12. package/dist/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +98 -0
  13. package/dist/v2/components/or-card-collection-v3/index.d.ts +3 -0
  14. package/dist/v2/components/or-card-collection-v3/props.d.ts +4 -0
  15. package/dist/v2/components/or-card-collection-v3/styles.d.ts +6 -0
  16. package/dist/v2/components/or-card-collection-v3/types.d.ts +7 -0
  17. package/dist/v2/components/or-sort-header-v3/OrSortHeader.stories3.d.ts +12 -0
  18. package/dist/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +57 -0
  19. package/dist/v2/components/or-sort-header-v3/index.d.ts +2 -0
  20. package/dist/v2/components/or-sort-header-v3/styles.d.ts +1 -0
  21. package/dist/v2/components/or-sort-header-v3/types.d.ts +4 -0
  22. package/dist/v2/index.js +9 -7
  23. package/dist/v2/index11.js +20 -1
  24. package/dist/v2/index12.js +3 -12
  25. package/dist/v2/index13.js +3 -2
  26. package/dist/v2/index14.js +11 -5
  27. package/dist/v2/index15.js +5 -14
  28. package/dist/v2/index16.js +4 -19
  29. package/dist/v2/index17.js +28 -4
  30. package/dist/v2/index18.js +3 -7
  31. package/dist/v2/index19.js +5 -23
  32. package/dist/v2/index2.js +9 -7
  33. package/dist/v2/index20.js +25 -21
  34. package/dist/v2/index21.js +21 -18
  35. package/dist/v2/index22.js +20 -2
  36. package/dist/v2/index23.js +2 -4
  37. package/dist/v2/index24.js +2 -1
  38. package/dist/v2/index25.js +1 -2
  39. package/dist/v2/index26.js +2 -2
  40. package/dist/v2/index27.js +4 -7
  41. package/dist/v2/index28.js +6 -2
  42. package/dist/v2/index29.js +3 -3
  43. package/dist/v2/index30.js +3 -10
  44. package/dist/v2/index31.js +9 -12
  45. package/dist/v2/index32.js +11 -1
  46. package/dist/v2/index33.js +1 -1
  47. package/dist/v2/index34.js +1 -16
  48. package/dist/v2/index35.js +17 -17
  49. package/dist/v2/index36.js +17 -17
  50. package/dist/v2/index37.js +16 -1
  51. package/dist/v2/index38.js +1 -17
  52. package/dist/v2/index39.js +18 -22
  53. package/dist/v2/index40.js +22 -2
  54. package/dist/v2/index41.js +3 -3
  55. package/dist/v2/index42.js +1 -1
  56. package/dist/v2/index43.js +3 -20
  57. package/dist/v2/index44.js +1 -7
  58. package/dist/v2/index45.js +24 -1
  59. package/dist/v2/index46.js +3 -3
  60. package/dist/v2/index47.js +1 -2
  61. package/dist/v2/index48.js +2 -9
  62. package/dist/v2/index49.js +10 -17
  63. package/dist/v2/index50.js +17 -13
  64. package/dist/v2/index51.js +13 -14
  65. package/dist/v2/index52.js +14 -13
  66. package/dist/v2/index53.js +12 -15
  67. package/dist/v2/index54.js +16 -1
  68. package/dist/v2/index55.js +2 -6
  69. package/dist/v2/index56.js +1 -5
  70. package/dist/v2/index57.js +10 -3
  71. package/dist/v2/index58.js +2 -4
  72. package/dist/v2/index59.js +5 -3
  73. package/dist/v2/index60.js +2 -1
  74. package/dist/v2/index61.js +2 -5
  75. package/dist/v2/index62.js +3 -18
  76. package/dist/v2/index63.js +19 -2
  77. package/dist/v2/index64.js +2 -16
  78. package/dist/v2/index65.js +15 -24
  79. package/dist/v2/index66.js +26 -4
  80. package/dist/v2/index67.js +2 -1
  81. package/dist/v2/index68.js +3 -4
  82. package/dist/v2/index69.js +3 -4
  83. package/dist/v2/index70.js +3 -10
  84. package/dist/v2/index71.js +3 -6
  85. package/dist/v2/index72.js +4 -4
  86. package/dist/v2/index73.js +15 -6
  87. package/dist/v2/index74.js +2 -2
  88. package/dist/v2/index75.js +6 -3
  89. package/dist/v2/index76.js +4 -3
  90. package/dist/v2/index77.js +1 -2
  91. package/dist/v2/index78.js +2 -14
  92. package/dist/v2/index79.js +2 -10
  93. package/dist/v2/index80.js +5 -4
  94. package/dist/v2/index81.js +12 -2
  95. package/dist/v2/index82.js +14 -2
  96. package/dist/v2/index83.js +2 -3
  97. package/dist/v2/index84.js +2 -8
  98. package/dist/v2/index85.js +2 -20
  99. package/dist/v2/index86.js +8 -18
  100. package/dist/v2/index87.js +21 -1
  101. package/dist/v2/index88.js +17 -16
  102. package/dist/v2/index89.js +1 -1
  103. package/dist/v2/index90.js +17 -9
  104. package/dist/v2/index91.js +2 -12
  105. package/dist/v2/index92.js +10 -1
  106. package/dist/v2/index93.js +12 -6
  107. package/dist/v2/index94.js +1 -2
  108. package/dist/v2/index95.js +7 -0
  109. package/dist/v2/index96.js +3 -0
  110. package/dist/v3/OrCardCollection-c6f3ac23.js +198 -0
  111. package/dist/v3/{OrConfirm-371630a4.js → OrConfirm-0bafcc7b.js} +1 -1
  112. package/dist/v3/{OrInlineInput-bac4abdd.js → OrInlineInput-d9bbc08c.js} +5 -3
  113. package/dist/v3/{OrInlineTextarea-d1ec1bba.js → OrInlineTextarea-d5a97ed9.js} +5 -3
  114. package/dist/v3/{OrInput-256d2530.js → OrInput-db4813b4.js} +5 -3
  115. package/dist/v3/{OrSearch-375eab55.js → OrSearch-0c29f499.js} +1 -1
  116. package/dist/v3/{OrSelect-52cfb10d.js → OrSelect-323a87b4.js} +6 -4
  117. package/dist/v3/OrSortHeader-5eba50cd.js +104 -0
  118. package/dist/v3/{OrTextarea-09aa33dc.js → OrTextarea-98895b2a.js} +6 -4
  119. package/dist/v3/components/index.d.ts +2 -0
  120. package/dist/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +17 -0
  121. package/dist/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +98 -0
  122. package/dist/v3/components/or-card-collection-v3/index.d.ts +3 -0
  123. package/dist/v3/components/or-card-collection-v3/props.d.ts +4 -0
  124. package/dist/v3/components/or-card-collection-v3/styles.d.ts +6 -0
  125. package/dist/v3/components/or-card-collection-v3/types.d.ts +7 -0
  126. package/dist/v3/components/or-sort-header-v3/OrSortHeader.stories3.d.ts +12 -0
  127. package/dist/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +57 -0
  128. package/dist/v3/components/or-sort-header-v3/index.d.ts +2 -0
  129. package/dist/v3/components/or-sort-header-v3/styles.d.ts +1 -0
  130. package/dist/v3/components/or-sort-header-v3/types.d.ts +4 -0
  131. package/dist/v3/index.js +9 -7
  132. package/dist/v3/index11.js +19 -1
  133. package/dist/v3/index12.js +3 -11
  134. package/dist/v3/index13.js +3 -2
  135. package/dist/v3/index14.js +9 -4
  136. package/dist/v3/index15.js +4 -11
  137. package/dist/v3/index16.js +3 -17
  138. package/dist/v3/index17.js +25 -4
  139. package/dist/v3/index18.js +3 -6
  140. package/dist/v3/index19.js +5 -20
  141. package/dist/v3/index2.js +9 -7
  142. package/dist/v3/index20.js +21 -20
  143. package/dist/v3/index21.js +20 -15
  144. package/dist/v3/index22.js +16 -1
  145. package/dist/v3/index23.js +2 -4
  146. package/dist/v3/index24.js +2 -1
  147. package/dist/v3/index25.js +1 -2
  148. package/dist/v3/index26.js +2 -2
  149. package/dist/v3/index27.js +4 -6
  150. package/dist/v3/index28.js +5 -2
  151. package/dist/v3/index29.js +3 -3
  152. package/dist/v3/index30.js +3 -9
  153. package/dist/v3/index31.js +8 -11
  154. package/dist/v3/index32.js +10 -1
  155. package/dist/v3/index33.js +1 -1
  156. package/dist/v3/index34.js +1 -15
  157. package/dist/v3/index35.js +16 -14
  158. package/dist/v3/index36.js +14 -16
  159. package/dist/v3/index37.js +16 -2
  160. package/dist/v3/index38.js +2 -17
  161. package/dist/v3/index39.js +17 -17
  162. package/dist/v3/index40.js +16 -1
  163. package/dist/v3/index41.js +3 -3
  164. package/dist/v3/index42.js +1 -1
  165. package/dist/v3/index43.js +3 -16
  166. package/dist/v3/index44.js +1 -7
  167. package/dist/v3/index45.js +20 -1
  168. package/dist/v3/index46.js +3 -3
  169. package/dist/v3/index47.js +1 -2
  170. package/dist/v3/index48.js +2 -8
  171. package/dist/v3/index49.js +9 -14
  172. package/dist/v3/index50.js +14 -12
  173. package/dist/v3/index51.js +12 -11
  174. package/dist/v3/index52.js +11 -12
  175. package/dist/v3/index53.js +11 -11
  176. package/dist/v3/index54.js +12 -1
  177. package/dist/v3/index55.js +2 -5
  178. package/dist/v3/index56.js +1 -5
  179. package/dist/v3/index57.js +9 -3
  180. package/dist/v3/index58.js +2 -4
  181. package/dist/v3/index59.js +5 -3
  182. package/dist/v3/index60.js +2 -1
  183. package/dist/v3/index61.js +1 -4
  184. package/dist/v3/index62.js +3 -17
  185. package/dist/v3/index63.js +18 -2
  186. package/dist/v3/index64.js +2 -15
  187. package/dist/v3/index65.js +13 -22
  188. package/dist/v3/index66.js +24 -3
  189. package/dist/v3/index67.js +2 -1
  190. package/dist/v3/index68.js +3 -4
  191. package/dist/v3/index69.js +3 -4
  192. package/dist/v3/index70.js +3 -9
  193. package/dist/v3/index71.js +3 -4
  194. package/dist/v3/index72.js +4 -4
  195. package/dist/v3/index73.js +11 -5
  196. package/dist/v3/index74.js +2 -2
  197. package/dist/v3/index75.js +5 -2
  198. package/dist/v3/index76.js +4 -3
  199. package/dist/v3/index77.js +1 -2
  200. package/dist/v3/index78.js +2 -13
  201. package/dist/v3/index79.js +2 -9
  202. package/dist/v3/index80.js +5 -4
  203. package/dist/v3/index81.js +11 -1
  204. package/dist/v3/index82.js +13 -1
  205. package/dist/v3/index83.js +1 -3
  206. package/dist/v3/index84.js +1 -8
  207. package/dist/v3/index85.js +2 -17
  208. package/dist/v3/index86.js +7 -14
  209. package/dist/v3/index87.js +18 -1
  210. package/dist/v3/index88.js +14 -15
  211. package/dist/v3/index89.js +1 -1
  212. package/dist/v3/index90.js +15 -6
  213. package/dist/v3/index91.js +2 -11
  214. package/dist/v3/index92.js +8 -1
  215. package/dist/v3/index93.js +11 -6
  216. package/dist/v3/index94.js +1 -2
  217. package/dist/v3/index95.js +7 -0
  218. package/dist/v3/index96.js +3 -0
  219. package/package.json +2 -3
  220. package/src/components/index.ts +2 -0
  221. package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +3 -0
  222. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +162 -0
  223. package/src/components/or-card-collection-v3/OrCardCollection.vue +210 -0
  224. package/src/components/or-card-collection-v3/index.ts +3 -0
  225. package/src/components/or-card-collection-v3/props.ts +4 -0
  226. package/src/components/or-card-collection-v3/styles.ts +53 -0
  227. package/src/components/or-card-collection-v3/types.ts +8 -0
  228. package/src/components/or-inline-input-v3/OrInlineInput.vue +12 -10
  229. package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +12 -10
  230. package/src/components/or-input-v3/OrInput.vue +12 -10
  231. package/src/components/or-select-v3/OrSelect.vue +5 -3
  232. package/src/components/or-sort-header-v3/OrSortHeader.docs.mdx +3 -0
  233. package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +132 -0
  234. package/src/components/or-sort-header-v3/OrSortHeader.vue +111 -0
  235. package/src/components/or-sort-header-v3/index.ts +2 -0
  236. package/src/components/or-sort-header-v3/styles.ts +23 -0
  237. package/src/components/or-sort-header-v3/types.ts +4 -0
  238. package/src/components/or-textarea-v3/OrTextarea.vue +12 -10
@@ -0,0 +1,227 @@
1
+ import { defineComponent, ref, computed, watch } from 'vue-demi';
2
+ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
+ import '@vueuse/core';
4
+ import { _ as __vue_component__$1 } from './OrCard-1d904e72.js';
5
+ import { _ as __vue_component__$2 } from './OrIconButton-2088a37f.js';
6
+ import { _ as __vue_component__$3 } from './OrInput-655bed71.js';
7
+ import { _ as __vue_component__$4 } from './OrSortHeader-a6004b24.js';
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
+ 'flex flex-col',
19
+ // Spacing
20
+ 'gap-md'];
21
+ const CardCollectionToolbar = [
22
+ // Layout
23
+ 'flex', 'justify-between', 'items-center',
24
+ // Typography
25
+ 'typography-body-2-regular',
26
+ // Theme
27
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
28
+ const CardCollectionToolbarPanel = [
29
+ // Layout
30
+ 'flex', 'justify-normal', 'items-center',
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: __vue_component__$1,
49
+ OrIconButton: __vue_component__$2,
50
+ OrInput: __vue_component__$3,
51
+ OrSortHeader: __vue_component__$4
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
+
227
+ export { CardCollectionView as C, __vue_component__ as _ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-eb895669.js';
3
3
  import { _ as __vue_component__$1 } from './OrOverlay-4838a9b0.js';
4
- import { _ as __vue_component__$3 } from './OrInput-24028f23.js';
4
+ import { _ as __vue_component__$3 } from './OrInput-655bed71.js';
5
5
  import { useMagicKeys, whenever } from '@vueuse/core';
6
6
  import { logicAnd } from '@vueuse/math';
7
7
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -161,7 +161,7 @@ var script = defineComponent({
161
161
  }
162
162
  });
163
163
 
164
- var css_248z = "input[data-v-a3435312]{min-width:0;background:0 0;outline:0}input[type=number][data-v-a3435312]::-webkit-inner-spin-button{display:none}input[type=search][data-v-a3435312]::-webkit-search-cancel-button{display:none}";
164
+ var css_248z = "input[data-v-28f73e22]{min-width:0;background:0 0;outline:0}input[type=number][data-v-28f73e22]::-webkit-inner-spin-button{display:none}input[type=search][data-v-28f73e22]::-webkit-search-cancel-button{display:none}";
165
165
  styleInject(css_248z);
166
166
 
167
167
  /* script */
@@ -311,15 +311,15 @@ var __vue_render__ = function () {
311
311
  return _vm.reset.apply(null, arguments);
312
312
  }
313
313
  }
314
- })], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
314
+ })], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
315
315
  scopedSlots: _vm._u([_vm.maxLength ? {
316
316
  key: "addon",
317
317
  fn: function () {
318
- return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
318
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
319
319
  },
320
320
  proxy: true
321
321
  } : null], null, true)
322
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : [_c('OrError', {
322
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
323
323
  scopedSlots: _vm._u([_vm.maxLength ? {
324
324
  key: "addon",
325
325
  fn: function () {
@@ -334,7 +334,7 @@ var __vue_staticRenderFns__ = [];
334
334
  /* style */
335
335
  const __vue_inject_styles__ = undefined;
336
336
  /* scoped */
337
- const __vue_scope_id__ = "data-v-a3435312";
337
+ const __vue_scope_id__ = "data-v-28f73e22";
338
338
  /* module identifier */
339
339
  const __vue_module_identifier__ = undefined;
340
340
  /* functional template */
@@ -147,7 +147,7 @@ var script = defineComponent({
147
147
  }
148
148
  });
149
149
 
150
- var css_248z = "textarea[data-v-314d21b0]{min-width:0;background:0 0;outline:0}";
150
+ var css_248z = "textarea[data-v-23c697a5]{min-width:0;background:0 0;outline:0}";
151
151
  styleInject(css_248z);
152
152
 
153
153
  /* script */
@@ -223,15 +223,15 @@ var __vue_render__ = function () {
223
223
  return _vm.reset.apply(null, arguments);
224
224
  }
225
225
  }
226
- })], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
226
+ })], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
227
227
  scopedSlots: _vm._u([_vm.maxLength ? {
228
228
  key: "addon",
229
229
  fn: function () {
230
- return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
230
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
231
231
  },
232
232
  proxy: true
233
233
  } : null], null, true)
234
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : [_c('OrError', {
234
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
235
235
  scopedSlots: _vm._u([_vm.maxLength ? {
236
236
  key: "addon",
237
237
  fn: function () {
@@ -246,7 +246,7 @@ var __vue_staticRenderFns__ = [];
246
246
  /* style */
247
247
  const __vue_inject_styles__ = undefined;
248
248
  /* scoped */
249
- const __vue_scope_id__ = "data-v-314d21b0";
249
+ const __vue_scope_id__ = "data-v-23c697a5";
250
250
  /* module identifier */
251
251
  const __vue_module_identifier__ = undefined;
252
252
  /* functional template */
@@ -143,7 +143,7 @@ var script = defineComponent({
143
143
  }
144
144
  });
145
145
 
146
- var css_248z = "input[data-v-61c8b450]{min-width:0;background:0 0;outline:0}input[type=number][data-v-61c8b450]::-webkit-inner-spin-button{display:none}input[type=search][data-v-61c8b450]::-webkit-search-cancel-button{display:none}";
146
+ var css_248z = "input[data-v-2b692b9f]{min-width:0;background:0 0;outline:0}input[type=number][data-v-2b692b9f]::-webkit-inner-spin-button{display:none}input[type=search][data-v-2b692b9f]::-webkit-search-cancel-button{display:none}";
147
147
  styleInject(css_248z);
148
148
 
149
149
  /* script */
@@ -336,18 +336,18 @@ var __vue_render__ = function () {
336
336
  "icon": 'search',
337
337
  "variant": 'outlined'
338
338
  }
339
- })]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
339
+ })]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
340
340
  attrs: {
341
341
  "disabled": _vm.disabled
342
342
  },
343
343
  scopedSlots: _vm._u([_vm.maxLength ? {
344
344
  key: "addon",
345
345
  fn: function () {
346
- return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
346
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
347
347
  },
348
348
  proxy: true
349
349
  } : null], null, true)
350
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : [_c('OrError', {
350
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
351
351
  attrs: {
352
352
  "disabled": _vm.disabled
353
353
  },
@@ -365,7 +365,7 @@ var __vue_staticRenderFns__ = [];
365
365
  /* style */
366
366
  const __vue_inject_styles__ = undefined;
367
367
  /* scoped */
368
- const __vue_scope_id__ = "data-v-61c8b450";
368
+ const __vue_scope_id__ = "data-v-2b692b9f";
369
369
  /* module identifier */
370
370
  const __vue_module_identifier__ = undefined;
371
371
  /* functional template */
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
- import { _ as __vue_component__$1 } from './OrInput-24028f23.js';
4
+ import { _ as __vue_component__$1 } from './OrInput-655bed71.js';
5
5
  import { a as InputBoxSize } from './OrInputBox-208dceac.js';
6
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
7
7
 
@@ -9,7 +9,7 @@ import { _ as __vue_component__$3 } from './OrExpansionPanel-ce82a6fd.js';
9
9
  import { _ as __vue_component__$4 } from './OrHint-44356417.js';
10
10
  import { _ as __vue_component__$5 } from './OrIcon-124f3bad.js';
11
11
  import { _ as __vue_component__$7, a as InputBoxSize } from './OrInputBox-208dceac.js';
12
- import { _ as __vue_component__$6 } from './OrInput-24028f23.js';
12
+ import { _ as __vue_component__$6 } from './OrInput-655bed71.js';
13
13
  import { _ as __vue_component__$8 } from './OrLabel-5670468e.js';
14
14
  import { _ as __vue_component__$9 } from './OrMenuItem-3a28db7b.js';
15
15
  import { _ as __vue_component__$a } from './OrPopover-9080fc00.js';
@@ -481,11 +481,11 @@ var __vue_render__ = function () {
481
481
  class: _vm.noSearchResultsStyles
482
482
  }, [_vm._t("noSearchResultsTemplate", function () {
483
483
  return [_vm._v("\n No results\n ")];
484
- })], 2)]], 2)], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
484
+ })], 2)]], 2)], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint ? [_c('OrHint', {
485
485
  attrs: {
486
486
  "disabled": _vm.disabled
487
487
  }
488
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : [_c('OrError', {
488
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()] : [_c('OrError', {
489
489
  attrs: {
490
490
  "disabled": _vm.disabled
491
491
  }
@@ -0,0 +1,133 @@
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
+ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
+ import '@vueuse/core';
4
+ import { _ as __vue_component__$1 } from './OrIcon-124f3bad.js';
5
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
+
7
+ const SortHeaderRoot = [
8
+ // Layout
9
+ 'inline-flex', 'justify-normal', 'items-center',
10
+ // Interactivity
11
+ 'interactivity-auto',
12
+ // Typography
13
+ 'typography-caption-regular',
14
+ // Typography (activated)
15
+ 'activated:typography-caption-semibold',
16
+ // Theme
17
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
18
+ // Theme (activated)
19
+ 'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark'];
20
+
21
+ var script = defineComponent({
22
+ name: 'OrSortHeader',
23
+ components: {
24
+ OrIcon: __vue_component__$1
25
+ },
26
+ inheritAttrs: false,
27
+ props: {
28
+ modelValue: {
29
+ type: Object,
30
+ default: undefined
31
+ },
32
+ value: {
33
+ type: Object,
34
+ default: undefined
35
+ },
36
+ inputValue: {
37
+ type: String,
38
+ required: true
39
+ }
40
+ },
41
+ emits: ['update:modelValue', 'input', 'focus', 'blur'],
42
+ expose: ['root'],
43
+ setup(props, context) {
44
+ // Refs
45
+ const root = ref();
46
+ // Styles
47
+ const classAttribute = useClassAttribute();
48
+ const rootStyles = computed(() => ['or-sort-header', ...SortHeaderRoot, classAttribute.value]);
49
+ // State
50
+ const proxyModelValue = computed({
51
+ get: () => {
52
+ var _a;
53
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
54
+ },
55
+
56
+ set: value => {
57
+ context.emit('input', value);
58
+ context.emit('update:modelValue', value);
59
+ }
60
+ });
61
+ const activated = computed(() => {
62
+ var _a;
63
+ return ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.column) === props.inputValue;
64
+ });
65
+ // Methods
66
+ function toggleDirection() {
67
+ var _a;
68
+ proxyModelValue.value = {
69
+ column: props.inputValue,
70
+ direction: ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.direction) === 'asc' ? 'desc' : 'asc'
71
+ };
72
+ }
73
+ return {
74
+ root,
75
+ rootStyles,
76
+ proxyModelValue,
77
+ activated,
78
+ toggleDirection
79
+ };
80
+ }
81
+ });
82
+
83
+ /* script */
84
+ const __vue_script__ = script;
85
+
86
+ /* template */
87
+ var __vue_render__ = function () {
88
+ var _vm = this;
89
+ var _h = _vm.$createElement;
90
+ var _c = _vm._self._c || _h;
91
+ return _c('div', _vm._b({
92
+ ref: "root",
93
+ class: _vm.rootStyles,
94
+ attrs: {
95
+ "activated": _vm.activated ? '' : null
96
+ },
97
+ on: {
98
+ "click": function ($event) {
99
+ $event.stopPropagation();
100
+ return _vm.toggleDirection();
101
+ }
102
+ }
103
+ }, 'div', _vm.$attrs, false), [_vm._t("default"), _vm._v(" "), _vm.activated ? [_c('OrIcon', {
104
+ class: {
105
+ 'rotate-180': _vm.proxyModelValue.direction === 'asc'
106
+ },
107
+ attrs: {
108
+ "icon": 'arrow_downward'
109
+ }
110
+ })] : _vm._e()], 2);
111
+ };
112
+ var __vue_staticRenderFns__ = [];
113
+
114
+ /* style */
115
+ const __vue_inject_styles__ = undefined;
116
+ /* scoped */
117
+ const __vue_scope_id__ = undefined;
118
+ /* module identifier */
119
+ const __vue_module_identifier__ = undefined;
120
+ /* functional template */
121
+ const __vue_is_functional_template__ = false;
122
+ /* style inject */
123
+
124
+ /* style inject SSR */
125
+
126
+ /* style inject shadow dom */
127
+
128
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
129
+ render: __vue_render__,
130
+ staticRenderFns: __vue_staticRenderFns__
131
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
132
+
133
+ export { __vue_component__ as _ };
@@ -113,7 +113,7 @@ var script = defineComponent({
113
113
  }
114
114
  });
115
115
 
116
- var css_248z = "textarea[data-v-65e7a0bc]{min-width:0;background:0 0;outline:0}";
116
+ var css_248z = "textarea[data-v-61af6ad5]{min-width:0;background:0 0;outline:0}";
117
117
  styleInject(css_248z);
118
118
 
119
119
  /* script */
@@ -184,18 +184,18 @@ var __vue_render__ = function () {
184
184
  _vm.proxyModelValue = $event.target.value;
185
185
  }
186
186
  }
187
- }, 'textarea', _vm.$attrs, false))]), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
187
+ }, 'textarea', _vm.$attrs, false))]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
188
188
  attrs: {
189
189
  "disabled": _vm.disabled
190
190
  },
191
191
  scopedSlots: _vm._u([_vm.maxLength ? {
192
192
  key: "addon",
193
193
  fn: function () {
194
- return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
194
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
195
195
  },
196
196
  proxy: true
197
197
  } : null], null, true)
198
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : [_c('OrError', {
198
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
199
199
  attrs: {
200
200
  "disabled": _vm.disabled
201
201
  },
@@ -213,7 +213,7 @@ var __vue_staticRenderFns__ = [];
213
213
  /* style */
214
214
  const __vue_inject_styles__ = undefined;
215
215
  /* scoped */
216
- const __vue_scope_id__ = "data-v-65e7a0bc";
216
+ const __vue_scope_id__ = "data-v-61af6ad5";
217
217
  /* module identifier */
218
218
  const __vue_module_identifier__ = undefined;
219
219
  /* functional template */
@@ -6,6 +6,7 @@ export * from './or-button-v2';
6
6
  export * from './or-button-v3';
7
7
  export * from './or-card';
8
8
  export * from './or-card-collection';
9
+ export * from './or-card-collection-v3';
9
10
  export * from './or-card-v3';
10
11
  export * from './or-carousel';
11
12
  export * from './or-checkbox';
@@ -66,6 +67,7 @@ export * from './or-sidebar-v3';
66
67
  export * from './or-skeleton';
67
68
  export * from './or-skeleton-v3';
68
69
  export * from './or-slider';
70
+ export * from './or-sort-header-v3';
69
71
  export * from './or-stepper';
70
72
  export * from './or-switch';
71
73
  export * from './or-switch-v3';
@@ -0,0 +1,17 @@
1
+ import { Meta, StoryFn } from '@storybook/vue3';
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, {
3
+ [x: string]: ((...args: any[]) => any) | null;
4
+ } | string[], {} & {}, {
5
+ [x: number]: string;
6
+ } | {}, true>)>;
7
+ export default _default;
8
+ export declare const Default: StoryFn<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, {
9
+ [x: string]: ((...args: any[]) => any) | null;
10
+ } | string[], {} & {}, {
11
+ [x: number]: string;
12
+ } | {}, true>)>;
13
+ export declare const WithSorting: StoryFn<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, {
14
+ [x: string]: ((...args: any[]) => any) | null;
15
+ } | string[], {} & {}, {
16
+ [x: number]: string;
17
+ } | {}, true>)>;