@onereach/ui-components 2.69.2-beta.2123.0 → 2.69.2-beta.2125.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 (91) hide show
  1. package/dist/bundled/v2/{OrButton-0e91a808.js → OrButton-4b99c680.js} +5 -1
  2. package/dist/bundled/v2/{OrCard-29116e1f.js → OrCard-58a1ba3e.js} +2 -2
  3. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +228 -0
  4. package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-cab6535b.js} +1 -1
  5. package/dist/bundled/v2/{OrSearch-a11b3621.js → OrSearch-9d402f56.js} +3 -9
  6. package/dist/bundled/v2/{OrSortHeader-9932d28f.js → OrSortHeader-396e6a7c.js} +2 -2
  7. package/dist/bundled/v2/components/index.js +6 -6
  8. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  9. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  10. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  11. package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -7
  12. package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +1 -5
  13. package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  14. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +3 -8
  15. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  16. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  17. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  18. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  19. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  20. package/dist/bundled/v2/index.js +7 -7
  21. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3718b300.js → OrButton.vue_vue_type_script_lang-b0dc31ca.js} +5 -1
  22. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +164 -0
  23. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-85472b12.js → OrConfirm.vue_vue_type_script_lang-49a3a9bd.js} +36 -6
  24. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0ae8a6dd.js → OrSearch.vue_vue_type_script_lang-ed78b21f.js} +2 -8
  25. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-919b2021.js} +36 -10
  26. package/dist/bundled/v3/components/index.js +8 -10
  27. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  28. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  29. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  30. package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -11
  31. package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +1 -5
  32. package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  33. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +3 -8
  34. package/dist/bundled/v3/components/or-confirm-v3/index.js +2 -3
  35. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  36. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  37. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  38. package/dist/bundled/v3/index.js +297 -328
  39. package/dist/esm/v2/{OrButton-357a5756.js → OrButton-357e1e2c.js} +5 -1
  40. package/dist/esm/v2/OrCardCollection-4f001551.js +227 -0
  41. package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-ec7aef0e.js} +1 -1
  42. package/dist/esm/v2/{OrSearch-62d91301.js → OrSearch-ddb7c1fe.js} +1 -7
  43. package/dist/esm/v2/components/index.js +4 -4
  44. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  45. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  46. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  47. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -7
  48. package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +1 -5
  49. package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  50. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +3 -8
  51. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  52. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  53. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  54. package/dist/esm/v2/index.js +4 -4
  55. package/dist/esm/v3/{OrButton-f4b9ee51.js → OrButton-bb6bf8a9.js} +5 -1
  56. package/dist/esm/v3/OrCardCollection-5a0febaf.js +198 -0
  57. package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-5d56cbd3.js} +1 -1
  58. package/dist/esm/v3/{OrSearch-aafb93b4.js → OrSearch-cdde55ce.js} +1 -7
  59. package/dist/esm/v3/components/index.js +4 -4
  60. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  61. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  62. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  63. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -7
  64. package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +1 -5
  65. package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  66. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +3 -8
  67. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  68. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  69. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  70. package/dist/esm/v3/index.js +4 -4
  71. package/package.json +1 -1
  72. package/src/components/or-button-v3/styles.ts +6 -0
  73. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +30 -230
  74. package/src/components/or-card-collection-v3/OrCardCollection.vue +77 -120
  75. package/src/components/or-card-collection-v3/props.ts +1 -14
  76. package/src/components/or-card-collection-v3/styles.ts +3 -3
  77. package/src/components/or-card-collection-v3/types.ts +3 -9
  78. package/src/components/or-menu-v3/OrMenu.stories3.ts +1 -1
  79. package/src/components/or-search-v3/OrSearch.vue +1 -7
  80. package/dist/bundled/v2/OrCardCollection-773ae0db.js +0 -346
  81. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  82. package/dist/bundled/v3/OrButton-8ab33d9d.js +0 -33
  83. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-b983bda7.js +0 -228
  84. package/dist/bundled/v3/OrMenu-f26e8e55.js +0 -29
  85. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  86. package/dist/esm/v2/OrCardCollection-61c86bfc.js +0 -346
  87. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  88. package/dist/esm/v3/OrCardCollection-fdc7848b.js +0 -289
  89. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  90. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +0 -41
  91. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +0 -42
@@ -28,6 +28,8 @@ const ButtonRoot = [
28
28
  'layout-inline-row justify-center',
29
29
  // Shape
30
30
  'rounded-md',
31
+ // Sizing
32
+ 'min-w-[96px]',
31
33
  // Interactivity
32
34
  'interactivity-auto',
33
35
  // Typography
@@ -46,7 +48,9 @@ const ButtonRootVariants = {
46
48
  'px-md md:px-md', 'py-sm+ md:py-sm', 'gap-sm+ md:gap-sm'],
47
49
  'link': [
48
50
  // Spacing
49
- 'gap-sm md:gap-xs']
51
+ 'gap-sm md:gap-xs',
52
+ // Sizing
53
+ 'min-w-[auto]']
50
54
  };
51
55
  const ButtonRootColors = {
52
56
  'primary-contained': [
@@ -0,0 +1,164 @@
1
+ import { openBlock, createElementBlock, mergeProps, renderSlot, resolveComponent, withModifiers, createBlock, normalizeClass, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
2
+ import { s as script$1 } from './OrCard.vue_vue_type_script_lang-165de137.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
5
+ import './OrInput-fa782fc1.js';
6
+ import { s as script$4 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
7
+ import { s as script$2 } from './OrSortHeader.vue_vue_type_script_lang-75115125.js';
8
+ import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
9
+
10
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
11
+ return openBlock(), createElementBlock("div", mergeProps({
12
+ ref: "root"
13
+ }, _ctx.$attrs, {
14
+ class: _ctx.rootStyles
15
+ }), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */);
16
+ }
17
+
18
+ script$1.render = render$1;
19
+ script$1.__file = "src/components/or-card-v3/OrCard.vue";
20
+
21
+ const _hoisted_1 = ["activated"];
22
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
23
+ const _component_OrIcon = resolveComponent("OrIcon");
24
+ return openBlock(), createElementBlock("div", mergeProps({
25
+ ref: "root"
26
+ }, _ctx.$attrs, {
27
+ class: _ctx.rootStyles,
28
+ activated: _ctx.activated ? '' : null,
29
+ onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.toggleDirection(), ["stop"]))
30
+ }), [renderSlot(_ctx.$slots, "default"), _ctx.activated ? (openBlock(), createBlock(_component_OrIcon, {
31
+ key: 0,
32
+ class: normalizeClass({
33
+ 'rotate-180': _ctx.proxyModelValue.direction === 'asc'
34
+ }),
35
+ icon: 'arrow_downward'
36
+ }, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
37
+ }
38
+
39
+ script$2.render = render;
40
+ script$2.__file = "src/components/or-sort-header-v3/OrSortHeader.vue";
41
+
42
+ var CardCollectionView;
43
+ (function (CardCollectionView) {
44
+ CardCollectionView["Grid"] = "grid";
45
+ CardCollectionView["List"] = "list";
46
+ })(CardCollectionView || (CardCollectionView = {}));
47
+
48
+ const CardCollectionRoot = [
49
+ // Layout
50
+ 'layout-column',
51
+ // Spacing
52
+ 'gap-md'];
53
+ const CardCollectionToolbar = [
54
+ // Layout
55
+ 'layout-row justify-between',
56
+ // Typography
57
+ 'typography-body-2-regular',
58
+ // Theme
59
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
60
+ const CardCollectionToolbarPanel = [
61
+ // Layout
62
+ 'layout-row',
63
+ // Spacing
64
+ 'gap-sm+'];
65
+ const CardCollectionContent = [
66
+ // Layout
67
+ 'grid',
68
+ // Spacing
69
+ 'gap-sm md:gap-md'];
70
+ const CardCollectionContentViews = {
71
+ 'grid': [
72
+ // Layout
73
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
74
+ 'list': []
75
+ };
76
+
77
+ var script = defineComponent({
78
+ name: 'OrCardCollection',
79
+ components: {
80
+ OrCard: script$1,
81
+ OrIconButton: script$3,
82
+ OrInput: script$4,
83
+ OrSortHeader: script$2
84
+ },
85
+ inheritAttrs: false,
86
+ props: {
87
+ items: {
88
+ type: Array,
89
+ default: []
90
+ },
91
+ view: {
92
+ type: String,
93
+ default: CardCollectionView.Grid
94
+ },
95
+ sort: {
96
+ type: Object,
97
+ default: undefined
98
+ },
99
+ sortHeaders: {
100
+ type: Array,
101
+ default: undefined
102
+ },
103
+ search: {
104
+ type: String,
105
+ default: undefined
106
+ }
107
+ },
108
+ emits: ['viewChange', 'sortChange', 'searchChange'],
109
+ expose: ['root'],
110
+ setup(props, context) {
111
+ // Refs
112
+ const root = ref();
113
+ // Styles
114
+ const classAttribute = useClassAttribute();
115
+ const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
116
+ const toolbarStyles = computed(() => [...CardCollectionToolbar]);
117
+ const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
118
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
119
+ // State
120
+ const proxyView = ref(props.view);
121
+ const proxySort = ref(props.sort);
122
+ const proxySearch = ref(props.search);
123
+ // Methods
124
+ function switchToGridView() {
125
+ proxyView.value = CardCollectionView.Grid;
126
+ }
127
+ function switchToListView() {
128
+ proxyView.value = CardCollectionView.List;
129
+ }
130
+ // Effects
131
+ watch(() => props.view, value => {
132
+ proxyView.value = value;
133
+ });
134
+ watch(proxyView, value => {
135
+ context.emit('viewChange', value);
136
+ });
137
+ watch(() => props.sort, value => {
138
+ proxySort.value = value;
139
+ });
140
+ watch(proxySort, value => {
141
+ context.emit('sortChange', value);
142
+ });
143
+ watch(() => props.search, value => {
144
+ proxySearch.value = value;
145
+ });
146
+ watch(proxySearch, value => {
147
+ context.emit('searchChange', value);
148
+ });
149
+ return {
150
+ root,
151
+ rootStyles,
152
+ toolbarStyles,
153
+ toolbarPanelStyles,
154
+ contentStyles,
155
+ proxyView,
156
+ proxySort,
157
+ proxySearch,
158
+ switchToGridView,
159
+ switchToListView
160
+ };
161
+ }
162
+ });
163
+
164
+ export { CardCollectionView as C, script as s };
@@ -1,13 +1,43 @@
1
- import { defineComponent, ref, computed, watch } from 'vue';
1
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
2
2
  import { useMagicKeys, whenever } from '@vueuse/core';
3
3
  import { l as logicAnd } from './index-01519e46.js';
4
4
  import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
5
- import './OrButton-8ab33d9d.js';
5
+ import { s as script$1, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
6
6
  import './OrInput-fa782fc1.js';
7
- import { s as script$2, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-3718b300.js';
8
- import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
7
+ import { s as script$2 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
9
8
  import { s as script$3 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
10
9
 
10
+ const _hoisted_1 = ["type", "disabled"];
11
+ const _hoisted_2 = {
12
+ key: 0,
13
+ class: /*#__PURE__*/normalizeClass(['absolute'])
14
+ };
15
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
16
+ const _component_OrLoader = resolveComponent("OrLoader");
17
+ return openBlock(), createElementBlock("button", mergeProps({
18
+ ref: "root"
19
+ }, _ctx.$attrs, {
20
+ class: _ctx.rootStyles,
21
+ type: _ctx.type,
22
+ disabled: _ctx.disabled,
23
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
24
+ onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
25
+ onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
26
+ }), [createElementVNode("div", {
27
+ class: normalizeClass(['contents', _ctx.loading && 'invisible'])
28
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
29
+ key: 0,
30
+ variant: 'circular',
31
+ color: 'inherit',
32
+ size: 's'
33
+ })) : (openBlock(), createElementBlock(Fragment, {
34
+ key: 1
35
+ }, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
36
+ }
37
+
38
+ script$1.render = render;
39
+ script$1.__file = "src/components/or-button-v3/OrButton.vue";
40
+
11
41
  var ConfirmType;
12
42
  (function (ConfirmType) {
13
43
  ConfirmType["D"] = "d";
@@ -59,8 +89,8 @@ const ConfirmFooterButtons = [
59
89
  var script = defineComponent({
60
90
  name: 'OrConfirm',
61
91
  components: {
62
- OrOverlay: script$1,
63
- OrButton: script$2,
92
+ OrOverlay: script$2,
93
+ OrButton: script$1,
64
94
  OrInput: script$3
65
95
  },
66
96
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import './OrInput-fa782fc1.js';
4
- import { s as script$1 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
5
4
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
5
+ import { s as script$1 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
6
6
  import { a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
7
7
 
8
8
  var script = defineComponent({
@@ -12,11 +12,6 @@ var script = defineComponent({
12
12
  },
13
13
  inheritAttrs: false,
14
14
  props: {
15
- modelValue: {
16
- type: String,
17
- default: '',
18
- required: false
19
- },
20
15
  size: {
21
16
  type: String,
22
17
  default: InputBoxSize.M
@@ -41,14 +36,13 @@ var script = defineComponent({
41
36
  emits: ['search', 'input', 'keydown', 'keyup', 'focus', 'blur', 'clear'],
42
37
  expose: ['root', 'focus', 'clear'],
43
38
  setup(props, context) {
44
- var _a;
45
39
  // Refs
46
40
  const root = ref();
47
41
  // Styles
48
42
  const classAttribute = useClassAttribute();
49
43
  const rootStyles = computed(() => ['or-search', classAttribute.value]);
50
44
  // State
51
- const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
45
+ const localModelValue = ref('');
52
46
  // Events
53
47
  debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
54
48
  debounce: props.debounce
@@ -1,14 +1,40 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
- import { openBlock, createElementBlock, mergeProps, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
3
3
  import './OrIcon-d878b768.js';
4
- import './OrMenu-f26e8e55.js';
4
+ import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
5
5
  import './OrMenuItem-4feaba6c.js';
6
- import { s as script$1 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
6
+ import { s as script$2 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
7
7
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
8
- import { s as script$2 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
9
- import { s as script$3 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
8
+ import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
10
9
  import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
11
10
 
11
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
12
+ const _component_OrPopover = resolveComponent("OrPopover");
13
+ return openBlock(), createElementBlock("div", mergeProps({
14
+ ref: "root"
15
+ }, _ctx.$attrs, {
16
+ class: _ctx.rootStyles
17
+ }), [createVNode(_component_OrPopover, {
18
+ ref: "popover",
19
+ variant: 'auto',
20
+ trigger: _ctx.trigger,
21
+ placement: _ctx.placement,
22
+ "full-width": false,
23
+ "disable-default-styles": false,
24
+ "onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
25
+ }, {
26
+ default: withCtx(() => [createElementVNode("div", {
27
+ class: normalizeClass(_ctx.bodyStyles),
28
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
29
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
30
+
31
+ _: 3 /* FORWARDED */
32
+ }, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
33
+ }
34
+
35
+ script$1.render = render$1;
36
+ script$1.__file = "src/components/or-menu-v3/OrMenu.vue";
37
+
12
38
  const _hoisted_1 = ["selected"];
13
39
  function render(_ctx, _cache, $props, $setup, $data, $options) {
14
40
  return openBlock(), createElementBlock("div", mergeProps({
@@ -23,8 +49,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
23
49
  }), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */, _hoisted_1);
24
50
  }
25
51
 
26
- script$1.render = render;
27
- script$1.__file = "src/components/or-tab-v3/OrTab.vue";
52
+ script$2.render = render;
53
+ script$2.__file = "src/components/or-tab-v3/OrTab.vue";
28
54
 
29
55
  var TabsVariant;
30
56
  (function (TabsVariant) {
@@ -53,10 +79,10 @@ const TabsRootVariants = {
53
79
  var script = defineComponent({
54
80
  name: 'OrTabs',
55
81
  components: {
56
- OrIcon: script$2,
57
- OrMenu: script$3,
82
+ OrIcon: script$3,
83
+ OrMenu: script$1,
58
84
  OrMenuItem: script$4,
59
- OrTab: script$1
85
+ OrTab: script$2
60
86
  },
61
87
  inheritAttrs: false,
62
88
  props: {
@@ -5,10 +5,10 @@ export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonVi
5
5
  export { s as OrButtonV2 } from '../OrButton.vue_vue_type_script_lang-ffc66d00.js';
6
6
  export { s as OrIconButton } from '../OrIconButton.vue_vue_type_script_lang-40547ab0.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 '../constants-c5d1139f.js';
8
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-3718b300.js';
8
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-b0dc31ca.js';
9
9
  export { s as OrCard } from '../OrCard.vue_vue_type_script_lang-90ba001b.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection.vue_vue_type_script_lang-d8124dda.js';
11
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection.vue_vue_type_script_lang-b983bda7.js';
11
+ export { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection.vue_vue_type_script_lang-3993a015.js';
12
12
  export { s as OrCardV3 } from '../OrCard.vue_vue_type_script_lang-165de137.js';
13
13
  export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem.vue_vue_type_script_lang-ad286afc.js';
14
14
  export { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-d8a66818.js';
@@ -19,7 +19,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script
19
19
  export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-65cbb754.js';
20
20
  export { s 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.vue_vue_type_script_lang-4141378d.js';
21
21
  export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-0f16fc67.js';
22
- export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-85472b12.js';
22
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-49a3a9bd.js';
23
23
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker.vue_vue_type_script_lang-7bfe5005.js';
24
24
  export { s as OrError } from '../OrError.vue_vue_type_script_lang-7c39e012.js';
25
25
  export { s as OrErrorTagV3 } from '../OrErrorTag.vue_vue_type_script_lang-4828c387.js';
@@ -63,7 +63,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
63
63
  export { s as OrRadio } from '../OrRadio.vue_vue_type_script_lang-c956b54b.js';
64
64
  export { s as OrRadioGroup } from '../OrRadioGroup.vue_vue_type_script_lang-caea7bcb.js';
65
65
  export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-2e666a56.js';
66
- export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-0ae8a6dd.js';
66
+ export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-ed78b21f.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-579406f5.js';
68
68
  export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-26c0a70a.js';
69
69
  export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-15285ce4.js';
@@ -80,7 +80,7 @@ export { s as OrTab } from '../OrTab.vue_vue_type_script_lang-de7c7063.js';
80
80
  export { s as OrTabHeaderItem } from '../OrTabHeaderItem.vue_vue_type_script_lang-e1f29563.js';
81
81
  export { s as OrTabV3 } from '../OrTab.vue_vue_type_script_lang-134ad9d1.js';
82
82
  export { s as OrTabs } from '../OrTabs.vue_vue_type_script_lang-40e2a6e9.js';
83
- export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-61b79a5a.js';
83
+ export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-919b2021.js';
84
84
  export { s as OrTag } from '../OrTag.vue_vue_type_script_lang-8c526c11.js';
85
85
  export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag.vue_vue_type_script_lang-92d9fb12.js';
86
86
  export { s as OrTeleport } from '../OrTeleportVue3-012351e1.js';
@@ -106,10 +106,7 @@ import '../OrLoader-ee97fef4.js';
106
106
  import '../OrLoader-c4bbef2f.js';
107
107
  import '../OrIconButton-e637158e.js';
108
108
  import '../OrIconButton-4bd33e3c.js';
109
- import '../OrButton-8ab33d9d.js';
110
- import '../OrMenu-f26e8e55.js';
111
- import '../OrMenuItem-4feaba6c.js';
112
- import '../OrIcon-d878b768.js';
109
+ import '../OrInput-fa782fc1.js';
113
110
  import '../OrLabel-c6873e79.js';
114
111
  import '../OrLabel-e412c532.js';
115
112
  import '../OrError-b43ebad8.js';
@@ -120,8 +117,8 @@ import '../dom-d21d0a92.js';
120
117
  import '../OrFloating-b6672a37.js';
121
118
  import '../index-01519e46.js';
122
119
  import '../OrButton-ec723bb7.js';
123
- import '../OrInput-fa782fc1.js';
124
120
  import '../OrCollapse-63e83681.js';
121
+ import '../OrIcon-d878b768.js';
125
122
  import '../floating-ui.dom.esm-83eba816.js';
126
123
  import '../OrHint-9592499e.js';
127
124
  import '../OrInlineInputBox-9d68ded1.js';
@@ -131,5 +128,6 @@ import '../v4-cf8987a3.js';
131
128
  import '../OrPopover-c462ce77.js';
132
129
  import '../useResponsive-9d397e2a.js';
133
130
  import '../useElevation-c8d5d3ba.js';
131
+ import '../OrMenuItem-4feaba6c.js';
134
132
  import '../dropdown-open-293d2de2.js';
135
133
  import '../useOverflow-6dce216b.js';
@@ -1,4 +1,4 @@
1
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../../OrButton.vue_vue_type_script_lang-3718b300.js';
1
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../../OrButton.vue_vue_type_script_lang-b0dc31ca.js';
2
2
  import 'vue';
3
3
  import '../../OrLoader-c4bbef2f.js';
4
4
  import '../../OrLoader.vue_vue_type_script_lang-5405040c.js';
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryFn } from '@storybook/vue3';
2
- import OrCardCollection from './OrCardCollection.vue';
3
2
  declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
4
3
  [x: string]: ((...args: any[]) => any) | null;
5
4
  } | string[], {} & {}, {
@@ -16,7 +15,3 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
16
15
  } | string[], {} & {}, {
17
16
  [x: number]: string;
18
17
  } | {}, true>)>;
19
- export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
20
- export declare const ExtraViewMode: StoryFn<typeof OrCardCollection>;
21
- export declare const WithLink: StoryFn<typeof OrCardCollection>;
22
- export declare const EmptySearchResults: StoryFn<typeof OrCardCollection>;
@@ -1,51 +1,41 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { CardCollectionItem, SortOption, ViewMode } from './types';
2
+ import { SortHeaderModel } from '../or-sort-header-v3';
3
+ import { CardCollectionView } from './props';
4
+ import { CardCollectionItem, CardCollectionSortHeader } from './types';
3
5
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
6
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
- sortMenu: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
6
- [x: string]: ((...args: any[]) => any) | null;
7
- } | string[], {} & {}, {
8
- [x: number]: string;
9
- } | {}, true>)) | undefined>;
10
- sortButton: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
11
- [x: string]: ((...args: any[]) => any) | null;
12
- } | string[], {} & {}, {
13
- [x: number]: string;
14
- } | {}, true>)) | undefined>;
15
7
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
16
8
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
17
9
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
18
- proxyView: import("@vue/composition-api").Ref<string>;
19
- proxySort: import("@vue/composition-api").Ref<string>;
10
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
11
+ proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
12
+ proxySort: import("@vue/composition-api").Ref<{
13
+ column: string;
14
+ direction: "asc" | "desc";
15
+ }>;
20
16
  proxySearch: import("@vue/composition-api").Ref<string>;
21
- sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
22
- switchView: (view: string) => void;
23
- handleSort: (sort: string) => void;
24
- handleSearch: (search: string) => void;
17
+ switchToGridView: () => void;
18
+ switchToListView: () => void;
25
19
  }> & import("@vue/composition-api").Data, {}, {}, {
26
20
  items: {
27
21
  type: PropType<CardCollectionItem[]>;
28
22
  default: CardCollectionItem[];
29
23
  };
30
24
  view: {
31
- type: StringConstructor;
32
- default: string;
33
- };
34
- viewModes: {
35
- type: PropType<ViewMode[]>;
36
- default: () => ViewMode[];
25
+ type: PropType<CardCollectionView>;
26
+ default: CardCollectionView;
37
27
  };
38
28
  sort: {
39
- type: StringConstructor;
29
+ type: PropType<SortHeaderModel>;
40
30
  default: undefined;
41
31
  };
42
- sortOptions: {
43
- type: PropType<SortOption[]>;
44
- default: () => never[];
32
+ sortHeaders: {
33
+ type: PropType<CardCollectionSortHeader[]>;
34
+ default: undefined;
45
35
  };
46
36
  search: {
47
37
  type: StringConstructor;
48
- default: string;
38
+ default: undefined;
49
39
  };
50
40
  }, import("@vue/composition-api").ExtractPropTypes<{
51
41
  items: {
@@ -53,71 +43,56 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
53
43
  default: CardCollectionItem[];
54
44
  };
55
45
  view: {
56
- type: StringConstructor;
57
- default: string;
58
- };
59
- viewModes: {
60
- type: PropType<ViewMode[]>;
61
- default: () => ViewMode[];
46
+ type: PropType<CardCollectionView>;
47
+ default: CardCollectionView;
62
48
  };
63
49
  sort: {
64
- type: StringConstructor;
50
+ type: PropType<SortHeaderModel>;
65
51
  default: undefined;
66
52
  };
67
- sortOptions: {
68
- type: PropType<SortOption[]>;
69
- default: () => never[];
53
+ sortHeaders: {
54
+ type: PropType<CardCollectionSortHeader[]>;
55
+ default: undefined;
70
56
  };
71
57
  search: {
72
58
  type: StringConstructor;
73
- default: string;
59
+ default: undefined;
74
60
  };
75
61
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
76
62
  search: string;
77
- sort: string;
63
+ sort: SortHeaderModel;
78
64
  items: CardCollectionItem[];
79
- view: string;
80
- viewModes: ViewMode[];
81
- sortOptions: SortOption[];
65
+ view: CardCollectionView;
66
+ sortHeaders: CardCollectionSortHeader[];
82
67
  } & {} & {
83
68
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
84
69
  }, import("@vue/composition-api").ShallowUnwrapRef<{
85
70
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
86
- sortMenu: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
87
- [x: string]: ((...args: any[]) => any) | null;
88
- } | string[], {} & {}, {
89
- [x: number]: string;
90
- } | {}, true>)) | undefined>;
91
- sortButton: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
92
- [x: string]: ((...args: any[]) => any) | null;
93
- } | string[], {} & {}, {
94
- [x: number]: string;
95
- } | {}, true>)) | undefined>;
96
71
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
97
72
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
98
73
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
99
- proxyView: import("@vue/composition-api").Ref<string>;
100
- proxySort: import("@vue/composition-api").Ref<string>;
74
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
75
+ proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
76
+ proxySort: import("@vue/composition-api").Ref<{
77
+ column: string;
78
+ direction: "asc" | "desc";
79
+ }>;
101
80
  proxySearch: import("@vue/composition-api").Ref<string>;
102
- sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
103
- switchView: (view: string) => void;
104
- handleSort: (sort: string) => void;
105
- handleSearch: (search: string) => void;
81
+ switchToGridView: () => void;
82
+ switchToListView: () => void;
106
83
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
107
84
  search: string;
108
- sort: string;
85
+ sort: SortHeaderModel;
109
86
  items: CardCollectionItem[];
110
- view: string;
111
- viewModes: ViewMode[];
112
- sortOptions: SortOption[];
87
+ view: CardCollectionView;
88
+ sortHeaders: CardCollectionSortHeader[];
113
89
  } & {} & {
114
90
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
115
91
  }, {
116
92
  search: string;
117
- sort: string;
93
+ sort: SortHeaderModel;
118
94
  items: CardCollectionItem[];
119
- view: string;
120
- viewModes: ViewMode[];
121
- sortOptions: SortOption[];
95
+ view: CardCollectionView;
96
+ sortHeaders: CardCollectionSortHeader[];
122
97
  }, true>);
123
98
  export default _default;
@@ -1,10 +1,11 @@
1
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection.vue_vue_type_script_lang-b983bda7.js';
1
+ export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection.vue_vue_type_script_lang-3993a015.js';
2
2
  import 'vue';
3
+ import '../../OrCard.vue_vue_type_script_lang-165de137.js';
4
+ import '../../useClassAttribute-00888f78.js';
3
5
  import '../../OrIconButton-4bd33e3c.js';
4
6
  import '../../OrIconButton.vue_vue_type_script_lang-641f6e06.js';
5
7
  import '../../OrIcon-d878b768.js';
6
8
  import '../../OrIcon.vue_vue_type_script_lang-a119a715.js';
7
- import '../../useClassAttribute-00888f78.js';
8
9
  import '../../OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
9
10
  import '@vueuse/core';
10
11
  import '../../OrPopover-c462ce77.js';
@@ -15,15 +16,6 @@ import '../../OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
15
16
  import '../../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
16
17
  import '../../useElevation-c8d5d3ba.js';
17
18
  import '../../useResponsive-9d397e2a.js';
18
- import '../../OrButton-8ab33d9d.js';
19
- import '../../OrButton.vue_vue_type_script_lang-3718b300.js';
20
- import '../../OrLoader-c4bbef2f.js';
21
- import '../../OrLoader.vue_vue_type_script_lang-5405040c.js';
22
- import '../../OrMenu-f26e8e55.js';
23
- import '../../OrMenu.vue_vue_type_script_lang-2446a69a.js';
24
- import '../../OrMenuItem-4feaba6c.js';
25
- import '../../OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
26
- import '../../OrSearch.vue_vue_type_script_lang-0ae8a6dd.js';
27
19
  import '../../OrInput-fa782fc1.js';
28
20
  import '../../OrInput.vue_vue_type_script_lang-f6d793d3.js';
29
21
  import '../../OrHint-9592499e.js';
@@ -34,3 +26,4 @@ import '../../OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
34
26
  import '../../OrLabel-c6873e79.js';
35
27
  import '../../OrLabel.vue_vue_type_script_lang-96f94c4e.js';
36
28
  import '../../style-inject.es-4c6f2515.js';
29
+ import '../../OrSortHeader.vue_vue_type_script_lang-75115125.js';