@onereach/ui-components 2.68.0-beta.2001.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.
Files changed (63) hide show
  1. package/dist/bundled/v2/{OrCode-0cd991a1.js → OrCode-edc7a1f5.js} +114 -1
  2. package/dist/bundled/v2/components/index.js +1 -2
  3. package/dist/bundled/v2/components/or-code/index.js +1 -2
  4. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
  5. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
  6. package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +2 -0
  7. package/dist/bundled/v2/components/or-empty-state-v3/index.js +131 -0
  8. package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +2 -0
  9. package/dist/bundled/v2/index.js +2 -3
  10. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-6c5f94a6.js → OrCode.vue_vue_type_script_lang-ef5e7f04.js} +114 -1
  11. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2fdbd2f2.js → OrTabs.vue_vue_type_script_lang-ca57f9d9.js} +36 -10
  12. package/dist/bundled/v3/components/index.js +2 -4
  13. package/dist/bundled/v3/components/or-code/index.js +1 -2
  14. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
  15. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
  16. package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +2 -0
  17. package/dist/bundled/v3/components/or-empty-state-v3/index.js +111 -0
  18. package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +2 -0
  19. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  20. package/dist/bundled/v3/index.js +5 -7
  21. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
  22. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
  23. package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +2 -0
  24. package/dist/esm/v2/components/or-empty-state-v3/index.js +129 -0
  25. package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +2 -0
  26. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
  27. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
  28. package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +2 -0
  29. package/dist/esm/v3/components/or-empty-state-v3/index.js +111 -0
  30. package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +2 -0
  31. package/package.json +1 -19
  32. package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +203 -0
  33. package/src/components/or-empty-state-v3/OrEmptyState.vue +101 -0
  34. package/src/components/or-empty-state-v3/index.ts +2 -0
  35. package/src/components/or-empty-state-v3/types.ts +3 -0
  36. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  37. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  38. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  39. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +0 -36840
  40. package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  41. package/dist/bundled/v2/index.es-3f39f316.js +0 -115
  42. package/dist/bundled/v3/OrMenu-08aa60de.js +0 -29
  43. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  44. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  45. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  46. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +0 -36811
  47. package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  48. package/dist/bundled/v3/index.es-3f39f316.js +0 -115
  49. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  50. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  51. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  52. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -524
  53. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  54. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  55. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  56. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  57. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -493
  58. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  59. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
  60. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -62
  61. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -520
  62. package/src/components/or-rich-text-editor-v3/index.ts +0 -1
  63. package/src/components/or-rich-text-editor-v3/styles.ts +0 -65
@@ -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,2 @@
1
+ export { default as OrEmptyStateV3 } from './OrEmptyState.vue';
2
+ export * from './types';
@@ -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 };
@@ -0,0 +1,2 @@
1
+ import { LoaderVariant } from '../or-loader-v3';
2
+ export declare type EmptyStateLoader = boolean | LoaderVariant | undefined;
@@ -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,2 @@
1
+ export { default as OrEmptyStateV3 } from './OrEmptyState.vue';
2
+ export * from './types';
@@ -0,0 +1,111 @@
1
+ import { s as script$2, L as LoaderVariant } from '../../OrLoader-60943812.js';
2
+ import { s as script$1 } from '../../OrIcon-e2fa4cf8.js';
3
+ import { defineComponent } from 'vue-demi';
4
+ import { resolveComponent, openBlock, createElementBlock, createBlock, createCommentVNode, createElementVNode, toDisplayString, createVNode, renderSlot } from 'vue';
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: script$1,
18
+ OrLoader: script$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
+ const _hoisted_1 = {
73
+ class: "empty-state w-full grow flex flex-col justify-center items-center gap-sm"
74
+ };
75
+ const _hoisted_2 = ["src"];
76
+ const _hoisted_3 = {
77
+ class: "empty-state_heading text-on-background dark:text-on-background-dark text-headline-4 font-headline-4"
78
+ };
79
+ const _hoisted_4 = {
80
+ key: 2,
81
+ class: "empty-state_loader max-w-[432px] w-2/5 flex justify-center my-sm"
82
+ };
83
+ const _hoisted_5 = {
84
+ key: 3,
85
+ class: "empty-state_content text-center text-outline dark:text-outline-dark text-caption-regular font-caption-regular"
86
+ };
87
+ const _hoisted_6 = {
88
+ class: "empty-state_content text-center text-outline dark:text-outline-dark text-caption-regular font-caption-regular"
89
+ };
90
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
91
+ const _component_OrIcon = resolveComponent("OrIcon");
92
+ const _component_OrLoader = resolveComponent("OrLoader");
93
+ return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.icon ? (openBlock(), createBlock(_component_OrIcon, {
94
+ key: 0,
95
+ icon: _ctx.icon,
96
+ size: "inherit",
97
+ class: "empty-state_icon w-2xl h-2xl text-[48px] text-on-surface-variant dark:text-on-surface-variant-dark mb-sm"
98
+ }, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true), _ctx.iconSrc ? (openBlock(), createElementBlock("img", {
99
+ key: 1,
100
+ src: _ctx.iconSrc,
101
+ class: "empty-state_image h-2xl mb-sm",
102
+ alt: ""
103
+ }, null, 8 /* PROPS */, _hoisted_2)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, toDisplayString(_ctx.heading), 1 /* TEXT */), _ctx.loader ? (openBlock(), createElementBlock("div", _hoisted_4, [createVNode(_component_OrLoader, {
104
+ variant: _ctx.loaderVariant
105
+ }, null, 8 /* PROPS */, ["variant"])])) : createCommentVNode("v-if", true), _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5, [createCommentVNode(" @slot Additional content can be inserted via default slot. The slot uses the same font as a 'text' prop. "), renderSlot(_ctx.$slots, "default")])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_6, toDisplayString(_ctx.text), 1 /* TEXT */)]);
106
+ }
107
+
108
+ script.render = render;
109
+ script.__file = "src/components/or-empty-state-v3/OrEmptyState.vue";
110
+
111
+ export { script as OrEmptyStateV3 };
@@ -0,0 +1,2 @@
1
+ import { LoaderVariant } from '../or-loader-v3';
2
+ export declare type EmptyStateLoader = boolean | LoaderVariant | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.68.0-beta.2001.0",
3
+ "version": "2.68.0-beta.2003.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -39,21 +39,6 @@
39
39
  "@floating-ui/dom": "0.3.1",
40
40
  "@onereach/styles": "^2.32.0",
41
41
  "@splidejs/splide": "4.0.6",
42
- "@tiptap/core": "2.0.0-beta.209",
43
- "@tiptap/extension-bold": "2.0.0-beta.209",
44
- "@tiptap/extension-bullet-list": "2.0.0-beta.209",
45
- "@tiptap/extension-hard-break": "2.0.0-beta.209",
46
- "@tiptap/extension-heading": "2.0.0-beta.209",
47
- "@tiptap/extension-highlight": "2.0.0-beta.209",
48
- "@tiptap/extension-italic": "2.0.0-beta.209",
49
- "@tiptap/extension-link": "2.0.0-beta.209",
50
- "@tiptap/extension-list-item": "2.0.0-beta.209",
51
- "@tiptap/extension-ordered-list": "2.0.0-beta.209",
52
- "@tiptap/extension-paragraph": "2.0.0-beta.209",
53
- "@tiptap/extension-placeholder": "2.0.0-beta.209",
54
- "@tiptap/extension-strike": "2.0.0-beta.209",
55
- "@tiptap/extension-underline": "2.0.0-beta.209",
56
- "@tiptap/starter-kit": "2.0.0-beta.209",
57
42
  "@types/lodash": "4.14.173",
58
43
  "@types/sortablejs": "1.10.7",
59
44
  "@types/uuid": "8.3.1",
@@ -62,8 +47,6 @@
62
47
  "@vueuse/math": "9.5.0",
63
48
  "codemirror": "6.0.1",
64
49
  "focus-trap": "7.2.0",
65
- "marked": "4.2.12",
66
- "prosemirror-markdown": "^1.10.1",
67
50
  "sortablejs": "1.14.0",
68
51
  "uuid": "8.3.2",
69
52
  "vue-demi": "0.13.11"
@@ -78,7 +61,6 @@
78
61
  "@storybook/testing-library": "^0.0.13",
79
62
  "@storybook/vue3": "6.5.15",
80
63
  "@types/faker": "5.5.9",
81
- "@types/marked": "4.0.8",
82
64
  "@vue/composition-api": "1.7.0",
83
65
  "faker": "5.5.3",
84
66
  "sass": "1.32.8",