@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 { defineComponent, ref } from 'vue';
5
4
  import { s as script$3 } from './OrTeleportVue3-012351e1.js';
@@ -3925,6 +3924,120 @@ class StyleSet {
3925
3924
  // example to create a media query you can do `{"@media screen and
3926
3925
  // (min-width: 400px)": {...}}`.
3927
3926
 
3927
+ var base = {
3928
+ 8: "Backspace",
3929
+ 9: "Tab",
3930
+ 10: "Enter",
3931
+ 12: "NumLock",
3932
+ 13: "Enter",
3933
+ 16: "Shift",
3934
+ 17: "Control",
3935
+ 18: "Alt",
3936
+ 20: "CapsLock",
3937
+ 27: "Escape",
3938
+ 32: " ",
3939
+ 33: "PageUp",
3940
+ 34: "PageDown",
3941
+ 35: "End",
3942
+ 36: "Home",
3943
+ 37: "ArrowLeft",
3944
+ 38: "ArrowUp",
3945
+ 39: "ArrowRight",
3946
+ 40: "ArrowDown",
3947
+ 44: "PrintScreen",
3948
+ 45: "Insert",
3949
+ 46: "Delete",
3950
+ 59: ";",
3951
+ 61: "=",
3952
+ 91: "Meta",
3953
+ 92: "Meta",
3954
+ 106: "*",
3955
+ 107: "+",
3956
+ 108: ",",
3957
+ 109: "-",
3958
+ 110: ".",
3959
+ 111: "/",
3960
+ 144: "NumLock",
3961
+ 145: "ScrollLock",
3962
+ 160: "Shift",
3963
+ 161: "Shift",
3964
+ 162: "Control",
3965
+ 163: "Control",
3966
+ 164: "Alt",
3967
+ 165: "Alt",
3968
+ 173: "-",
3969
+ 186: ";",
3970
+ 187: "=",
3971
+ 188: ",",
3972
+ 189: "-",
3973
+ 190: ".",
3974
+ 191: "/",
3975
+ 192: "`",
3976
+ 219: "[",
3977
+ 220: "\\",
3978
+ 221: "]",
3979
+ 222: "'"
3980
+ };
3981
+ var shift = {
3982
+ 48: ")",
3983
+ 49: "!",
3984
+ 50: "@",
3985
+ 51: "#",
3986
+ 52: "$",
3987
+ 53: "%",
3988
+ 54: "^",
3989
+ 55: "&",
3990
+ 56: "*",
3991
+ 57: "(",
3992
+ 59: ":",
3993
+ 61: "+",
3994
+ 173: "_",
3995
+ 186: ":",
3996
+ 187: "+",
3997
+ 188: "<",
3998
+ 189: "_",
3999
+ 190: ">",
4000
+ 191: "?",
4001
+ 192: "~",
4002
+ 219: "{",
4003
+ 220: "|",
4004
+ 221: "}",
4005
+ 222: "\""
4006
+ };
4007
+ var chrome$1 = typeof navigator != "undefined" && /Chrome\/(\d+)/.exec(navigator.userAgent);
4008
+ typeof navigator != "undefined" && /Gecko\/\d+/.test(navigator.userAgent);
4009
+ var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
4010
+ var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
4011
+ var brokenModifierNames = mac || chrome$1 && +chrome$1[1] < 57;
4012
+
4013
+ // Fill in the digit keys
4014
+ for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
4015
+
4016
+ // The function keys
4017
+ for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
4018
+
4019
+ // And the alphabetic keys
4020
+ for (var i = 65; i <= 90; i++) {
4021
+ base[i] = String.fromCharCode(i + 32);
4022
+ shift[i] = String.fromCharCode(i);
4023
+ }
4024
+
4025
+ // For each code that doesn't have a shift-equivalent, copy the base name
4026
+ for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
4027
+ function keyName(event) {
4028
+ var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) || ie$1 && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
4029
+ var name = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
4030
+ // Edge sometimes produces wrong names (Issue #3)
4031
+ if (name == "Esc") name = "Escape";
4032
+ if (name == "Del") name = "Delete";
4033
+ // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
4034
+ if (name == "Left") name = "ArrowLeft";
4035
+ if (name == "Up") name = "ArrowUp";
4036
+ if (name == "Right") name = "ArrowRight";
4037
+ if (name == "Down") name = "ArrowDown";
4038
+ return name;
4039
+ }
4040
+
3928
4041
  function getSelection(root) {
3929
4042
  let target;
3930
4043
  // Browsers differ on whether shadow roots have a getSelection
@@ -1,14 +1,40 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
- import { openBlock, createElementBlock, mergeProps, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
3
3
  import './OrIcon-3a514933.js';
4
- import './OrMenu-08aa60de.js';
4
+ import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-bae45062.js';
5
5
  import './OrMenuItem-94ffa853.js';
6
- import { s as script$1 } from './OrTab.vue_vue_type_script_lang-671949b7.js';
6
+ import { s as script$2 } from './OrTab.vue_vue_type_script_lang-671949b7.js';
7
7
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
8
- import { s as script$2 } from './OrIcon.vue_vue_type_script_lang-41a6a57a.js';
9
- import { s as script$3 } from './OrMenu.vue_vue_type_script_lang-bae45062.js';
8
+ import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-41a6a57a.js';
10
9
  import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-ccb7e082.js';
11
10
 
11
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
12
+ const _component_OrPopover = resolveComponent("OrPopover");
13
+ return openBlock(), createElementBlock("div", mergeProps({
14
+ ref: "root"
15
+ }, _ctx.$attrs, {
16
+ class: _ctx.rootStyles
17
+ }), [createVNode(_component_OrPopover, {
18
+ ref: "popover",
19
+ variant: 'auto',
20
+ trigger: _ctx.trigger,
21
+ placement: _ctx.placement,
22
+ "full-width": false,
23
+ "disable-default-styles": false,
24
+ "onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
25
+ }, {
26
+ default: withCtx(() => [createElementVNode("div", {
27
+ class: normalizeClass(_ctx.bodyStyles),
28
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
29
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
30
+
31
+ _: 3 /* FORWARDED */
32
+ }, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
33
+ }
34
+
35
+ script$1.render = render$1;
36
+ script$1.__file = "src/components/or-menu-v3/OrMenu.vue";
37
+
12
38
  const _hoisted_1 = ["selected"];
13
39
  function render(_ctx, _cache, $props, $setup, $data, $options) {
14
40
  return openBlock(), createElementBlock("div", mergeProps({
@@ -23,8 +49,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
23
49
  }), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */, _hoisted_1);
24
50
  }
25
51
 
26
- script$1.render = render;
27
- script$1.__file = "src/components/or-tab-v3/OrTab.vue";
52
+ script$2.render = render;
53
+ script$2.__file = "src/components/or-tab-v3/OrTab.vue";
28
54
 
29
55
  var TabsVariant;
30
56
  (function (TabsVariant) {
@@ -53,10 +79,10 @@ const TabsRootVariants = {
53
79
  var script = defineComponent({
54
80
  name: 'OrTabs',
55
81
  components: {
56
- OrIcon: script$2,
57
- OrMenu: script$3,
82
+ OrIcon: script$3,
83
+ OrMenu: script$1,
58
84
  OrMenuItem: script$4,
59
- OrTab: script$1
85
+ OrTab: script$2
60
86
  },
61
87
  inheritAttrs: false,
62
88
  props: {
@@ -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 { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-cd20521b
15
15
  export { s as OrCheckboxV3 } from '../OrCheckbox.vue_vue_type_script_lang-10d8b047.js';
16
16
  export { s as OrChip } from '../OrChip-5d502431.js';
17
17
  export { s as OrChips } from '../OrChips.vue_vue_type_script_lang-69917e34.js';
18
- export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script_lang-6c5f94a6.js';
18
+ export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script_lang-ef5e7f04.js';
19
19
  export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-65cbb754.js';
20
20
  export { s 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.vue_vue_type_script_lang-4141378d.js';
21
21
  export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-0f16fc67.js';
@@ -80,7 +80,7 @@ export { s as OrTab } from '../OrTab.vue_vue_type_script_lang-de7c7063.js';
80
80
  export { s as OrTabHeaderItem } from '../OrTabHeaderItem.vue_vue_type_script_lang-e1f29563.js';
81
81
  export { s as OrTabV3 } from '../OrTab.vue_vue_type_script_lang-671949b7.js';
82
82
  export { s as OrTabs } from '../OrTabs.vue_vue_type_script_lang-40e2a6e9.js';
83
- export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-2fdbd2f2.js';
83
+ export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-ca57f9d9.js';
84
84
  export { s as OrTag } from '../OrTag.vue_vue_type_script_lang-8c526c11.js';
85
85
  export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag.vue_vue_type_script_lang-6be84bb9.js';
86
86
  export { s as OrTeleport } from '../OrTeleportVue3-012351e1.js';
@@ -95,7 +95,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-4d43
95
95
  export { s as OrTooltip } from '../OrTooltip.vue_vue_type_script_lang-fa52d391.js';
96
96
  export { s as OrTooltipContent } from '../OrTooltipContent-b0dcb862.js';
97
97
  export { s as OrTooltipV3 } from '../OrTooltip.vue_vue_type_script_lang-a4168546.js';
98
- export { s as OrRichTextEditorV3 } from '../OrRichTextEditor.vue_vue_type_script_lang-2e607f79.js';
99
98
  import 'vue';
100
99
  import 'lodash';
101
100
  import '../OrIcon-1cae8a64.js';
@@ -111,7 +110,6 @@ import '../OrInput-4b4b8316.js';
111
110
  import '../OrLabel-2809e2db.js';
112
111
  import '../OrLabel-e412c532.js';
113
112
  import '../OrError-b43ebad8.js';
114
- import '../index.es-3f39f316.js';
115
113
  import '../OrModal-868160ef.js';
116
114
  import '../OrHint-c9114268.js';
117
115
  import '../px-to-rem-0b26b83e.js';
@@ -133,5 +131,3 @@ import '../useElevation-c8d5d3ba.js';
133
131
  import '../OrMenuItem-94ffa853.js';
134
132
  import '../dropdown-open-293d2de2.js';
135
133
  import '../useOverflow-2468b718.js';
136
- import '../OrMenu-08aa60de.js';
137
- import 'node:punycode';
@@ -1,6 +1,5 @@
1
- export { s as OrCode, O as OrCodeLanguages } from '../../OrCode.vue_vue_type_script_lang-6c5f94a6.js';
1
+ export { s as OrCode, O as OrCodeLanguages } from '../../OrCode.vue_vue_type_script_lang-ef5e7f04.js';
2
2
  import '@vueuse/core';
3
- import '../../index.es-3f39f316.js';
4
3
  import 'lodash';
5
4
  import 'vue';
6
5
  import '../../OrTeleportVue3-012351e1.js';
@@ -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 { defineComponent, resolveComponent, openBlock, createElementBlock, createBlock, createCommentVNode, createElementVNode, toDisplayString, createVNode, renderSlot } from 'vue';
2
+ import '../../OrIcon-3a514933.js';
3
+ import '../../OrLoader-65868e73.js';
4
+ import { s as script$2, L as LoaderVariant } from '../../OrLoader.vue_vue_type_script_lang-edd1b404.js';
5
+ import { s as script$1 } from '../../OrIcon.vue_vue_type_script_lang-41a6a57a.js';
6
+ import '../../useClassAttribute-00888f78.js';
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;
@@ -1,10 +1,9 @@
1
- export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs.vue_vue_type_script_lang-2fdbd2f2.js';
1
+ export { s as OrTabsV3, T as TabsVariant } from '../../OrTabs.vue_vue_type_script_lang-ca57f9d9.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue';
4
4
  import '../../OrIcon-3a514933.js';
5
5
  import '../../OrIcon.vue_vue_type_script_lang-41a6a57a.js';
6
6
  import '../../useClassAttribute-00888f78.js';
7
- import '../../OrMenu-08aa60de.js';
8
7
  import '../../OrMenu.vue_vue_type_script_lang-bae45062.js';
9
8
  import '../../OrPopover-93ef8c26.js';
10
9
  import '../../OrPopover.vue_vue_type_script_lang-e200f5be.js';