@onereach/ui-components 2.69.2-beta.2113.0 → 2.69.2-beta.2123.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 (123) hide show
  1. package/dist/bundled/v2/{OrAvatar-ae61bfb9.js → OrAvatar-2fa559e1.js} +15 -41
  2. package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
  3. package/dist/bundled/v2/OrCardCollection-773ae0db.js +346 -0
  4. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-a11b3621.js} +9 -3
  5. package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
  6. package/dist/bundled/v2/components/index.js +5 -5
  7. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  8. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  9. package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -2
  10. package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +1 -2
  11. package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +0 -2
  12. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  13. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  14. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  15. package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -4
  16. package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +5 -1
  17. package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  18. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
  19. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  20. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  21. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  22. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  23. package/dist/bundled/v2/index.js +6 -6
  24. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-0426862b.js → OrAvatar.vue_vue_type_script_lang-22e46ce1.js} +13 -35
  25. package/dist/bundled/v3/OrButton-8ab33d9d.js +33 -0
  26. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-b983bda7.js +228 -0
  27. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-85472b12.js} +6 -36
  28. package/dist/bundled/v3/{OrIconButton-1581013c.js → OrIconButton-4bd33e3c.js} +1 -1
  29. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-f6f801ff.js → OrIconButton.vue_vue_type_script_lang-641f6e06.js} +1 -1
  30. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-3a8189f4.js} +2 -2
  31. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js} +2 -2
  32. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
  33. package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
  34. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-80a7b906.js → OrModal.vue_vue_type_script_lang-00a477f0.js} +2 -2
  35. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
  36. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-0ae8a6dd.js} +8 -2
  37. package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-15285ce4.js +1 -1
  38. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
  39. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-dc6a4011.js → OrTag.vue_vue_type_script_lang-92d9fb12.js} +2 -2
  40. package/dist/bundled/v3/{OrToastContainer-7c3c0b12.js → OrToastContainer-afb51e5d.js} +1 -1
  41. package/dist/bundled/v3/components/index.js +17 -15
  42. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  43. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  44. package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -3
  45. package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +1 -2
  46. package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +0 -2
  47. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  48. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  49. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  50. package/dist/bundled/v3/components/or-card-collection-v3/index.js +13 -6
  51. package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +5 -1
  52. package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  53. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
  54. package/dist/bundled/v3/components/or-confirm-v3/index.js +4 -3
  55. package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
  56. package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
  57. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
  58. package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
  59. package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
  60. package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
  61. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  62. package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
  63. package/dist/bundled/v3/components/or-select-v3/index.js +3 -3
  64. package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
  65. package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
  66. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  67. package/dist/bundled/v3/index.js +339 -314
  68. package/dist/bundled/v3/{types-dcc78caa.js → types-6c5eee23.js} +2 -2
  69. package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-0afdef36.js} +15 -41
  70. package/dist/esm/v2/OrCardCollection-61c86bfc.js +346 -0
  71. package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-62d91301.js} +7 -1
  72. package/dist/esm/v2/components/index.js +3 -3
  73. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  74. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  75. package/dist/esm/v2/components/or-avatar-v3/index.js +1 -2
  76. package/dist/esm/v2/components/or-avatar-v3/props.d.ts +1 -2
  77. package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +0 -2
  78. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  79. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  80. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  81. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
  82. package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +5 -1
  83. package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  84. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
  85. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  86. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  87. package/dist/esm/v2/index.js +3 -3
  88. package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-ef88d31c.js} +16 -43
  89. package/dist/esm/v3/OrCardCollection-fdc7848b.js +289 -0
  90. package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-aafb93b4.js} +7 -1
  91. package/dist/esm/v3/components/index.js +3 -3
  92. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  93. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  94. package/dist/esm/v3/components/or-avatar-v3/index.js +1 -2
  95. package/dist/esm/v3/components/or-avatar-v3/props.d.ts +1 -2
  96. package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +0 -2
  97. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  98. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  99. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  100. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -4
  101. package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +5 -1
  102. package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  103. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
  104. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  105. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  106. package/dist/esm/v3/index.js +3 -3
  107. package/package.json +1 -1
  108. package/src/components/or-avatar-v3/OrAvatar.stories3.ts +7 -9
  109. package/src/components/or-avatar-v3/OrAvatar.vue +2 -22
  110. package/src/components/or-avatar-v3/props.ts +0 -1
  111. package/src/components/or-avatar-v3/styles.ts +11 -49
  112. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +230 -30
  113. package/src/components/or-card-collection-v3/OrCardCollection.vue +120 -77
  114. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
  115. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
  116. package/src/components/or-card-collection-v3/props.ts +14 -1
  117. package/src/components/or-card-collection-v3/styles.ts +3 -3
  118. package/src/components/or-card-collection-v3/types.ts +9 -3
  119. package/src/components/or-search-v3/OrSearch.vue +7 -1
  120. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
  121. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-861158b5.js +0 -164
  122. package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
  123. package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
@@ -1,7 +1,5 @@
1
1
  import { defineComponent, ref, computed, watchPostEffect } from 'vue';
2
2
  import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
3
- import './OrIcon-d878b768.js';
4
- import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
5
3
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
6
4
 
7
5
  var AvatarSize;
@@ -10,7 +8,6 @@ var AvatarSize;
10
8
  AvatarSize["L"] = "l";
11
9
  AvatarSize["M"] = "m";
12
10
  AvatarSize["S"] = "s";
13
- AvatarSize["XS"] = "xs";
14
11
  })(AvatarSize || (AvatarSize = {}));
15
12
  var AvatarColor;
16
13
  (function (AvatarColor) {
@@ -35,19 +32,24 @@ const AvatarImage = [
35
32
  const AvatarRootSizes = {
36
33
  'xl': [
37
34
  // Box
38
- 'w-[80px]', 'h-[80px]'],
35
+ 'w-[80px]', 'h-[80px]',
36
+ // Typography
37
+ 'text-[32px]'],
39
38
  'l': [
40
39
  // Box
41
- 'w-[64px]', 'h-[64px]'],
40
+ 'w-[64px]', 'h-[64px]',
41
+ // Typography
42
+ 'text-[24px]'],
42
43
  'm': [
43
44
  // Box
44
- 'w-[40px]', 'h-[40px]'],
45
+ 'w-[40px]', 'h-[40px]',
46
+ // Typography
47
+ 'text-[16px]'],
45
48
  's': [
46
49
  // Box
47
- 'w-[32px]', 'h-[32px]'],
48
- 'xs': [
49
- // Box
50
- 'w-[24px]', 'h-[24px]']
50
+ 'w-[32px]', 'h-[32px]',
51
+ // Typography
52
+ 'text-[16px]']
51
53
  };
52
54
  const AvatarRootColors = {
53
55
  [AvatarColor.blue]: [
@@ -69,26 +71,9 @@ const AvatarRootColors = {
69
71
  // Theme
70
72
  'text-white', 'dark:text-overlay-dark']
71
73
  };
72
- const AvatarRootAbbreviationSizes = {
73
- 'xl': ['typography-headline-1'],
74
- 'l': ['typography-headline-1'],
75
- 'm': ['typography-body-1-bold'],
76
- 's': ['typography-body-1-bold'],
77
- 'xs': ['typography-caption-semibold']
78
- };
79
- const AvatarRootIconSizes = {
80
- 'xl': ['text-[40px]'],
81
- 'l': ['text-[32px]'],
82
- 'm': ['text-[20px]'],
83
- 's': ['text-[16px]'],
84
- 'xs': ['text-[16px]']
85
- };
86
74
 
87
75
  var script = defineComponent({
88
76
  name: 'OrAvatar',
89
- components: {
90
- OrIcon: script$1
91
- },
92
77
  inheritAttrs: false,
93
78
  props: {
94
79
  src: {
@@ -99,10 +84,6 @@ var script = defineComponent({
99
84
  type: String,
100
85
  default: AvatarSize.M
101
86
  },
102
- icon: {
103
- type: String,
104
- default: undefined
105
- },
106
87
  color: {
107
88
  type: String,
108
89
  default: AvatarColor.auto,
@@ -118,12 +99,9 @@ var script = defineComponent({
118
99
  setup(props) {
119
100
  // Refs
120
101
  const root = ref();
121
- const isIcon = computed(() => {
122
- return !props.icon;
123
- });
124
102
  // Styles
125
103
  const classAttribute = useClassAttribute();
126
- const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], ...(isIcon.value ? AvatarRootAbbreviationSizes[props.size] : AvatarRootIconSizes[props.size]), classAttribute.value]);
104
+ const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], classAttribute.value]);
127
105
  const imageStyles = computed(() => [...AvatarImage]);
128
106
  // Effects
129
107
  watchPostEffect(() => {
@@ -0,0 +1,33 @@
1
+ import { s as script } from './OrButton.vue_vue_type_script_lang-3718b300.js';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
3
+
4
+ const _hoisted_1 = ["type", "disabled"];
5
+ const _hoisted_2 = {
6
+ key: 0,
7
+ class: /*#__PURE__*/normalizeClass(['absolute'])
8
+ };
9
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
10
+ const _component_OrLoader = resolveComponent("OrLoader");
11
+ return openBlock(), createElementBlock("button", mergeProps({
12
+ ref: "root"
13
+ }, _ctx.$attrs, {
14
+ class: _ctx.rootStyles,
15
+ type: _ctx.type,
16
+ disabled: _ctx.disabled,
17
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
18
+ onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
19
+ onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
20
+ }), [createElementVNode("div", {
21
+ class: normalizeClass(['contents', _ctx.loading && 'invisible'])
22
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
23
+ key: 0,
24
+ variant: 'circular',
25
+ color: 'inherit',
26
+ size: 's'
27
+ })) : (openBlock(), createElementBlock(Fragment, {
28
+ key: 1
29
+ }, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
30
+ }
31
+
32
+ script.render = render;
33
+ script.__file = "src/components/or-button-v3/OrButton.vue";
@@ -0,0 +1,228 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createBlock, ref, watch } from 'vue';
2
+ import './OrIconButton-4bd33e3c.js';
3
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
4
+ import './OrButton-8ab33d9d.js';
5
+ import './OrMenu-f26e8e55.js';
6
+ import { s as script$5 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
7
+ import './OrMenuItem-4feaba6c.js';
8
+ import { s as script$6 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
9
+ import './OrIcon-d878b768.js';
10
+ import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-0ae8a6dd.js';
11
+ import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
12
+ import { s as script$4 } from './OrButton.vue_vue_type_script_lang-3718b300.js';
13
+ import { s as script$7 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
14
+
15
+ const CardCollectionRoot = [
16
+ // Layout
17
+ 'layout-column',
18
+ // Spacing
19
+ 'gap-md'];
20
+ const CardCollectionToolbar = [
21
+ // Layout
22
+ 'layout-row justify-between',
23
+ // Typography
24
+ 'typography-body-2-regular',
25
+ // Theme
26
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
27
+ const CardCollectionToolbarPanel = [
28
+ // Layout
29
+ 'layout-row',
30
+ // Spacing
31
+ 'gap-lg+'];
32
+ const CardCollectionContent = [
33
+ // Layout
34
+ 'grid',
35
+ // Spacing
36
+ 'gap-sm md:gap-md'];
37
+ const CardCollectionContentViews = {
38
+ 'grid': [
39
+ // Layout
40
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
41
+ 'list': []
42
+ };
43
+
44
+ var script$1 = defineComponent({
45
+ name: 'OrCardCollectionView',
46
+ props: {
47
+ items: {
48
+ type: Array,
49
+ default: []
50
+ },
51
+ mode: {
52
+ type: String,
53
+ required: true
54
+ }
55
+ },
56
+ setup(props) {
57
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
58
+ return {
59
+ contentStyles
60
+ };
61
+ }
62
+ });
63
+
64
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
65
+ return openBlock(), createElementBlock("div", {
66
+ class: normalizeClass(_ctx.contentStyles)
67
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
68
+ return renderSlot(_ctx.$slots, "item", mergeProps({
69
+ key: item.key || index
70
+ }, {
71
+ item,
72
+ mode: _ctx.mode
73
+ }), () => [createTextVNode(toDisplayString(item.key), 1 /* TEXT */)]);
74
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
75
+ }
76
+
77
+ script$1.render = render$1;
78
+ script$1.__file = "src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue";
79
+
80
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
81
+ const _component_OrInput = resolveComponent("OrInput");
82
+ return openBlock(), createBlock(_component_OrInput, mergeProps({
83
+ ref: "root"
84
+ }, _ctx.$attrs, {
85
+ modelValue: _ctx.localModelValue,
86
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.localModelValue = $event),
87
+ modelModifiers: {
88
+ trim: true
89
+ },
90
+ class: _ctx.rootStyles,
91
+ type: 'search',
92
+ size: _ctx.size,
93
+ placeholder: _ctx.placeholder,
94
+ debounce: _ctx.debounce,
95
+ disabled: _ctx.disabled,
96
+ "disable-default-styles": _ctx.disableDefaultStyles,
97
+ onInput: _cache[1] || (_cache[1] = $event => _ctx.$emit('input', $event)),
98
+ onKeydown: _cache[2] || (_cache[2] = $event => _ctx.$emit('keydown', $event)),
99
+ onKeyup: _cache[3] || (_cache[3] = $event => _ctx.$emit('keyup', $event)),
100
+ onFocus: _cache[4] || (_cache[4] = $event => _ctx.$emit('focus', $event)),
101
+ onBlur: _cache[5] || (_cache[5] = $event => _ctx.$emit('blur', $event))
102
+ }), null, 16 /* FULL_PROPS */, ["modelValue", "class", "size", "placeholder", "debounce", "disabled", "disable-default-styles"]);
103
+ }
104
+
105
+ script$2.render = render;
106
+ script$2.__file = "src/components/or-search-v3/OrSearch.vue";
107
+
108
+ var DefaultCardCollectionViews;
109
+ (function (DefaultCardCollectionViews) {
110
+ DefaultCardCollectionViews["Grid"] = "grid";
111
+ DefaultCardCollectionViews["List"] = "list";
112
+ })(DefaultCardCollectionViews || (DefaultCardCollectionViews = {}));
113
+ const gridView = {
114
+ view: DefaultCardCollectionViews.Grid,
115
+ icon: 'grid_view'
116
+ };
117
+ const listView = {
118
+ view: DefaultCardCollectionViews.List,
119
+ icon: 'view_agenda'
120
+ };
121
+ const defaultViewModes = [gridView, listView];
122
+
123
+ var script = defineComponent({
124
+ name: 'OrCardCollection',
125
+ components: {
126
+ OrCardCollectionView: script$1,
127
+ OrIconButton: script$3,
128
+ OrButton: script$4,
129
+ OrMenu: script$5,
130
+ OrMenuItem: script$6,
131
+ OrIcon: script$7,
132
+ OrSearch: script$2
133
+ },
134
+ inheritAttrs: false,
135
+ props: {
136
+ items: {
137
+ type: Array,
138
+ default: []
139
+ },
140
+ view: {
141
+ type: String,
142
+ default: gridView.view
143
+ },
144
+ viewModes: {
145
+ type: Array,
146
+ default: () => defaultViewModes
147
+ },
148
+ sort: {
149
+ type: String,
150
+ default: undefined
151
+ },
152
+ sortOptions: {
153
+ type: Array,
154
+ default: () => []
155
+ },
156
+ search: {
157
+ type: String,
158
+ default: ''
159
+ }
160
+ },
161
+ emits: ['viewChange', 'sortChange', 'searchChange'],
162
+ expose: ['root'],
163
+ setup(props, context) {
164
+ // Refs
165
+ const root = ref();
166
+ const sortMenu = ref();
167
+ const sortButton = ref();
168
+ // Styles
169
+ const classAttribute = useClassAttribute();
170
+ const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
171
+ const toolbarStyles = computed(() => [...CardCollectionToolbar]);
172
+ const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
173
+ const sortLabel = computed(() => {
174
+ var _a;
175
+ return (_a = props.sortOptions.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
176
+ });
177
+ // State
178
+ const proxyView = ref(props.view);
179
+ const proxySort = ref(props.sort);
180
+ const proxySearch = ref(props.search);
181
+ // Methods
182
+ function switchView(view) {
183
+ proxyView.value = view;
184
+ }
185
+ function handleSort(sort) {
186
+ proxySort.value = sort;
187
+ }
188
+ function handleSearch(search) {
189
+ proxySearch.value = search;
190
+ }
191
+ // Effects
192
+ watch(() => props.view, value => {
193
+ proxyView.value = value;
194
+ });
195
+ watch(proxyView, value => {
196
+ context.emit('viewChange', value);
197
+ });
198
+ watch(() => props.sort, value => {
199
+ proxySort.value = value;
200
+ });
201
+ watch(proxySort, value => {
202
+ context.emit('sortChange', value);
203
+ });
204
+ watch(() => props.search, value => {
205
+ proxySearch.value = value;
206
+ });
207
+ watch(proxySearch, value => {
208
+ context.emit('searchChange', value);
209
+ });
210
+ return {
211
+ root,
212
+ sortMenu,
213
+ sortButton,
214
+ rootStyles,
215
+ toolbarStyles,
216
+ toolbarPanelStyles,
217
+ proxyView,
218
+ proxySort,
219
+ proxySearch,
220
+ sortLabel,
221
+ switchView,
222
+ handleSort,
223
+ handleSearch
224
+ };
225
+ }
226
+ });
227
+
228
+ export { DefaultCardCollectionViews as D, defaultViewModes as d, gridView as g, listView as l, script as s };
@@ -1,43 +1,13 @@
1
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
1
+ import { 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 { s as script$1, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-3718b300.js';
5
+ import './OrButton-8ab33d9d.js';
6
6
  import './OrInput-fa782fc1.js';
7
- import { s as script$2 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.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';
8
9
  import { s as script$3 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
9
10
 
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
-
41
11
  var ConfirmType;
42
12
  (function (ConfirmType) {
43
13
  ConfirmType["D"] = "d";
@@ -89,8 +59,8 @@ const ConfirmFooterButtons = [
89
59
  var script = defineComponent({
90
60
  name: 'OrConfirm',
91
61
  components: {
92
- OrOverlay: script$2,
93
- OrButton: script$1,
62
+ OrOverlay: script$1,
63
+ OrButton: script$2,
94
64
  OrInput: script$3
95
65
  },
96
66
  props: {
@@ -1,4 +1,4 @@
1
- import { s as script } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
1
+ import { s as script } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
2
2
  import { resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode, mergeProps, createVNode } from 'vue';
3
3
 
4
4
  const _hoisted_1 = ["disabled"];
@@ -1,7 +1,7 @@
1
1
  import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, createBlock, withCtx, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, defineComponent, ref, computed } from 'vue';
2
2
  import './OrIcon-d878b768.js';
3
- import { s as script$1 } from './OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
4
3
  import { s as script$2, I as IconSize } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
4
+ import { s as script$1 } from './OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
5
5
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
6
6
 
7
7
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue';
2
2
  import './OrHint-9592499e.js';
3
- import './OrIconButton-1581013c.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
4
  import './OrInlineInputBox-9d68ded1.js';
5
5
  import { s as script$4, I as InlineInputBoxSize } from './OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
6
6
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
7
7
  import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
8
8
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
9
- import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
9
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
10
10
 
11
11
  var InlineInputType;
12
12
  (function (InlineInputType) {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue';
2
2
  import './OrHint-9592499e.js';
3
- import './OrIconButton-1581013c.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
4
  import './OrInlineInputBox-9d68ded1.js';
5
5
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
6
6
  import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
7
7
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
8
- import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
8
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
9
9
  import { s as script$4 } from './OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
10
10
 
11
11
  const InlineTextareaRoot = [
@@ -3,14 +3,14 @@ import './OrHint-9592499e.js';
3
3
  import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
4
4
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
5
5
  import './OrIcon-d878b768.js';
6
- import './OrIconButton-1581013c.js';
6
+ import './OrIconButton-4bd33e3c.js';
7
7
  import './OrInputBox-eb54d73d.js';
8
8
  import { s as script$5, a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
9
9
  import './OrLabel-c6873e79.js';
10
10
  import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
11
11
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
12
12
  import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
13
- import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
13
+ import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
14
14
 
15
15
  var InputType;
16
16
  (function (InputType) {
@@ -0,0 +1,29 @@
1
+ import { s as script } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot } from 'vue';
3
+
4
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
5
+ const _component_OrPopover = resolveComponent("OrPopover");
6
+ return openBlock(), createElementBlock("div", mergeProps({
7
+ ref: "root"
8
+ }, _ctx.$attrs, {
9
+ class: _ctx.rootStyles
10
+ }), [createVNode(_component_OrPopover, {
11
+ ref: "popover",
12
+ variant: 'auto',
13
+ trigger: _ctx.trigger,
14
+ placement: _ctx.placement,
15
+ "full-width": false,
16
+ "disable-default-styles": false,
17
+ "onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
18
+ }, {
19
+ default: withCtx(() => [createElementVNode("div", {
20
+ class: normalizeClass(_ctx.bodyStyles),
21
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
22
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
23
+
24
+ _: 3 /* FORWARDED */
25
+ }, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
26
+ }
27
+
28
+ script.render = render;
29
+ script.__file = "src/components/or-menu-v3/OrMenu.vue";
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
3
- import './OrIconButton-1581013c.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
4
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
5
5
  import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
6
- import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
6
+ import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
7
7
 
8
8
  var ModalSize;
9
9
  (function (ModalSize) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, computed } from 'vue';
2
2
  import './OrIcon-d878b768.js';
3
- import './OrIconButton-1581013c.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
4
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
5
5
  import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
6
- import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
6
+ import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
7
7
 
8
8
  var NotificationVariant;
9
9
  (function (NotificationVariant) {
@@ -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 { u as useClassAttribute } from './useClassAttribute-00888f78.js';
5
4
  import { s as script$1 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
5
+ import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
6
6
  import { a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
7
7
 
8
8
  var script = defineComponent({
@@ -12,6 +12,11 @@ var script = defineComponent({
12
12
  },
13
13
  inheritAttrs: false,
14
14
  props: {
15
+ modelValue: {
16
+ type: String,
17
+ default: '',
18
+ required: false
19
+ },
15
20
  size: {
16
21
  type: String,
17
22
  default: InputBoxSize.M
@@ -36,13 +41,14 @@ var script = defineComponent({
36
41
  emits: ['search', 'input', 'keydown', 'keyup', 'focus', 'blur', 'clear'],
37
42
  expose: ['root', 'focus', 'clear'],
38
43
  setup(props, context) {
44
+ var _a;
39
45
  // Refs
40
46
  const root = ref();
41
47
  // Styles
42
48
  const classAttribute = useClassAttribute();
43
49
  const rootStyles = computed(() => ['or-search', classAttribute.value]);
44
50
  // State
45
- const localModelValue = ref('');
51
+ const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
46
52
  // Events
47
53
  debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
48
54
  debounce: props.debounce
@@ -9,7 +9,7 @@ import './OrInputBox-eb54d73d.js';
9
9
  import './OrLabel-c6873e79.js';
10
10
  import './OrMenuItem-4feaba6c.js';
11
11
  import './OrPopover-c462ce77.js';
12
- import { s as script$3 } from './OrTag.vue_vue_type_script_lang-dc6a4011.js';
12
+ import { s as script$3 } from './OrTag.vue_vue_type_script_lang-92d9fb12.js';
13
13
  import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-293d2de2.js';
14
14
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
15
15
  import { u as useOverflow } from './useOverflow-6dce216b.js';
@@ -1,40 +1,14 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
2
+ import { openBlock, createElementBlock, mergeProps, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
3
3
  import './OrIcon-d878b768.js';
4
- import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
4
+ import './OrMenu-f26e8e55.js';
5
5
  import './OrMenuItem-4feaba6c.js';
6
- import { s as script$2 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
6
+ import { s as script$1 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
7
7
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
8
- import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.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';
9
10
  import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
10
11
 
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
-
38
12
  const _hoisted_1 = ["selected"];
39
13
  function render(_ctx, _cache, $props, $setup, $data, $options) {
40
14
  return openBlock(), createElementBlock("div", mergeProps({
@@ -49,8 +23,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
49
23
  }), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */, _hoisted_1);
50
24
  }
51
25
 
52
- script$2.render = render;
53
- script$2.__file = "src/components/or-tab-v3/OrTab.vue";
26
+ script$1.render = render;
27
+ script$1.__file = "src/components/or-tab-v3/OrTab.vue";
54
28
 
55
29
  var TabsVariant;
56
30
  (function (TabsVariant) {
@@ -79,10 +53,10 @@ const TabsRootVariants = {
79
53
  var script = defineComponent({
80
54
  name: 'OrTabs',
81
55
  components: {
82
- OrIcon: script$3,
83
- OrMenu: script$1,
56
+ OrIcon: script$2,
57
+ OrMenu: script$3,
84
58
  OrMenuItem: script$4,
85
- OrTab: script$2
59
+ OrTab: script$1
86
60
  },
87
61
  inheritAttrs: false,
88
62
  props: {