@onereach/ui-components 2.68.0 → 2.68.1-beta.2065.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.
- package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
- package/dist/bundled/v2/{OrCardCollection-dac9fd1e.js → OrCardCollection-0eaf7489.js} +78 -17
- package/dist/bundled/v2/components/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-7a07be47.js → OrCardCollection.vue_vue_type_script_lang-26d9a7c8.js} +40 -18
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -3
- package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/bundled/v3/index.js +197 -197
- package/dist/esm/v2/{OrCardCollection-e46b220e.js → OrCardCollection-7bf35252.js} +76 -16
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -3
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrCardCollection-5924d035.js → OrCardCollection-9682c6ef.js} +49 -28
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -3
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +2 -3
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +96 -5
- package/src/components/or-card-collection-v3/OrCardCollection.vue +21 -33
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +39 -0
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +40 -0
- package/src/components/or-card-collection-v3/types.ts +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, mergeProps,
|
|
2
|
-
import { s as script$1 } from './OrCard.vue_vue_type_script_lang-165de137.js';
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, withModifiers, renderSlot, createBlock, normalizeClass, createCommentVNode, defineComponent, computed, Fragment, renderList, ref, watch } from 'vue';
|
|
3
2
|
import './OrIconButton-4bd33e3c.js';
|
|
4
3
|
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
|
|
5
4
|
import './OrInput-e97211bb.js';
|
|
@@ -7,19 +6,8 @@ import { s as script$4 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
|
|
|
7
6
|
import { s as script$2 } from './OrSortHeader.vue_vue_type_script_lang-75115125.js';
|
|
8
7
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
9
8
|
|
|
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
9
|
const _hoisted_1 = ["activated"];
|
|
22
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23
11
|
const _component_OrIcon = resolveComponent("OrIcon");
|
|
24
12
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
25
13
|
ref: "root"
|
|
@@ -36,7 +24,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36
24
|
}, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
|
|
37
25
|
}
|
|
38
26
|
|
|
39
|
-
script$2.render = render;
|
|
27
|
+
script$2.render = render$1;
|
|
40
28
|
script$2.__file = "src/components/or-sort-header-v3/OrSortHeader.vue";
|
|
41
29
|
|
|
42
30
|
var CardCollectionView;
|
|
@@ -74,10 +62,46 @@ const CardCollectionContentViews = {
|
|
|
74
62
|
'list': []
|
|
75
63
|
};
|
|
76
64
|
|
|
65
|
+
var script$1 = defineComponent({
|
|
66
|
+
name: 'OrCardCollectionView',
|
|
67
|
+
props: {
|
|
68
|
+
items: {
|
|
69
|
+
type: Array,
|
|
70
|
+
default: []
|
|
71
|
+
},
|
|
72
|
+
mode: {
|
|
73
|
+
type: String,
|
|
74
|
+
required: true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
setup(props) {
|
|
78
|
+
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
|
|
79
|
+
return {
|
|
80
|
+
contentStyles
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
86
|
+
return openBlock(), createElementBlock("div", {
|
|
87
|
+
class: normalizeClass(_ctx.contentStyles)
|
|
88
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
|
|
89
|
+
return renderSlot(_ctx.$slots, "item", mergeProps({
|
|
90
|
+
key: item.key || index
|
|
91
|
+
}, {
|
|
92
|
+
item,
|
|
93
|
+
mode: _ctx.mode
|
|
94
|
+
}));
|
|
95
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
script$1.render = render;
|
|
99
|
+
script$1.__file = "src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue";
|
|
100
|
+
|
|
77
101
|
var script = defineComponent({
|
|
78
102
|
name: 'OrCardCollection',
|
|
79
103
|
components: {
|
|
80
|
-
|
|
104
|
+
OrCardCollectionView: script$1,
|
|
81
105
|
OrIconButton: script$3,
|
|
82
106
|
OrInput: script$4,
|
|
83
107
|
OrSortHeader: script$2
|
|
@@ -115,7 +139,6 @@ var script = defineComponent({
|
|
|
115
139
|
const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
|
|
116
140
|
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
117
141
|
const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
|
|
118
|
-
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
|
|
119
142
|
// State
|
|
120
143
|
const proxyView = ref(props.view);
|
|
121
144
|
const proxySort = ref(props.sort);
|
|
@@ -151,7 +174,6 @@ var script = defineComponent({
|
|
|
151
174
|
rootStyles,
|
|
152
175
|
toolbarStyles,
|
|
153
176
|
toolbarPanelStyles,
|
|
154
|
-
contentStyles,
|
|
155
177
|
proxyView,
|
|
156
178
|
proxySort,
|
|
157
179
|
proxySearch,
|
|
@@ -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-
|
|
11
|
+
export { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection.vue_vue_type_script_lang-26d9a7c8.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';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import OrCardCollection from './OrCardCollection.vue';
|
|
2
3
|
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
4
|
[x: string]: ((...args: any[]) => any) | null;
|
|
4
5
|
} | string[], {} & {}, {
|
|
@@ -15,3 +16,5 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
|
|
|
15
16
|
} | string[], {} & {}, {
|
|
16
17
|
[x: number]: string;
|
|
17
18
|
} | {}, true>)>;
|
|
19
|
+
export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
|
|
20
|
+
export declare const WithLink: StoryFn<typeof OrCardCollection>;
|
|
@@ -7,7 +7,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
7
7
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
8
8
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
9
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
10
|
-
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
11
10
|
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
12
11
|
proxySort: import("@vue/composition-api").Ref<{
|
|
13
12
|
column: string;
|
|
@@ -71,7 +70,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
71
70
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
72
71
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
73
72
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
74
|
-
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
75
73
|
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
76
74
|
proxySort: import("@vue/composition-api").Ref<{
|
|
77
75
|
column: string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { CardCollectionItem } from './types';
|
|
3
|
+
import { CardCollectionView } from './props';
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
7
|
+
items: {
|
|
8
|
+
type: PropType<CardCollectionItem[]>;
|
|
9
|
+
default: CardCollectionItem[];
|
|
10
|
+
};
|
|
11
|
+
mode: {
|
|
12
|
+
type: PropType<CardCollectionView>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
16
|
+
items: {
|
|
17
|
+
type: PropType<CardCollectionItem[]>;
|
|
18
|
+
default: CardCollectionItem[];
|
|
19
|
+
};
|
|
20
|
+
mode: {
|
|
21
|
+
type: PropType<CardCollectionView>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
25
|
+
items: CardCollectionItem[];
|
|
26
|
+
mode: CardCollectionView;
|
|
27
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
28
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
29
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
30
|
+
items: CardCollectionItem[];
|
|
31
|
+
mode: CardCollectionView;
|
|
32
|
+
} & {}, {
|
|
33
|
+
items: CardCollectionItem[];
|
|
34
|
+
}, true>);
|
|
35
|
+
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection.vue_vue_type_script_lang-
|
|
1
|
+
export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection.vue_vue_type_script_lang-26d9a7c8.js';
|
|
2
2
|
import 'vue';
|
|
3
|
-
import '../../OrCard.vue_vue_type_script_lang-165de137.js';
|
|
4
|
-
import '../../useClassAttribute-00888f78.js';
|
|
5
3
|
import '../../OrIconButton-4bd33e3c.js';
|
|
6
4
|
import '../../OrIconButton.vue_vue_type_script_lang-641f6e06.js';
|
|
7
5
|
import '../../OrIcon-d878b768.js';
|
|
8
6
|
import '../../OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
7
|
+
import '../../useClassAttribute-00888f78.js';
|
|
9
8
|
import '../../OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
|
|
10
9
|
import '@vueuse/core';
|
|
11
10
|
import '../../OrPopover-c462ce77.js';
|