@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,198 +0,0 @@
1
- import { defineComponent, ref, computed, watch } from 'vue-demi';
2
- import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
- import '@vueuse/core';
4
- import { s as script$1 } from './OrCard-fd92f7c8.js';
5
- import { s as script$2 } from './OrIconButton-1eebcafc.js';
6
- import { s as script$3 } from './OrInput-41691fb3.js';
7
- import { s as script$4 } from './OrSortHeader-fe1a9cf8.js';
8
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, createVNode, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
9
-
10
- var CardCollectionView;
11
- (function (CardCollectionView) {
12
- CardCollectionView["Grid"] = "grid";
13
- CardCollectionView["List"] = "list";
14
- })(CardCollectionView || (CardCollectionView = {}));
15
-
16
- const CardCollectionRoot = [
17
- // Layout
18
- 'layout-column',
19
- // Spacing
20
- 'gap-md'];
21
- const CardCollectionToolbar = [
22
- // Layout
23
- 'layout-row justify-between',
24
- // Typography
25
- 'typography-body-2-regular',
26
- // Theme
27
- 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
28
- const CardCollectionToolbarPanel = [
29
- // Layout
30
- 'layout-row',
31
- // Spacing
32
- 'gap-sm+'];
33
- const CardCollectionContent = [
34
- // Layout
35
- 'grid',
36
- // Spacing
37
- 'gap-sm md:gap-md'];
38
- const CardCollectionContentViews = {
39
- 'grid': [
40
- // Layout
41
- 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
42
- 'list': []
43
- };
44
-
45
- var script = defineComponent({
46
- name: 'OrCardCollection',
47
- components: {
48
- OrCard: script$1,
49
- OrIconButton: script$2,
50
- OrInput: script$3,
51
- OrSortHeader: script$4
52
- },
53
- inheritAttrs: false,
54
- props: {
55
- items: {
56
- type: Array,
57
- default: []
58
- },
59
- view: {
60
- type: String,
61
- default: CardCollectionView.Grid
62
- },
63
- sort: {
64
- type: Object,
65
- default: undefined
66
- },
67
- sortHeaders: {
68
- type: Array,
69
- default: undefined
70
- },
71
- search: {
72
- type: String,
73
- default: undefined
74
- }
75
- },
76
- emits: ['viewChange', 'sortChange', 'searchChange'],
77
- expose: ['root'],
78
- setup(props, context) {
79
- // Refs
80
- const root = ref();
81
- // Styles
82
- const classAttribute = useClassAttribute();
83
- const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
84
- const toolbarStyles = computed(() => [...CardCollectionToolbar]);
85
- const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
86
- const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
87
- // State
88
- const proxyView = ref(props.view);
89
- const proxySort = ref(props.sort);
90
- const proxySearch = ref(props.search);
91
- // Methods
92
- function switchToGridView() {
93
- proxyView.value = CardCollectionView.Grid;
94
- }
95
- function switchToListView() {
96
- proxyView.value = CardCollectionView.List;
97
- }
98
- // Effects
99
- watch(() => props.view, value => {
100
- proxyView.value = value;
101
- });
102
- watch(proxyView, value => {
103
- context.emit('viewChange', value);
104
- });
105
- watch(() => props.sort, value => {
106
- proxySort.value = value;
107
- });
108
- watch(proxySort, value => {
109
- context.emit('sortChange', value);
110
- });
111
- watch(() => props.search, value => {
112
- proxySearch.value = value;
113
- });
114
- watch(proxySearch, value => {
115
- context.emit('searchChange', value);
116
- });
117
- return {
118
- root,
119
- rootStyles,
120
- toolbarStyles,
121
- toolbarPanelStyles,
122
- contentStyles,
123
- proxyView,
124
- proxySort,
125
- proxySearch,
126
- switchToGridView,
127
- switchToListView
128
- };
129
- }
130
- });
131
-
132
- function render(_ctx, _cache, $props, $setup, $data, $options) {
133
- const _component_OrSortHeader = resolveComponent("OrSortHeader");
134
- const _component_OrInput = resolveComponent("OrInput");
135
- const _component_OrIconButton = resolveComponent("OrIconButton");
136
- const _component_OrCard = resolveComponent("OrCard");
137
- return openBlock(), createElementBlock("div", mergeProps({
138
- ref: "root"
139
- }, _ctx.$attrs, {
140
- class: _ctx.rootStyles
141
- }), [createElementVNode("div", {
142
- class: normalizeClass(_ctx.toolbarStyles)
143
- }, [createElementVNode("div", {
144
- class: normalizeClass(_ctx.toolbarPanelStyles)
145
- }, [_ctx.sortHeaders ? (openBlock(true), createElementBlock(Fragment, {
146
- key: 0
147
- }, renderList(_ctx.sortHeaders, header => {
148
- return openBlock(), createBlock(_component_OrSortHeader, {
149
- key: header.value,
150
- modelValue: _ctx.proxySort,
151
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxySort = $event),
152
- "input-value": header.value
153
- }, {
154
- default: withCtx(() => [createTextVNode(toDisplayString(header.label), 1 /* TEXT */)]),
155
-
156
- _: 2 /* DYNAMIC */
157
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "input-value"]);
158
- }), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
159
- class: normalizeClass(_ctx.toolbarPanelStyles)
160
- }, [createVNode(_component_OrInput, {
161
- modelValue: _ctx.proxySearch,
162
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.proxySearch = $event),
163
- type: 'search',
164
- placeholder: 'Search',
165
- size: 's'
166
- }, null, 8 /* PROPS */, ["modelValue"]), createVNode(_component_OrIconButton, {
167
- icon: 'grid_view',
168
- onClick: _cache[2] || (_cache[2] = $event => _ctx.switchToGridView())
169
- }), createVNode(_component_OrIconButton, {
170
- icon: 'view_list',
171
- onClick: _cache[3] || (_cache[3] = $event => _ctx.switchToListView())
172
- }), renderSlot(_ctx.$slots, "addon")], 2 /* CLASS */)], 2 /* CLASS */), createElementVNode("div", {
173
- class: normalizeClass(_ctx.contentStyles)
174
- }, [_ctx.proxyView === 'grid' ? (openBlock(true), createElementBlock(Fragment, {
175
- key: 0
176
- }, renderList(_ctx.items, item => {
177
- return openBlock(), createBlock(_component_OrCard, {
178
- key: item.id
179
- }, {
180
- default: withCtx(() => [renderSlot(_ctx.$slots, "gridItem", normalizeProps(guardReactiveProps(item)))]),
181
- _: 2 /* DYNAMIC */
182
- }, 1024 /* DYNAMIC_SLOTS */);
183
- }), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true), _ctx.proxyView === 'list' ? (openBlock(true), createElementBlock(Fragment, {
184
- key: 1
185
- }, renderList(_ctx.items, item => {
186
- return openBlock(), createBlock(_component_OrCard, {
187
- key: item.id
188
- }, {
189
- default: withCtx(() => [renderSlot(_ctx.$slots, "listItem", normalizeProps(guardReactiveProps(item)))]),
190
- _: 2 /* DYNAMIC */
191
- }, 1024 /* DYNAMIC_SLOTS */);
192
- }), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */)], 16 /* FULL_PROPS */);
193
- }
194
-
195
- script.render = render;
196
- script.__file = "src/components/or-card-collection-v3/OrCardCollection.vue";
197
-
198
- export { CardCollectionView as C, script as s };