@onereach/ui-components 2.68.0-beta.2002.0 → 2.68.0-beta.2003.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/{OrCode-0cd991a1.js → OrCode-edc7a1f5.js} +114 -1
- package/dist/bundled/v2/components/index.d.ts +0 -1
- package/dist/bundled/v2/components/index.js +1 -4
- package/dist/bundled/v2/components/or-code/index.js +1 -2
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
- package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +131 -0
- package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +2 -0
- package/dist/bundled/v2/index.js +2 -5
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-6c5f94a6.js → OrCode.vue_vue_type_script_lang-ef5e7f04.js} +114 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2fdbd2f2.js → OrTabs.vue_vue_type_script_lang-ca57f9d9.js} +36 -10
- package/dist/bundled/v3/components/index.d.ts +0 -1
- package/dist/bundled/v3/components/index.js +2 -6
- package/dist/bundled/v3/components/or-code/index.js +1 -2
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
- package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +111 -0
- package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +2 -0
- package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
- package/dist/bundled/v3/index.js +178 -273
- package/dist/esm/v2/components/index.d.ts +0 -1
- package/dist/esm/v2/components/index.js +0 -19
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
- package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-empty-state-v3/index.js +129 -0
- package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +2 -0
- package/dist/esm/v2/index.js +0 -19
- package/dist/esm/v3/components/index.d.ts +0 -1
- package/dist/esm/v3/components/index.js +0 -19
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
- package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-empty-state-v3/index.js +111 -0
- package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +2 -0
- package/dist/esm/v3/index.js +0 -19
- package/package.json +1 -19
- package/src/components/index.ts +0 -1
- package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +203 -0
- package/src/components/or-empty-state-v3/OrEmptyState.vue +101 -0
- package/src/components/or-empty-state-v3/index.ts +2 -0
- package/src/components/or-empty-state-v3/types.ts +3 -0
- package/dist/bundled/v2/OrRichTextEditor-898d67d5.js +0 -36828
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +0 -24
- package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/OrMenu-08aa60de.js +0 -29
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-2e607f79.js +0 -36708
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +0 -25
- package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/esm/v2/OrRichTextEditor-6bc37dc4.js +0 -516
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -38
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v3/OrRichTextEditor-a5d38e89.js +0 -486
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -37
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -62
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -520
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -65
|
@@ -95,7 +95,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-0665
|
|
|
95
95
|
export { _ as OrTooltip } from '../OrTooltip-614b016d.js';
|
|
96
96
|
export { _ as OrTooltipContent } from '../OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
|
|
97
97
|
export { _ as OrTooltipV3 } from '../OrTooltip-3454c2e6.js';
|
|
98
|
-
export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-6bc37dc4.js';
|
|
99
98
|
import 'vue-demi';
|
|
100
99
|
import 'lodash';
|
|
101
100
|
import '../normalize-component-6e8e3d80.js';
|
|
@@ -125,21 +124,3 @@ import '../dropdown-open-0d314aa4.js';
|
|
|
125
124
|
import '../useOverflow-ac506c65.js';
|
|
126
125
|
import 'portal-vue/dist/portal-vue.esm.js';
|
|
127
126
|
import 'portal-vue';
|
|
128
|
-
import 'prosemirror-markdown';
|
|
129
|
-
import 'prosemirror-model';
|
|
130
|
-
import 'marked';
|
|
131
|
-
import '@tiptap/core';
|
|
132
|
-
import '@tiptap/starter-kit';
|
|
133
|
-
import '@tiptap/extension-underline';
|
|
134
|
-
import '@tiptap/extension-link';
|
|
135
|
-
import '@tiptap/extension-highlight';
|
|
136
|
-
import '@tiptap/extension-heading';
|
|
137
|
-
import '@tiptap/extension-placeholder';
|
|
138
|
-
import '@tiptap/extension-paragraph';
|
|
139
|
-
import '@tiptap/extension-bullet-list';
|
|
140
|
-
import '@tiptap/extension-list-item';
|
|
141
|
-
import '@tiptap/extension-ordered-list';
|
|
142
|
-
import '@tiptap/extension-strike';
|
|
143
|
-
import '@tiptap/extension-italic';
|
|
144
|
-
import '@tiptap/extension-hard-break';
|
|
145
|
-
import '@tiptap/extension-bold';
|
|
@@ -0,0 +1,39 @@
|
|
|
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 LinearLoader: 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 CircularLoader: 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 MaterialIcon: 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, {
|
|
25
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
26
|
+
} | string[], {} & {}, {
|
|
27
|
+
[x: number]: string;
|
|
28
|
+
} | {}, true>)>;
|
|
29
|
+
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, {
|
|
30
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
31
|
+
} | string[], {} & {}, {
|
|
32
|
+
[x: number]: string;
|
|
33
|
+
} | {}, true>)>;
|
|
34
|
+
export declare const ExtraContentInSlot: StoryFn<typeof OrEmptyState>;
|
|
35
|
+
export declare const Containers: 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, {
|
|
36
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
37
|
+
} | string[], {} & {}, {
|
|
38
|
+
[x: number]: string;
|
|
39
|
+
} | {}, true>)>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { LoaderVariant } from '../or-loader-v3';
|
|
2
|
+
import { PropType } from 'vue-demi';
|
|
3
|
+
import { EmptyStateLoader } from '.';
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {
|
|
5
|
+
loaderVariant(): LoaderVariant | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
/**
|
|
8
|
+
* The heading of the empty state block.
|
|
9
|
+
*/
|
|
10
|
+
heading: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
16
|
+
*/
|
|
17
|
+
text: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Material icon name to display above the heading.
|
|
23
|
+
*/
|
|
24
|
+
icon: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Path to the image to display above the heading.
|
|
30
|
+
* Image height is scaled to 48px, width is undefined to preserve aspect ratio.
|
|
31
|
+
*/
|
|
32
|
+
iconSrc: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* If provided, then loader is being displayed.
|
|
38
|
+
* Accepts booleans and OrLoader::variant values. `true` falls back to 'linear'.
|
|
39
|
+
*/
|
|
40
|
+
loader: {
|
|
41
|
+
type: PropType<EmptyStateLoader>;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
45
|
+
/**
|
|
46
|
+
* The heading of the empty state block.
|
|
47
|
+
*/
|
|
48
|
+
heading: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
54
|
+
*/
|
|
55
|
+
text: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Material icon name to display above the heading.
|
|
61
|
+
*/
|
|
62
|
+
icon: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Path to the image to display above the heading.
|
|
68
|
+
* Image height is scaled to 48px, width is undefined to preserve aspect ratio.
|
|
69
|
+
*/
|
|
70
|
+
iconSrc: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* If provided, then loader is being displayed.
|
|
76
|
+
* Accepts booleans and OrLoader::variant values. `true` falls back to 'linear'.
|
|
77
|
+
*/
|
|
78
|
+
loader: {
|
|
79
|
+
type: PropType<EmptyStateLoader>;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
83
|
+
heading: string;
|
|
84
|
+
text: string;
|
|
85
|
+
icon: string;
|
|
86
|
+
iconSrc: string;
|
|
87
|
+
loader: EmptyStateLoader;
|
|
88
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {
|
|
89
|
+
loaderVariant(): LoaderVariant | undefined;
|
|
90
|
+
}, {}, {}, {}, {}, {
|
|
91
|
+
heading: string;
|
|
92
|
+
text: string;
|
|
93
|
+
icon: string;
|
|
94
|
+
iconSrc: string;
|
|
95
|
+
loader: EmptyStateLoader;
|
|
96
|
+
} & {}, {
|
|
97
|
+
heading: string;
|
|
98
|
+
text: string;
|
|
99
|
+
icon: string;
|
|
100
|
+
iconSrc: string;
|
|
101
|
+
loader: EmptyStateLoader;
|
|
102
|
+
}, true>);
|
|
103
|
+
/**
|
|
104
|
+
* The component to display when there is no content on a page,
|
|
105
|
+
* no records found or selected, or while the data is being loaded.
|
|
106
|
+
* Provides a hint to the user on what to do.
|
|
107
|
+
* Consists of text message, optional icon and optional loader.
|
|
108
|
+
*/
|
|
109
|
+
export default _default;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { _ as __vue_component__$2, L as LoaderVariant } from '../../OrLoader-bd088836.js';
|
|
2
|
+
import { _ as __vue_component__$1 } from '../../OrIcon-05689298.js';
|
|
3
|
+
import { defineComponent } from 'vue-demi';
|
|
4
|
+
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
5
|
+
import '../../useClassAttribute-47fdb016.js';
|
|
6
|
+
import '@vueuse/core';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The component to display when there is no content on a page,
|
|
10
|
+
* no records found or selected, or while the data is being loaded.
|
|
11
|
+
* Provides a hint to the user on what to do.
|
|
12
|
+
* Consists of text message, optional icon and optional loader.
|
|
13
|
+
*/
|
|
14
|
+
var script = defineComponent({
|
|
15
|
+
name: 'OrEmptyState',
|
|
16
|
+
components: {
|
|
17
|
+
OrIcon: __vue_component__$1,
|
|
18
|
+
OrLoader: __vue_component__$2
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
/**
|
|
22
|
+
* The heading of the empty state block.
|
|
23
|
+
*/
|
|
24
|
+
heading: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ''
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
30
|
+
*/
|
|
31
|
+
text: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ''
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Material icon name to display above the heading.
|
|
37
|
+
*/
|
|
38
|
+
icon: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: undefined
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* Path to the image to display above the heading.
|
|
44
|
+
* Image height is scaled to 48px, width is undefined to preserve aspect ratio.
|
|
45
|
+
*/
|
|
46
|
+
iconSrc: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: undefined
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* If provided, then loader is being displayed.
|
|
52
|
+
* Accepts booleans and OrLoader::variant values. `true` falls back to 'linear'.
|
|
53
|
+
*/
|
|
54
|
+
loader: {
|
|
55
|
+
type: [String, Boolean],
|
|
56
|
+
default: false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
computed: {
|
|
60
|
+
loaderVariant() {
|
|
61
|
+
if (typeof this.loader === 'string') {
|
|
62
|
+
return this.loader;
|
|
63
|
+
} else if (this.loader === true) {
|
|
64
|
+
return LoaderVariant.Linear;
|
|
65
|
+
} else {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/* script */
|
|
73
|
+
const __vue_script__ = script;
|
|
74
|
+
|
|
75
|
+
/* template */
|
|
76
|
+
var __vue_render__ = function () {
|
|
77
|
+
var _vm = this;
|
|
78
|
+
var _h = _vm.$createElement;
|
|
79
|
+
var _c = _vm._self._c || _h;
|
|
80
|
+
return _c('div', {
|
|
81
|
+
staticClass: "empty-state w-full grow flex flex-col justify-center items-center gap-sm"
|
|
82
|
+
}, [_vm.icon ? _c('OrIcon', {
|
|
83
|
+
staticClass: "empty-state_icon w-2xl h-2xl text-[48px] text-on-surface-variant dark:text-on-surface-variant-dark mb-sm",
|
|
84
|
+
attrs: {
|
|
85
|
+
"icon": _vm.icon,
|
|
86
|
+
"size": "inherit"
|
|
87
|
+
}
|
|
88
|
+
}) : _vm._e(), _vm._v(" "), _vm.iconSrc ? _c('img', {
|
|
89
|
+
staticClass: "empty-state_image h-2xl mb-sm",
|
|
90
|
+
attrs: {
|
|
91
|
+
"src": _vm.iconSrc,
|
|
92
|
+
"alt": ""
|
|
93
|
+
}
|
|
94
|
+
}) : _vm._e(), _vm._v(" "), _c('div', {
|
|
95
|
+
staticClass: "empty-state_heading text-on-background dark:text-on-background-dark text-headline-4 font-headline-4"
|
|
96
|
+
}, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.loader ? _c('div', {
|
|
97
|
+
staticClass: "empty-state_loader max-w-[432px] w-2/5 flex justify-center my-sm"
|
|
98
|
+
}, [_c('OrLoader', {
|
|
99
|
+
attrs: {
|
|
100
|
+
"variant": _vm.loaderVariant
|
|
101
|
+
}
|
|
102
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.$slots.default ? _c('div', {
|
|
103
|
+
staticClass: "empty-state_content text-center text-outline dark:text-outline-dark text-caption-regular font-caption-regular"
|
|
104
|
+
}, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
105
|
+
staticClass: "empty-state_content text-center text-outline dark:text-outline-dark text-caption-regular font-caption-regular"
|
|
106
|
+
}, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])], 1);
|
|
107
|
+
};
|
|
108
|
+
var __vue_staticRenderFns__ = [];
|
|
109
|
+
|
|
110
|
+
/* style */
|
|
111
|
+
const __vue_inject_styles__ = undefined;
|
|
112
|
+
/* scoped */
|
|
113
|
+
const __vue_scope_id__ = "data-v-58e2742a";
|
|
114
|
+
/* module identifier */
|
|
115
|
+
const __vue_module_identifier__ = undefined;
|
|
116
|
+
/* functional template */
|
|
117
|
+
const __vue_is_functional_template__ = false;
|
|
118
|
+
/* style inject */
|
|
119
|
+
|
|
120
|
+
/* style inject SSR */
|
|
121
|
+
|
|
122
|
+
/* style inject shadow dom */
|
|
123
|
+
|
|
124
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
125
|
+
render: __vue_render__,
|
|
126
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
127
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
128
|
+
|
|
129
|
+
export { __vue_component__ as OrEmptyStateV3 };
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -95,7 +95,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-06654
|
|
|
95
95
|
export { _ as OrTooltip } from './OrTooltip-614b016d.js';
|
|
96
96
|
export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
|
|
97
97
|
export { _ as OrTooltipV3 } from './OrTooltip-3454c2e6.js';
|
|
98
|
-
export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-6bc37dc4.js';
|
|
99
98
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
100
99
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
101
100
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
@@ -125,24 +124,6 @@ import 'sortablejs';
|
|
|
125
124
|
import '@vueuse/integrations/useFocusTrap';
|
|
126
125
|
import 'portal-vue/dist/portal-vue.esm.js';
|
|
127
126
|
import 'portal-vue';
|
|
128
|
-
import 'prosemirror-markdown';
|
|
129
|
-
import 'prosemirror-model';
|
|
130
|
-
import 'marked';
|
|
131
|
-
import '@tiptap/core';
|
|
132
|
-
import '@tiptap/starter-kit';
|
|
133
|
-
import '@tiptap/extension-underline';
|
|
134
|
-
import '@tiptap/extension-link';
|
|
135
|
-
import '@tiptap/extension-highlight';
|
|
136
|
-
import '@tiptap/extension-heading';
|
|
137
|
-
import '@tiptap/extension-placeholder';
|
|
138
|
-
import '@tiptap/extension-paragraph';
|
|
139
|
-
import '@tiptap/extension-bullet-list';
|
|
140
|
-
import '@tiptap/extension-list-item';
|
|
141
|
-
import '@tiptap/extension-ordered-list';
|
|
142
|
-
import '@tiptap/extension-strike';
|
|
143
|
-
import '@tiptap/extension-italic';
|
|
144
|
-
import '@tiptap/extension-hard-break';
|
|
145
|
-
import '@tiptap/extension-bold';
|
|
146
127
|
|
|
147
128
|
function getAbbreviation(text, limit) {
|
|
148
129
|
var _a;
|
|
@@ -89,7 +89,6 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../types-
|
|
|
89
89
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-0665462d.js';
|
|
90
90
|
export { s as OrTooltip, a as OrTooltipContent } from '../OrTooltip-78cd7f6b.js';
|
|
91
91
|
export { s as OrTooltipV3 } from '../OrTooltip-1500a1cd.js';
|
|
92
|
-
export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-a5d38e89.js';
|
|
93
92
|
import 'vue-demi';
|
|
94
93
|
import 'lodash';
|
|
95
94
|
import 'vue';
|
|
@@ -117,21 +116,3 @@ import '../useResponsive-a02e95b7.js';
|
|
|
117
116
|
import '@vueuse/integrations/useFocusTrap';
|
|
118
117
|
import '../dropdown-open-0d314aa4.js';
|
|
119
118
|
import '../useOverflow-ac506c65.js';
|
|
120
|
-
import 'prosemirror-markdown';
|
|
121
|
-
import 'prosemirror-model';
|
|
122
|
-
import 'marked';
|
|
123
|
-
import '@tiptap/core';
|
|
124
|
-
import '@tiptap/starter-kit';
|
|
125
|
-
import '@tiptap/extension-underline';
|
|
126
|
-
import '@tiptap/extension-link';
|
|
127
|
-
import '@tiptap/extension-highlight';
|
|
128
|
-
import '@tiptap/extension-heading';
|
|
129
|
-
import '@tiptap/extension-placeholder';
|
|
130
|
-
import '@tiptap/extension-paragraph';
|
|
131
|
-
import '@tiptap/extension-bullet-list';
|
|
132
|
-
import '@tiptap/extension-list-item';
|
|
133
|
-
import '@tiptap/extension-ordered-list';
|
|
134
|
-
import '@tiptap/extension-strike';
|
|
135
|
-
import '@tiptap/extension-italic';
|
|
136
|
-
import '@tiptap/extension-hard-break';
|
|
137
|
-
import '@tiptap/extension-bold';
|
|
@@ -0,0 +1,39 @@
|
|
|
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 LinearLoader: 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 CircularLoader: 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 MaterialIcon: 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, {
|
|
25
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
26
|
+
} | string[], {} & {}, {
|
|
27
|
+
[x: number]: string;
|
|
28
|
+
} | {}, true>)>;
|
|
29
|
+
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, {
|
|
30
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
31
|
+
} | string[], {} & {}, {
|
|
32
|
+
[x: number]: string;
|
|
33
|
+
} | {}, true>)>;
|
|
34
|
+
export declare const ExtraContentInSlot: StoryFn<typeof OrEmptyState>;
|
|
35
|
+
export declare const Containers: 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, {
|
|
36
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
37
|
+
} | string[], {} & {}, {
|
|
38
|
+
[x: number]: string;
|
|
39
|
+
} | {}, true>)>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { LoaderVariant } from '../or-loader-v3';
|
|
2
|
+
import { PropType } from 'vue-demi';
|
|
3
|
+
import { EmptyStateLoader } from '.';
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {
|
|
5
|
+
loaderVariant(): LoaderVariant | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
/**
|
|
8
|
+
* The heading of the empty state block.
|
|
9
|
+
*/
|
|
10
|
+
heading: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
16
|
+
*/
|
|
17
|
+
text: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Material icon name to display above the heading.
|
|
23
|
+
*/
|
|
24
|
+
icon: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Path to the image to display above the heading.
|
|
30
|
+
* Image height is scaled to 48px, width is undefined to preserve aspect ratio.
|
|
31
|
+
*/
|
|
32
|
+
iconSrc: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* If provided, then loader is being displayed.
|
|
38
|
+
* Accepts booleans and OrLoader::variant values. `true` falls back to 'linear'.
|
|
39
|
+
*/
|
|
40
|
+
loader: {
|
|
41
|
+
type: PropType<EmptyStateLoader>;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
45
|
+
/**
|
|
46
|
+
* The heading of the empty state block.
|
|
47
|
+
*/
|
|
48
|
+
heading: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
54
|
+
*/
|
|
55
|
+
text: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Material icon name to display above the heading.
|
|
61
|
+
*/
|
|
62
|
+
icon: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Path to the image to display above the heading.
|
|
68
|
+
* Image height is scaled to 48px, width is undefined to preserve aspect ratio.
|
|
69
|
+
*/
|
|
70
|
+
iconSrc: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* If provided, then loader is being displayed.
|
|
76
|
+
* Accepts booleans and OrLoader::variant values. `true` falls back to 'linear'.
|
|
77
|
+
*/
|
|
78
|
+
loader: {
|
|
79
|
+
type: PropType<EmptyStateLoader>;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
83
|
+
heading: string;
|
|
84
|
+
text: string;
|
|
85
|
+
icon: string;
|
|
86
|
+
iconSrc: string;
|
|
87
|
+
loader: EmptyStateLoader;
|
|
88
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {
|
|
89
|
+
loaderVariant(): LoaderVariant | undefined;
|
|
90
|
+
}, {}, {}, {}, {}, {
|
|
91
|
+
heading: string;
|
|
92
|
+
text: string;
|
|
93
|
+
icon: string;
|
|
94
|
+
iconSrc: string;
|
|
95
|
+
loader: EmptyStateLoader;
|
|
96
|
+
} & {}, {
|
|
97
|
+
heading: string;
|
|
98
|
+
text: string;
|
|
99
|
+
icon: string;
|
|
100
|
+
iconSrc: string;
|
|
101
|
+
loader: EmptyStateLoader;
|
|
102
|
+
}, true>);
|
|
103
|
+
/**
|
|
104
|
+
* The component to display when there is no content on a page,
|
|
105
|
+
* no records found or selected, or while the data is being loaded.
|
|
106
|
+
* Provides a hint to the user on what to do.
|
|
107
|
+
* Consists of text message, optional icon and optional loader.
|
|
108
|
+
*/
|
|
109
|
+
export default _default;
|