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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/bundled/v2/{OrAvatar-2fa559e1.js → OrAvatar-1ada4581.js} +7 -1
  2. package/dist/bundled/v2/{OrCard-29116e1f.js → OrCard-58a1ba3e.js} +2 -2
  3. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +228 -0
  4. package/dist/bundled/v2/{OrSearch-a11b3621.js → OrSearch-9d402f56.js} +3 -9
  5. package/dist/bundled/v2/{OrSortHeader-9932d28f.js → OrSortHeader-396e6a7c.js} +2 -2
  6. package/dist/bundled/v2/components/index.js +5 -5
  7. package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -1
  8. package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +2 -1
  9. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  10. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +39 -65
  11. package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -7
  12. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +3 -8
  13. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  14. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  15. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  16. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  17. package/dist/bundled/v2/index.js +6 -6
  18. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-22e46ce1.js → OrAvatar.vue_vue_type_script_lang-a0a72134.js} +7 -1
  19. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +164 -0
  20. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-85472b12.js → OrConfirm.vue_vue_type_script_lang-289b5600.js} +36 -6
  21. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0ae8a6dd.js → OrSearch.vue_vue_type_script_lang-ed78b21f.js} +2 -8
  22. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-919b2021.js} +36 -10
  23. package/dist/bundled/v3/components/index.js +8 -10
  24. package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -1
  25. package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +2 -1
  26. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  27. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +39 -65
  28. package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -11
  29. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +3 -8
  30. package/dist/bundled/v3/components/or-confirm-v3/index.js +1 -2
  31. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  32. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  33. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  34. package/dist/bundled/v3/index.js +298 -329
  35. package/dist/esm/v2/{OrAvatar-0afdef36.js → OrAvatar-95b029b4.js} +7 -1
  36. package/dist/esm/v2/OrCardCollection-4f001551.js +227 -0
  37. package/dist/esm/v2/{OrSearch-62d91301.js → OrSearch-ddb7c1fe.js} +1 -7
  38. package/dist/esm/v2/components/index.js +3 -3
  39. package/dist/esm/v2/components/or-avatar-v3/index.js +1 -1
  40. package/dist/esm/v2/components/or-avatar-v3/props.d.ts +2 -1
  41. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  42. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +39 -65
  43. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -7
  44. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +3 -8
  45. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  46. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  47. package/dist/esm/v2/index.js +3 -3
  48. package/dist/esm/v3/{OrAvatar-ef88d31c.js → OrAvatar-9ed782da.js} +7 -1
  49. package/dist/esm/v3/OrCardCollection-5a0febaf.js +198 -0
  50. package/dist/esm/v3/{OrSearch-aafb93b4.js → OrSearch-cdde55ce.js} +1 -7
  51. package/dist/esm/v3/components/index.js +3 -3
  52. package/dist/esm/v3/components/or-avatar-v3/index.js +1 -1
  53. package/dist/esm/v3/components/or-avatar-v3/props.d.ts +2 -1
  54. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  55. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +39 -65
  56. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -7
  57. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +3 -8
  58. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  59. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  60. package/dist/esm/v3/index.js +3 -3
  61. package/package.json +1 -1
  62. package/src/components/or-avatar-v3/props.ts +1 -0
  63. package/src/components/or-avatar-v3/styles.ts +9 -0
  64. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +28 -229
  65. package/src/components/or-card-collection-v3/OrCardCollection.vue +76 -119
  66. package/src/components/or-card-collection-v3/styles.ts +1 -1
  67. package/src/components/or-card-collection-v3/types.ts +3 -9
  68. package/src/components/or-search-v3/OrSearch.vue +1 -7
  69. package/dist/bundled/v2/OrCardCollection-953657a7.js +0 -347
  70. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  71. package/dist/bundled/v2/components/or-card-collection-v3/constatnts.d.ts +0 -4
  72. package/dist/bundled/v3/OrButton-8ab33d9d.js +0 -33
  73. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-4debae8a.js +0 -229
  74. package/dist/bundled/v3/OrMenu-f26e8e55.js +0 -29
  75. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  76. package/dist/bundled/v3/components/or-card-collection-v3/constatnts.d.ts +0 -4
  77. package/dist/esm/v2/OrCardCollection-55e282a7.js +0 -347
  78. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  79. package/dist/esm/v2/components/or-card-collection-v3/constatnts.d.ts +0 -4
  80. package/dist/esm/v3/OrCardCollection-0c6da4b8.js +0 -290
  81. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  82. package/dist/esm/v3/components/or-card-collection-v3/constatnts.d.ts +0 -4
  83. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +0 -41
  84. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +0 -42
  85. package/src/components/or-card-collection-v3/constatnts.ts +0 -12
@@ -8,6 +8,7 @@ var AvatarSize;
8
8
  AvatarSize["L"] = "l";
9
9
  AvatarSize["M"] = "m";
10
10
  AvatarSize["S"] = "s";
11
+ AvatarSize["XS"] = "xs";
11
12
  })(AvatarSize || (AvatarSize = {}));
12
13
  var AvatarColor;
13
14
  (function (AvatarColor) {
@@ -49,7 +50,12 @@ const AvatarRootSizes = {
49
50
  // Box
50
51
  'w-[32px]', 'h-[32px]',
51
52
  // Typography
52
- 'text-[16px]']
53
+ 'text-[16px]'],
54
+ 'xs': [
55
+ // Box
56
+ 'w-[24px]', 'h-[24px]',
57
+ // Typography
58
+ 'text-[12px]']
53
59
  };
54
60
  const AvatarRootColors = {
55
61
  [AvatarColor.blue]: [
@@ -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-3718b300.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: {
@@ -1,5 +1,5 @@
1
1
  export { O as OR_AVATAR_SIZE, s as OrAvatar } from '../OrAvatar.vue_vue_type_script_lang-07889664.js';
2
- export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar.vue_vue_type_script_lang-22e46ce1.js';
2
+ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar.vue_vue_type_script_lang-a0a72134.js';
3
3
  export { s as OrBottomSheetV3 } from '../OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
4
4
  export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from '../OrButton.vue_vue_type_script_lang-c0800f20.js';
5
5
  export { s as OrButtonV2 } from '../OrButton.vue_vue_type_script_lang-ffc66d00.js';
@@ -8,7 +8,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
8
8
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-3718b300.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 { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection.vue_vue_type_script_lang-4debae8a.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-289b5600.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-dfadd12f.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-06bcc7d7.js';
@@ -1,4 +1,4 @@
1
- export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../../OrAvatar.vue_vue_type_script_lang-22e46ce1.js';
1
+ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../../OrAvatar.vue_vue_type_script_lang-a0a72134.js';
2
2
  import 'vue';
3
3
  import '../../color-1f348774.js';
4
4
  import '../../useClassAttribute-00888f78.js';
@@ -2,7 +2,8 @@ export declare enum AvatarSize {
2
2
  XL = "xl",
3
3
  L = "l",
4
4
  M = "m",
5
- S = "s"
5
+ S = "s",
6
+ XS = "xs"
6
7
  }
7
8
  export declare enum AvatarColor {
8
9
  blue = "blue",
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryFn } from '@storybook/vue3';
2
- import OrCardCollection from './OrCardCollection.vue';
3
2
  declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
4
3
  [x: string]: ((...args: any[]) => any) | null;
5
4
  } | string[], {} & {}, {
@@ -16,7 +15,3 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
16
15
  } | string[], {} & {}, {
17
16
  [x: number]: string;
18
17
  } | {}, true>)>;
19
- export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
20
- export declare const ExtraViewMode: StoryFn<typeof OrCardCollection>;
21
- export declare const WithLink: StoryFn<typeof OrCardCollection>;
22
- export declare const EmptySearchResults: StoryFn<typeof OrCardCollection>;
@@ -1,52 +1,41 @@
1
1
  import { PropType } from 'vue-demi';
2
+ import { SortHeaderModel } from '../or-sort-header-v3';
2
3
  import { CardCollectionView } from './props';
3
- import { CardCollectionItem, SortOption, ViewMode } from './types';
4
+ import { CardCollectionItem, CardCollectionSortHeader } from './types';
4
5
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
6
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
- 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, {
7
- [x: string]: ((...args: any[]) => any) | null;
8
- } | string[], {} & {}, {
9
- [x: number]: string;
10
- } | {}, true>)) | undefined>;
11
- 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, {
12
- [x: string]: ((...args: any[]) => any) | null;
13
- } | string[], {} & {}, {
14
- [x: number]: string;
15
- } | {}, true>)) | undefined>;
16
7
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
17
8
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
18
9
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
19
- proxyView: import("@vue/composition-api").Ref<string>;
20
- 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
+ }>;
21
16
  proxySearch: import("@vue/composition-api").Ref<string>;
22
- sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
23
- switchView: (view: string) => void;
24
- handleSort: (sort: string) => void;
25
- handleSearch: (search: string) => void;
17
+ switchToGridView: () => void;
18
+ switchToListView: () => void;
26
19
  }> & import("@vue/composition-api").Data, {}, {}, {
27
20
  items: {
28
21
  type: PropType<CardCollectionItem[]>;
29
22
  default: CardCollectionItem[];
30
23
  };
31
24
  view: {
32
- type: StringConstructor;
25
+ type: PropType<CardCollectionView>;
33
26
  default: CardCollectionView;
34
27
  };
35
- viewModes: {
36
- type: PropType<ViewMode[]>;
37
- default: () => ViewMode[];
38
- };
39
28
  sort: {
40
- type: StringConstructor;
29
+ type: PropType<SortHeaderModel>;
41
30
  default: undefined;
42
31
  };
43
- sortOptions: {
44
- type: PropType<SortOption[]>;
45
- default: () => never[];
32
+ sortHeaders: {
33
+ type: PropType<CardCollectionSortHeader[]>;
34
+ default: undefined;
46
35
  };
47
36
  search: {
48
37
  type: StringConstructor;
49
- default: string;
38
+ default: undefined;
50
39
  };
51
40
  }, import("@vue/composition-api").ExtractPropTypes<{
52
41
  items: {
@@ -54,71 +43,56 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
54
43
  default: CardCollectionItem[];
55
44
  };
56
45
  view: {
57
- type: StringConstructor;
46
+ type: PropType<CardCollectionView>;
58
47
  default: CardCollectionView;
59
48
  };
60
- viewModes: {
61
- type: PropType<ViewMode[]>;
62
- default: () => ViewMode[];
63
- };
64
49
  sort: {
65
- type: StringConstructor;
50
+ type: PropType<SortHeaderModel>;
66
51
  default: undefined;
67
52
  };
68
- sortOptions: {
69
- type: PropType<SortOption[]>;
70
- default: () => never[];
53
+ sortHeaders: {
54
+ type: PropType<CardCollectionSortHeader[]>;
55
+ default: undefined;
71
56
  };
72
57
  search: {
73
58
  type: StringConstructor;
74
- default: string;
59
+ default: undefined;
75
60
  };
76
61
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
77
62
  search: string;
78
- sort: string;
63
+ sort: SortHeaderModel;
79
64
  items: CardCollectionItem[];
80
- view: string;
81
- viewModes: ViewMode[];
82
- sortOptions: SortOption[];
65
+ view: CardCollectionView;
66
+ sortHeaders: CardCollectionSortHeader[];
83
67
  } & {} & {
84
68
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
85
69
  }, import("@vue/composition-api").ShallowUnwrapRef<{
86
70
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
87
- 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, {
88
- [x: string]: ((...args: any[]) => any) | null;
89
- } | string[], {} & {}, {
90
- [x: number]: string;
91
- } | {}, true>)) | undefined>;
92
- 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, {
93
- [x: string]: ((...args: any[]) => any) | null;
94
- } | string[], {} & {}, {
95
- [x: number]: string;
96
- } | {}, true>)) | undefined>;
97
71
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
98
72
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
99
73
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
100
- proxyView: import("@vue/composition-api").Ref<string>;
101
- 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
+ }>;
102
80
  proxySearch: import("@vue/composition-api").Ref<string>;
103
- sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
104
- switchView: (view: string) => void;
105
- handleSort: (sort: string) => void;
106
- handleSearch: (search: string) => void;
81
+ switchToGridView: () => void;
82
+ switchToListView: () => void;
107
83
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
108
84
  search: string;
109
- sort: string;
85
+ sort: SortHeaderModel;
110
86
  items: CardCollectionItem[];
111
- view: string;
112
- viewModes: ViewMode[];
113
- sortOptions: SortOption[];
87
+ view: CardCollectionView;
88
+ sortHeaders: CardCollectionSortHeader[];
114
89
  } & {} & {
115
90
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
116
91
  }, {
117
92
  search: string;
118
- sort: string;
93
+ sort: SortHeaderModel;
119
94
  items: CardCollectionItem[];
120
- view: string;
121
- viewModes: ViewMode[];
122
- sortOptions: SortOption[];
95
+ view: CardCollectionView;
96
+ sortHeaders: CardCollectionSortHeader[];
123
97
  }, true>);
124
98
  export default _default;