@onereach/ui-components 2.68.1 → 2.69.0-beta.2073.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/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +24 -0
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +101 -0
- package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +3 -0
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +162 -0
- package/dist/bundled/v2/components/or-empty-state-v3/props.d.ts +4 -0
- package/dist/bundled/v2/components/or-empty-state-v3/styles.d.ts +10 -0
- package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +2 -0
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +24 -0
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +101 -0
- package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +3 -0
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +134 -0
- package/dist/bundled/v3/components/or-empty-state-v3/props.d.ts +4 -0
- package/dist/bundled/v3/components/or-empty-state-v3/styles.d.ts +10 -0
- package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +2 -0
- package/dist/bundled/v3/index.js +1 -1
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +24 -0
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +101 -0
- package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +3 -0
- package/dist/esm/v2/components/or-empty-state-v3/index.js +159 -0
- package/dist/esm/v2/components/or-empty-state-v3/props.d.ts +4 -0
- package/dist/esm/v2/components/or-empty-state-v3/styles.d.ts +10 -0
- package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +2 -0
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +24 -0
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +101 -0
- package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +3 -0
- package/dist/esm/v3/components/or-empty-state-v3/index.js +135 -0
- package/dist/esm/v3/components/or-empty-state-v3/props.d.ts +4 -0
- package/dist/esm/v3/components/or-empty-state-v3/styles.d.ts +10 -0
- package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +2 -0
- package/package.json +2 -3
- package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +87 -0
- package/src/components/or-empty-state-v3/OrEmptyState.vue +121 -0
- package/src/components/or-empty-state-v3/index.ts +3 -0
- package/src/components/or-empty-state-v3/props.ts +4 -0
- package/src/components/or-empty-state-v3/styles.ts +76 -0
- package/src/components/or-empty-state-v3/types.ts +3 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import OrEmptyState from './OrEmptyState.vue';
|
|
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, {
|
|
4
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
5
|
+
} | string[], {} & {}, {
|
|
6
|
+
[x: number]: string;
|
|
7
|
+
} | {}, true>)>;
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<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, {
|
|
10
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
11
|
+
} | string[], {} & {}, {
|
|
12
|
+
[x: number]: string;
|
|
13
|
+
} | {}, true>)>;
|
|
14
|
+
export declare const ImageIcon: StoryFn<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, {
|
|
15
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
16
|
+
} | string[], {} & {}, {
|
|
17
|
+
[x: number]: string;
|
|
18
|
+
} | {}, true>)>;
|
|
19
|
+
export declare const LargeSize: StoryFn<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, {
|
|
20
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
21
|
+
} | string[], {} & {}, {
|
|
22
|
+
[x: number]: string;
|
|
23
|
+
} | {}, true>)>;
|
|
24
|
+
export declare const ExtraContentInSlot: StoryFn<typeof OrEmptyState>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { EmptyStateSize } from '.';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {
|
|
4
|
+
rootClasses(): string[];
|
|
5
|
+
imageClasses(): string[];
|
|
6
|
+
headingClasses(): string[];
|
|
7
|
+
textClasses(): string[];
|
|
8
|
+
slotClasses(): string[];
|
|
9
|
+
}, {
|
|
10
|
+
/**
|
|
11
|
+
* Size of the component, affects font and icon size.
|
|
12
|
+
* Use Large if the component takes all screen space,
|
|
13
|
+
* and Medium if it is a part of the complex layout.
|
|
14
|
+
*/
|
|
15
|
+
size: {
|
|
16
|
+
type: PropType<EmptyStateSize>;
|
|
17
|
+
default: EmptyStateSize;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The heading of the empty state block.
|
|
21
|
+
*/
|
|
22
|
+
heading: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
28
|
+
*/
|
|
29
|
+
text: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Path to the image to display above the heading.
|
|
35
|
+
* Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
|
|
36
|
+
*/
|
|
37
|
+
imageSrc: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
42
|
+
/**
|
|
43
|
+
* Size of the component, affects font and icon size.
|
|
44
|
+
* Use Large if the component takes all screen space,
|
|
45
|
+
* and Medium if it is a part of the complex layout.
|
|
46
|
+
*/
|
|
47
|
+
size: {
|
|
48
|
+
type: PropType<EmptyStateSize>;
|
|
49
|
+
default: EmptyStateSize;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The heading of the empty state block.
|
|
53
|
+
*/
|
|
54
|
+
heading: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
60
|
+
*/
|
|
61
|
+
text: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Path to the image to display above the heading.
|
|
67
|
+
* Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
|
|
68
|
+
*/
|
|
69
|
+
imageSrc: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
74
|
+
size: EmptyStateSize;
|
|
75
|
+
heading: string;
|
|
76
|
+
text: string;
|
|
77
|
+
imageSrc: string;
|
|
78
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {
|
|
79
|
+
rootClasses(): string[];
|
|
80
|
+
imageClasses(): string[];
|
|
81
|
+
headingClasses(): string[];
|
|
82
|
+
textClasses(): string[];
|
|
83
|
+
slotClasses(): string[];
|
|
84
|
+
}, {}, {}, {}, {}, {
|
|
85
|
+
size: EmptyStateSize;
|
|
86
|
+
heading: string;
|
|
87
|
+
text: string;
|
|
88
|
+
imageSrc: string;
|
|
89
|
+
} & {}, {
|
|
90
|
+
size: EmptyStateSize;
|
|
91
|
+
heading: string;
|
|
92
|
+
text: string;
|
|
93
|
+
imageSrc: string;
|
|
94
|
+
}, true>);
|
|
95
|
+
/**
|
|
96
|
+
* The component to display when there is no content on a page,
|
|
97
|
+
* no records found or selected, or while the data is being loaded.
|
|
98
|
+
* Provides a hint to the user on what to do.
|
|
99
|
+
* Consists of text message, optional icon and optional loader.
|
|
100
|
+
*/
|
|
101
|
+
export default _default;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import '../../index-fa6eb4ca.js';
|
|
2
|
+
import { defineComponent } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
+
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
4
|
+
import 'vue';
|
|
5
|
+
|
|
6
|
+
var EmptyStateSize;
|
|
7
|
+
(function (EmptyStateSize) {
|
|
8
|
+
EmptyStateSize["L"] = "l";
|
|
9
|
+
EmptyStateSize["M"] = "m";
|
|
10
|
+
})(EmptyStateSize || (EmptyStateSize = {}));
|
|
11
|
+
|
|
12
|
+
const EmptyStateRoot = [
|
|
13
|
+
// Layout
|
|
14
|
+
'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
|
|
15
|
+
// Box
|
|
16
|
+
'w-full',
|
|
17
|
+
// Sizing
|
|
18
|
+
'gap-sm'];
|
|
19
|
+
const EmptyStateImage = [
|
|
20
|
+
// Sizing
|
|
21
|
+
'mb-sm'];
|
|
22
|
+
const EmptyStateImageSizes = {
|
|
23
|
+
[EmptyStateSize.L]: [
|
|
24
|
+
// Box
|
|
25
|
+
'h-3xl'],
|
|
26
|
+
[EmptyStateSize.M]: [
|
|
27
|
+
// Box
|
|
28
|
+
'h-2xl']
|
|
29
|
+
};
|
|
30
|
+
const EmptyStateHeading = [
|
|
31
|
+
// Theme
|
|
32
|
+
'text-on-background', 'dark:text-on-background-dark'];
|
|
33
|
+
const EmptyStateHeadingSizes = {
|
|
34
|
+
[EmptyStateSize.L]: [
|
|
35
|
+
// Typography
|
|
36
|
+
'text-headline-2', 'font-headline-2'],
|
|
37
|
+
[EmptyStateSize.M]: [
|
|
38
|
+
// Typography
|
|
39
|
+
'text-headline-4', 'font-headline-4']
|
|
40
|
+
};
|
|
41
|
+
const EmptyStateText = ['text-center',
|
|
42
|
+
// Theme
|
|
43
|
+
'text-outline', 'dark:text-outline-dark'];
|
|
44
|
+
const EmptyStateContent = EmptyStateText;
|
|
45
|
+
const EmptyStateTextSizes = {
|
|
46
|
+
[EmptyStateSize.L]: [
|
|
47
|
+
// Typography
|
|
48
|
+
'text-body-2-regular', 'font-body-2-regular'],
|
|
49
|
+
[EmptyStateSize.M]: [
|
|
50
|
+
// Typography
|
|
51
|
+
'text-caption-regular', 'font-caption-regular']
|
|
52
|
+
};
|
|
53
|
+
const EmptyStateContentSizes = EmptyStateTextSizes;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The component to display when there is no content on a page,
|
|
57
|
+
* no records found or selected, or while the data is being loaded.
|
|
58
|
+
* Provides a hint to the user on what to do.
|
|
59
|
+
* Consists of text message, optional icon and optional loader.
|
|
60
|
+
*/
|
|
61
|
+
var script = defineComponent({
|
|
62
|
+
name: 'OrEmptyState',
|
|
63
|
+
props: {
|
|
64
|
+
/**
|
|
65
|
+
* Size of the component, affects font and icon size.
|
|
66
|
+
* Use Large if the component takes all screen space,
|
|
67
|
+
* and Medium if it is a part of the complex layout.
|
|
68
|
+
*/
|
|
69
|
+
size: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: EmptyStateSize.M
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* The heading of the empty state block.
|
|
75
|
+
*/
|
|
76
|
+
heading: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: ''
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
82
|
+
*/
|
|
83
|
+
text: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: ''
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* Path to the image to display above the heading.
|
|
89
|
+
* Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
|
|
90
|
+
*/
|
|
91
|
+
imageSrc: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: undefined
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
computed: {
|
|
97
|
+
rootClasses() {
|
|
98
|
+
return ['or-empty-state', ...EmptyStateRoot];
|
|
99
|
+
},
|
|
100
|
+
imageClasses() {
|
|
101
|
+
return ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[this.size]];
|
|
102
|
+
},
|
|
103
|
+
headingClasses() {
|
|
104
|
+
return ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[this.size]];
|
|
105
|
+
},
|
|
106
|
+
textClasses() {
|
|
107
|
+
return ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[this.size]];
|
|
108
|
+
},
|
|
109
|
+
slotClasses() {
|
|
110
|
+
return ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[this.size]];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/* script */
|
|
116
|
+
const __vue_script__ = script;
|
|
117
|
+
|
|
118
|
+
/* template */
|
|
119
|
+
var __vue_render__ = function () {
|
|
120
|
+
var _vm = this;
|
|
121
|
+
var _h = _vm.$createElement;
|
|
122
|
+
var _c = _vm._self._c || _h;
|
|
123
|
+
return _c('div', {
|
|
124
|
+
staticClass: "static",
|
|
125
|
+
class: _vm.rootClasses
|
|
126
|
+
}, [_vm.imageSrc ? _c('img', {
|
|
127
|
+
class: _vm.imageClasses,
|
|
128
|
+
attrs: {
|
|
129
|
+
"src": _vm.imageSrc,
|
|
130
|
+
"alt": ""
|
|
131
|
+
}
|
|
132
|
+
}) : _vm._e(), _vm._v(" "), _c('div', {
|
|
133
|
+
class: _vm.headingClasses
|
|
134
|
+
}, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.$slots.default ? _c('div', {
|
|
135
|
+
class: _vm.slotClasses
|
|
136
|
+
}, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
137
|
+
class: _vm.textClasses
|
|
138
|
+
}, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])]);
|
|
139
|
+
};
|
|
140
|
+
var __vue_staticRenderFns__ = [];
|
|
141
|
+
|
|
142
|
+
/* style */
|
|
143
|
+
const __vue_inject_styles__ = undefined;
|
|
144
|
+
/* scoped */
|
|
145
|
+
const __vue_scope_id__ = "data-v-4ca51b1c";
|
|
146
|
+
/* module identifier */
|
|
147
|
+
const __vue_module_identifier__ = undefined;
|
|
148
|
+
/* functional template */
|
|
149
|
+
const __vue_is_functional_template__ = false;
|
|
150
|
+
/* style inject */
|
|
151
|
+
|
|
152
|
+
/* style inject SSR */
|
|
153
|
+
|
|
154
|
+
/* style inject shadow dom */
|
|
155
|
+
|
|
156
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
157
|
+
render: __vue_render__,
|
|
158
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
159
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
160
|
+
var __vue_component__$1 = __vue_component__;
|
|
161
|
+
|
|
162
|
+
export { EmptyStateSize, __vue_component__$1 as OrEmptyStateV3 };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EmptyStateSize } from './props';
|
|
2
|
+
export declare const EmptyStateRoot: string[];
|
|
3
|
+
export declare const EmptyStateImage: string[];
|
|
4
|
+
export declare const EmptyStateImageSizes: Record<EmptyStateSize, string[]>;
|
|
5
|
+
export declare const EmptyStateHeading: string[];
|
|
6
|
+
export declare const EmptyStateHeadingSizes: Record<EmptyStateSize, string[]>;
|
|
7
|
+
export declare const EmptyStateText: string[];
|
|
8
|
+
export declare const EmptyStateContent: string[];
|
|
9
|
+
export declare const EmptyStateTextSizes: Record<EmptyStateSize, string[]>;
|
|
10
|
+
export declare const EmptyStateContentSizes: Record<EmptyStateSize, string[]>;
|