@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.
Files changed (76) hide show
  1. package/dist/bundled/v2/{OrCode-0cd991a1.js → OrCode-edc7a1f5.js} +114 -1
  2. package/dist/bundled/v2/components/index.d.ts +0 -1
  3. package/dist/bundled/v2/components/index.js +1 -4
  4. package/dist/bundled/v2/components/or-code/index.js +1 -2
  5. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
  6. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
  7. package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +2 -0
  8. package/dist/bundled/v2/components/or-empty-state-v3/index.js +131 -0
  9. package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +2 -0
  10. package/dist/bundled/v2/index.js +2 -5
  11. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-6c5f94a6.js → OrCode.vue_vue_type_script_lang-ef5e7f04.js} +114 -1
  12. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2fdbd2f2.js → OrTabs.vue_vue_type_script_lang-ca57f9d9.js} +36 -10
  13. package/dist/bundled/v3/components/index.d.ts +0 -1
  14. package/dist/bundled/v3/components/index.js +2 -6
  15. package/dist/bundled/v3/components/or-code/index.js +1 -2
  16. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
  17. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
  18. package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +2 -0
  19. package/dist/bundled/v3/components/or-empty-state-v3/index.js +111 -0
  20. package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +2 -0
  21. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  22. package/dist/bundled/v3/index.js +178 -273
  23. package/dist/esm/v2/components/index.d.ts +0 -1
  24. package/dist/esm/v2/components/index.js +0 -19
  25. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
  26. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
  27. package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +2 -0
  28. package/dist/esm/v2/components/or-empty-state-v3/index.js +129 -0
  29. package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +2 -0
  30. package/dist/esm/v2/index.js +0 -19
  31. package/dist/esm/v3/components/index.d.ts +0 -1
  32. package/dist/esm/v3/components/index.js +0 -19
  33. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +39 -0
  34. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +109 -0
  35. package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +2 -0
  36. package/dist/esm/v3/components/or-empty-state-v3/index.js +111 -0
  37. package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +2 -0
  38. package/dist/esm/v3/index.js +0 -19
  39. package/package.json +1 -19
  40. package/src/components/index.ts +0 -1
  41. package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +203 -0
  42. package/src/components/or-empty-state-v3/OrEmptyState.vue +101 -0
  43. package/src/components/or-empty-state-v3/index.ts +2 -0
  44. package/src/components/or-empty-state-v3/types.ts +3 -0
  45. package/dist/bundled/v2/OrRichTextEditor-898d67d5.js +0 -36828
  46. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  47. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  48. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  49. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +0 -24
  50. package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  51. package/dist/bundled/v2/index.es-3f39f316.js +0 -115
  52. package/dist/bundled/v3/OrMenu-08aa60de.js +0 -29
  53. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-2e607f79.js +0 -36708
  54. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  55. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  56. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  57. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +0 -25
  58. package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  59. package/dist/bundled/v3/index.es-3f39f316.js +0 -115
  60. package/dist/esm/v2/OrRichTextEditor-6bc37dc4.js +0 -516
  61. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  62. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  63. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  64. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -38
  65. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  66. package/dist/esm/v3/OrRichTextEditor-a5d38e89.js +0 -486
  67. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  68. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  69. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  70. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -37
  71. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  72. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
  73. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -62
  74. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -520
  75. package/src/components/or-rich-text-editor-v3/index.ts +0 -1
  76. package/src/components/or-rich-text-editor-v3/styles.ts +0 -65
@@ -1,5 +1,4 @@
1
1
  import { useElementHover } from '@vueuse/core';
2
- import { k as keyName, b as base, s as shift } from './index.es-3f39f316.js';
3
2
  import _ from 'lodash';
4
3
  import './index-fa6eb4ca.js';
5
4
  import { O as OrTeleport } from './OrTeleportVue2-3544f185.js';
@@ -3923,6 +3922,120 @@ class StyleSet {
3923
3922
  // example to create a media query you can do `{"@media screen and
3924
3923
  // (min-width: 400px)": {...}}`.
3925
3924
 
3925
+ var base = {
3926
+ 8: "Backspace",
3927
+ 9: "Tab",
3928
+ 10: "Enter",
3929
+ 12: "NumLock",
3930
+ 13: "Enter",
3931
+ 16: "Shift",
3932
+ 17: "Control",
3933
+ 18: "Alt",
3934
+ 20: "CapsLock",
3935
+ 27: "Escape",
3936
+ 32: " ",
3937
+ 33: "PageUp",
3938
+ 34: "PageDown",
3939
+ 35: "End",
3940
+ 36: "Home",
3941
+ 37: "ArrowLeft",
3942
+ 38: "ArrowUp",
3943
+ 39: "ArrowRight",
3944
+ 40: "ArrowDown",
3945
+ 44: "PrintScreen",
3946
+ 45: "Insert",
3947
+ 46: "Delete",
3948
+ 59: ";",
3949
+ 61: "=",
3950
+ 91: "Meta",
3951
+ 92: "Meta",
3952
+ 106: "*",
3953
+ 107: "+",
3954
+ 108: ",",
3955
+ 109: "-",
3956
+ 110: ".",
3957
+ 111: "/",
3958
+ 144: "NumLock",
3959
+ 145: "ScrollLock",
3960
+ 160: "Shift",
3961
+ 161: "Shift",
3962
+ 162: "Control",
3963
+ 163: "Control",
3964
+ 164: "Alt",
3965
+ 165: "Alt",
3966
+ 173: "-",
3967
+ 186: ";",
3968
+ 187: "=",
3969
+ 188: ",",
3970
+ 189: "-",
3971
+ 190: ".",
3972
+ 191: "/",
3973
+ 192: "`",
3974
+ 219: "[",
3975
+ 220: "\\",
3976
+ 221: "]",
3977
+ 222: "'"
3978
+ };
3979
+ var shift = {
3980
+ 48: ")",
3981
+ 49: "!",
3982
+ 50: "@",
3983
+ 51: "#",
3984
+ 52: "$",
3985
+ 53: "%",
3986
+ 54: "^",
3987
+ 55: "&",
3988
+ 56: "*",
3989
+ 57: "(",
3990
+ 59: ":",
3991
+ 61: "+",
3992
+ 173: "_",
3993
+ 186: ":",
3994
+ 187: "+",
3995
+ 188: "<",
3996
+ 189: "_",
3997
+ 190: ">",
3998
+ 191: "?",
3999
+ 192: "~",
4000
+ 219: "{",
4001
+ 220: "|",
4002
+ 221: "}",
4003
+ 222: "\""
4004
+ };
4005
+ var chrome$1 = typeof navigator != "undefined" && /Chrome\/(\d+)/.exec(navigator.userAgent);
4006
+ typeof navigator != "undefined" && /Gecko\/\d+/.test(navigator.userAgent);
4007
+ var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
4008
+ var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
4009
+ var brokenModifierNames = mac || chrome$1 && +chrome$1[1] < 57;
4010
+
4011
+ // Fill in the digit keys
4012
+ for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
4013
+
4014
+ // The function keys
4015
+ for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
4016
+
4017
+ // And the alphabetic keys
4018
+ for (var i = 65; i <= 90; i++) {
4019
+ base[i] = String.fromCharCode(i + 32);
4020
+ shift[i] = String.fromCharCode(i);
4021
+ }
4022
+
4023
+ // For each code that doesn't have a shift-equivalent, copy the base name
4024
+ for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
4025
+ function keyName(event) {
4026
+ var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) || ie$1 && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
4027
+ var name = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
4028
+ // Edge sometimes produces wrong names (Issue #3)
4029
+ if (name == "Esc") name = "Escape";
4030
+ if (name == "Del") name = "Delete";
4031
+ // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
4032
+ if (name == "Left") name = "ArrowLeft";
4033
+ if (name == "Up") name = "ArrowUp";
4034
+ if (name == "Right") name = "ArrowRight";
4035
+ if (name == "Down") name = "ArrowDown";
4036
+ return name;
4037
+ }
4038
+
3926
4039
  function getSelection(root) {
3927
4040
  let target;
3928
4041
  // Browsers differ on whether shadow roots have a getSelection
@@ -87,4 +87,3 @@ export * from './or-toast';
87
87
  export * from './or-toast-v3';
88
88
  export * from './or-tooltip';
89
89
  export * from './or-tooltip-v3';
90
- export * from './or-rich-text-editor-v3';
@@ -15,7 +15,7 @@ export { O as OrCheckbox } from '../OrCheckbox-f97a57b9.js';
15
15
  export { O as OrCheckboxV3 } from '../OrCheckbox-5b499fc5.js';
16
16
  export { O as OrChip } from '../OrChip-000fe7b5.js';
17
17
  export { _ as OrChips } from '../OrChips-890b8476.js';
18
- export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-0cd991a1.js';
18
+ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-edc7a1f5.js';
19
19
  export { O as OrCollapse } from '../OrCollapse-3aa9a9b7.js';
20
20
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-a1a37e83.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-56d01cff.js';
@@ -95,7 +95,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-3a3d
95
95
  export { O as OrTooltip } from '../OrTooltip-dfea7af2.js';
96
96
  export { O as OrTooltipContent } from '../OrTooltipContent-f0fd5f75.js';
97
97
  export { O as OrTooltipV3 } from '../OrTooltip-d1764f37.js';
98
- export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-898d67d5.js';
99
98
  import '../index-fa6eb4ca.js';
100
99
  import 'vue';
101
100
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -105,7 +104,6 @@ import '../browser-82dea9ed.js';
105
104
  import '../color-1f348774.js';
106
105
  import '../useClassAttribute-9bf33346.js';
107
106
  import '@vueuse/core';
108
- import '../index.es-3f39f316.js';
109
107
  import '../px-to-rem-0b26b83e.js';
110
108
  import '../dom-3a15d036.js';
111
109
  import '../index-17f264f9.js';
@@ -118,4 +116,3 @@ import '../dropdown-open-e2a93aaf.js';
118
116
  import '../useOverflow-43299d81.js';
119
117
  import 'portal-vue/dist/portal-vue.esm.js';
120
118
  import 'portal-vue';
121
- import 'node:punycode';
@@ -1,6 +1,5 @@
1
- export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-0cd991a1.js';
1
+ export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-edc7a1f5.js';
2
2
  import '@vueuse/core';
3
- import '../../index.es-3f39f316.js';
4
3
  import 'lodash';
5
4
  import '../../index-fa6eb4ca.js';
6
5
  import 'vue';
@@ -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,131 @@
1
+ import '../../index-fa6eb4ca.js';
2
+ import { O as OrIcon } from '../../OrIcon-ce8fd08b.js';
3
+ import { O as OrLoader, L as LoaderVariant } from '../../OrLoader-76f2615f.js';
4
+ import { defineComponent } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
+ import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
6
+ import 'vue';
7
+ import '../../useClassAttribute-9bf33346.js';
8
+
9
+ /**
10
+ * The component to display when there is no content on a page,
11
+ * no records found or selected, or while the data is being loaded.
12
+ * Provides a hint to the user on what to do.
13
+ * Consists of text message, optional icon and optional loader.
14
+ */
15
+ var script = defineComponent({
16
+ name: 'OrEmptyState',
17
+ components: {
18
+ OrIcon,
19
+ OrLoader
20
+ },
21
+ props: {
22
+ /**
23
+ * The heading of the empty state block.
24
+ */
25
+ heading: {
26
+ type: String,
27
+ default: ''
28
+ },
29
+ /**
30
+ * Additional text such as a hint for a user with proposed next steps.
31
+ */
32
+ text: {
33
+ type: String,
34
+ default: ''
35
+ },
36
+ /**
37
+ * Material icon name to display above the heading.
38
+ */
39
+ icon: {
40
+ type: String,
41
+ default: undefined
42
+ },
43
+ /**
44
+ * Path to the image to display above the heading.
45
+ * Image height is scaled to 48px, width is undefined to preserve aspect ratio.
46
+ */
47
+ iconSrc: {
48
+ type: String,
49
+ default: undefined
50
+ },
51
+ /**
52
+ * If provided, then loader is being displayed.
53
+ * Accepts booleans and OrLoader::variant values. `true` falls back to 'linear'.
54
+ */
55
+ loader: {
56
+ type: [String, Boolean],
57
+ default: false
58
+ }
59
+ },
60
+ computed: {
61
+ loaderVariant() {
62
+ if (typeof this.loader === 'string') {
63
+ return this.loader;
64
+ } else if (this.loader === true) {
65
+ return LoaderVariant.Linear;
66
+ } else {
67
+ return undefined;
68
+ }
69
+ }
70
+ }
71
+ });
72
+
73
+ /* script */
74
+ const __vue_script__ = script;
75
+
76
+ /* template */
77
+ var __vue_render__ = function () {
78
+ var _vm = this;
79
+ var _h = _vm.$createElement;
80
+ var _c = _vm._self._c || _h;
81
+ return _c('div', {
82
+ staticClass: "empty-state w-full grow flex flex-col justify-center items-center gap-sm"
83
+ }, [_vm.icon ? _c('OrIcon', {
84
+ staticClass: "empty-state_icon w-2xl h-2xl text-[48px] text-on-surface-variant dark:text-on-surface-variant-dark mb-sm",
85
+ attrs: {
86
+ "icon": _vm.icon,
87
+ "size": "inherit"
88
+ }
89
+ }) : _vm._e(), _vm._v(" "), _vm.iconSrc ? _c('img', {
90
+ staticClass: "empty-state_image h-2xl mb-sm",
91
+ attrs: {
92
+ "src": _vm.iconSrc,
93
+ "alt": ""
94
+ }
95
+ }) : _vm._e(), _vm._v(" "), _c('div', {
96
+ staticClass: "empty-state_heading text-on-background dark:text-on-background-dark text-headline-4 font-headline-4"
97
+ }, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.loader ? _c('div', {
98
+ staticClass: "empty-state_loader max-w-[432px] w-2/5 flex justify-center my-sm"
99
+ }, [_c('OrLoader', {
100
+ attrs: {
101
+ "variant": _vm.loaderVariant
102
+ }
103
+ })], 1) : _vm._e(), _vm._v(" "), _vm.$slots.default ? _c('div', {
104
+ staticClass: "empty-state_content text-center text-outline dark:text-outline-dark text-caption-regular font-caption-regular"
105
+ }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
106
+ staticClass: "empty-state_content text-center text-outline dark:text-outline-dark text-caption-regular font-caption-regular"
107
+ }, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])], 1);
108
+ };
109
+ var __vue_staticRenderFns__ = [];
110
+
111
+ /* style */
112
+ const __vue_inject_styles__ = undefined;
113
+ /* scoped */
114
+ const __vue_scope_id__ = "data-v-58e2742a";
115
+ /* module identifier */
116
+ const __vue_module_identifier__ = undefined;
117
+ /* functional template */
118
+ const __vue_is_functional_template__ = false;
119
+ /* style inject */
120
+
121
+ /* style inject SSR */
122
+
123
+ /* style inject shadow dom */
124
+
125
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
126
+ render: __vue_render__,
127
+ staticRenderFns: __vue_staticRenderFns__
128
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
129
+ var __vue_component__$1 = __vue_component__;
130
+
131
+ export { __vue_component__$1 as OrEmptyStateV3 };
@@ -0,0 +1,2 @@
1
+ import { LoaderVariant } from '../or-loader-v3';
2
+ export declare type EmptyStateLoader = boolean | LoaderVariant | undefined;