@onereach/ui-components 2.69.5 → 2.69.6

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 (57) hide show
  1. package/dist/bundled/v2/{OrCode-edc7a1f5.js → OrCode-fc6876ec.js} +56 -17
  2. package/dist/bundled/v2/OrEmptyState-9fb413f9.js +160 -0
  3. package/dist/bundled/v2/components/index.d.ts +1 -0
  4. package/dist/bundled/v2/components/index.js +2 -1
  5. package/dist/bundled/v2/components/or-code/index.js +1 -1
  6. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  7. package/dist/bundled/v2/components/or-empty-state-v3/index.js +3 -159
  8. package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  9. package/dist/bundled/v2/index.js +2 -1
  10. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ef5e7f04.js → OrCode.vue_vue_type_script_lang-c55de81d.js} +53 -14
  11. package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-da7d6c42.js +111 -0
  12. package/dist/bundled/v3/components/index.d.ts +1 -0
  13. package/dist/bundled/v3/components/index.js +2 -1
  14. package/dist/bundled/v3/components/or-code/index.js +1 -1
  15. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  16. package/dist/bundled/v3/components/or-empty-state-v3/index.js +2 -134
  17. package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  18. package/dist/bundled/v3/index.js +214 -189
  19. package/dist/esm/v2/{OrCode-41dd5f9b.js → OrCode-d4400b42.js} +6 -4
  20. package/dist/esm/v2/OrEmptyState-2481f13f.js +158 -0
  21. package/dist/esm/v2/components/index.d.ts +1 -0
  22. package/dist/esm/v2/components/index.js +4 -1
  23. package/dist/esm/v2/components/or-code/index.js +3 -1
  24. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  25. package/dist/esm/v2/components/or-empty-state-v3/index.js +3 -158
  26. package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  27. package/dist/esm/v2/index.js +4 -1
  28. package/dist/esm/v3/OrCardCollection-2a6514f3.js +1 -1
  29. package/dist/esm/v3/{OrCode-ee19a5e6.js → OrCode-5ed69c23.js} +3 -1
  30. package/dist/esm/v3/OrEmptyState-bb8e3145.js +135 -0
  31. package/dist/esm/v3/OrInput-41691fb3.js +1 -1
  32. package/dist/esm/v3/{OrInputBox-5247ab25.js → OrInputBox-6d1b6059.js} +1 -1
  33. package/dist/esm/v3/OrSearch-e5a2e93e.js +1 -1
  34. package/dist/esm/v3/OrSelect-7e813982.js +1 -1
  35. package/dist/esm/v3/OrTextarea-bb9ef3f2.js +1 -1
  36. package/dist/esm/v3/components/index.d.ts +1 -0
  37. package/dist/esm/v3/components/index.js +5 -2
  38. package/dist/esm/v3/components/or-card-collection-v3/index.js +1 -1
  39. package/dist/esm/v3/components/or-code/index.js +3 -1
  40. package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
  41. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  42. package/dist/esm/v3/components/or-empty-state-v3/index.js +3 -135
  43. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  44. package/dist/esm/v3/components/or-input-box-v3/index.js +2 -2
  45. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  46. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  47. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  48. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  49. package/dist/esm/v3/index.js +5 -2
  50. package/package.json +3 -2
  51. package/src/components/index.ts +1 -0
  52. package/src/components/or-card/OrCard.stories.ts +1 -1
  53. package/src/components/or-card-collection/OrCardCollection.stories.ts +1 -1
  54. package/src/components/or-code/OrCode.vue +3 -1
  55. package/src/components/or-empty-state-v3/OrEmptyState.vue +16 -10
  56. package/src/components/or-input-box-v3/OrInputBox.vue +1 -2
  57. package/src/components/or-teleport-v3/OrTeleport.stories3.ts +1 -1
@@ -1,4 +1,6 @@
1
1
  import { EditorState } from '@codemirror/state';
2
+ import { keymap } from '@codemirror/view';
3
+ import { indentWithTab } from '@codemirror/commands';
2
4
  import { useElementHover } from '@vueuse/core';
3
5
  import { basicSetup, EditorView } from 'codemirror';
4
6
  import _ from 'lodash';
@@ -200,7 +202,7 @@ var script = defineComponent({
200
202
  }
201
203
  }),
202
204
  // line wrapping
203
- lineWrapping ? EditorView.lineWrapping : undefined]);
205
+ lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])]);
204
206
  // Append Extensions (such as basic-setup)
205
207
  if (this.extensions.length !== 0) _.merge(ext, this.extensions);
206
208
  return ext;
@@ -363,14 +365,14 @@ var __vue_staticRenderFns__ = [];
363
365
  /* style */
364
366
  const __vue_inject_styles__ = function (inject) {
365
367
  if (!inject) return;
366
- inject("data-v-2a2e4862_0", {
367
- source: "@keyframes spinAround-data-v-2a2e4862{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2a2e4862{from{opacity:1}to{opacity:0}}.or-code .fullscreen-button[data-v-2a2e4862]{width:2.25rem;height:2.25rem}.or-code .fullscreen-button>.or-icon[data-v-2a2e4862]{font-size:1.5rem}.or-code .footer .or-code-error[data-v-2a2e4862],.or-code .footer .or-code-hint[data-v-2a2e4862]{flex-shrink:1;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:height,opacity}.header[data-v-2a2e4862]{display:flex;flex-direction:row;align-items:center;height:36px}.header .actions[data-v-2a2e4862]{margin-left:auto}.header .actions[data-v-2a2e4862]:not(.is-visible){display:none}.or-code-editor[data-v-2a2e4862]{min-height:calc(1.4em + 8px);overflow:auto;font-size:var(--fs-0);border:1px solid var(--c-neutral-2);border-radius:var(--s-2)}.or-code-editor.is-invalid[data-v-2a2e4862]{border-color:var(--c-error)}.or-code-editor[data-v-2a2e4862]> *{width:100%;height:100%}.or-code[data-v-2a2e4862],.or-modal[data-v-2a2e4862] .content{display:flex;flex-direction:column}.or-code .or-code-editor[data-v-2a2e4862],.or-modal[data-v-2a2e4862] .content .or-code-editor{flex-grow:1;text-align:left!important}",
368
+ inject("data-v-2056db5f_0", {
369
+ source: "@keyframes spinAround-data-v-2056db5f{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2056db5f{from{opacity:1}to{opacity:0}}.or-code .fullscreen-button[data-v-2056db5f]{width:2.25rem;height:2.25rem}.or-code .fullscreen-button>.or-icon[data-v-2056db5f]{font-size:1.5rem}.or-code .footer .or-code-error[data-v-2056db5f],.or-code .footer .or-code-hint[data-v-2056db5f]{flex-shrink:1;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:height,opacity}.header[data-v-2056db5f]{display:flex;flex-direction:row;align-items:center;height:36px}.header .actions[data-v-2056db5f]{margin-left:auto}.header .actions[data-v-2056db5f]:not(.is-visible){display:none}.or-code-editor[data-v-2056db5f]{min-height:calc(1.4em + 8px);overflow:auto;font-size:var(--fs-0);border:1px solid var(--c-neutral-2);border-radius:var(--s-2)}.or-code-editor.is-invalid[data-v-2056db5f]{border-color:var(--c-error)}.or-code-editor[data-v-2056db5f]> *{width:100%;height:100%}.or-code[data-v-2056db5f],.or-modal[data-v-2056db5f] .content{display:flex;flex-direction:column}.or-code .or-code-editor[data-v-2056db5f],.or-modal[data-v-2056db5f] .content .or-code-editor{flex-grow:1;text-align:left!important}",
368
370
  map: undefined,
369
371
  media: undefined
370
372
  });
371
373
  };
372
374
  /* scoped */
373
- const __vue_scope_id__ = "data-v-2a2e4862";
375
+ const __vue_scope_id__ = "data-v-2056db5f";
374
376
  /* module identifier */
375
377
  const __vue_module_identifier__ = undefined;
376
378
  /* functional template */
@@ -0,0 +1,158 @@
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
3
+
4
+ var EmptyStateSize;
5
+ (function (EmptyStateSize) {
6
+ EmptyStateSize["L"] = "l";
7
+ EmptyStateSize["M"] = "m";
8
+ })(EmptyStateSize || (EmptyStateSize = {}));
9
+
10
+ const EmptyStateRoot = [
11
+ // Layout
12
+ 'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
13
+ // Box
14
+ 'w-full',
15
+ // Sizing
16
+ 'gap-sm'];
17
+ const EmptyStateImage = [
18
+ // Sizing
19
+ 'mb-sm'];
20
+ const EmptyStateImageSizes = {
21
+ [EmptyStateSize.L]: [
22
+ // Box
23
+ 'h-3xl'],
24
+ [EmptyStateSize.M]: [
25
+ // Box
26
+ 'h-2xl']
27
+ };
28
+ const EmptyStateHeading = [
29
+ // Theme
30
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
31
+ const EmptyStateHeadingSizes = {
32
+ [EmptyStateSize.L]: [
33
+ // Typography
34
+ 'typography-headline-2'],
35
+ [EmptyStateSize.M]: [
36
+ // Typography
37
+ 'typography-headline-4']
38
+ };
39
+ const EmptyStateText = ['text-center',
40
+ // Theme
41
+ 'text-outline', 'dark:text-outline-dark'];
42
+ const EmptyStateContent = EmptyStateText;
43
+ const EmptyStateTextSizes = {
44
+ [EmptyStateSize.L]: [
45
+ // Typography
46
+ 'typography-body-2-regular'],
47
+ [EmptyStateSize.M]: [
48
+ // Typography
49
+ 'typography-caption-regular']
50
+ };
51
+ const EmptyStateContentSizes = EmptyStateTextSizes;
52
+
53
+ /**
54
+ * The component to display when there is no content on a page,
55
+ * no records found or selected, or while the data is being loaded.
56
+ * Provides a hint to the user on what to do.
57
+ * Consists of text message, optional icon and optional loader.
58
+ */
59
+ var script = defineComponent({
60
+ name: 'OrEmptyState',
61
+ props: {
62
+ /**
63
+ * Size of the component, affects font and icon size.
64
+ * Use Large if the component takes all screen space,
65
+ * and Medium if it is a part of the complex layout.
66
+ */
67
+ size: {
68
+ type: String,
69
+ default: EmptyStateSize.M
70
+ },
71
+ /**
72
+ * The heading of the empty state block.
73
+ */
74
+ heading: {
75
+ type: String,
76
+ default: ''
77
+ },
78
+ /**
79
+ * Additional text such as a hint for a user with proposed next steps.
80
+ */
81
+ text: {
82
+ type: String,
83
+ default: ''
84
+ },
85
+ /**
86
+ * Path to the image to display above the heading.
87
+ * Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
88
+ */
89
+ imageSrc: {
90
+ type: String,
91
+ default: undefined
92
+ }
93
+ },
94
+ setup(props) {
95
+ const root = ref();
96
+ const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
97
+ const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
98
+ const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
99
+ const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
100
+ const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
101
+ return {
102
+ root,
103
+ rootClasses,
104
+ imageClasses,
105
+ headingClasses,
106
+ textClasses,
107
+ slotClasses
108
+ };
109
+ }
110
+ });
111
+
112
+ /* script */
113
+ const __vue_script__ = script;
114
+
115
+ /* template */
116
+ var __vue_render__ = function () {
117
+ var _vm = this;
118
+ var _h = _vm.$createElement;
119
+ var _c = _vm._self._c || _h;
120
+ return _c('div', {
121
+ ref: "root",
122
+ class: _vm.rootClasses
123
+ }, [_vm.imageSrc ? _c('img', {
124
+ class: _vm.imageClasses,
125
+ attrs: {
126
+ "src": _vm.imageSrc,
127
+ "alt": ""
128
+ }
129
+ }) : _vm._e(), _vm._v(" "), _c('div', {
130
+ class: _vm.headingClasses
131
+ }, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.$slots.default ? _c('div', {
132
+ class: _vm.slotClasses
133
+ }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
134
+ class: _vm.textClasses
135
+ }, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])]);
136
+ };
137
+ var __vue_staticRenderFns__ = [];
138
+
139
+ /* style */
140
+ const __vue_inject_styles__ = undefined;
141
+ /* scoped */
142
+ const __vue_scope_id__ = undefined;
143
+ /* module identifier */
144
+ const __vue_module_identifier__ = undefined;
145
+ /* functional template */
146
+ const __vue_is_functional_template__ = false;
147
+ /* style inject */
148
+
149
+ /* style inject SSR */
150
+
151
+ /* style inject shadow dom */
152
+
153
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
154
+ render: __vue_render__,
155
+ staticRenderFns: __vue_staticRenderFns__
156
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
157
+
158
+ export { EmptyStateSize as E, __vue_component__ as _ };
@@ -21,6 +21,7 @@ export * from './or-date-time-picker';
21
21
  export * from './or-error';
22
22
  export * from './or-error-tag-v3';
23
23
  export * from './or-error-v3';
24
+ export * from './or-empty-state-v3';
24
25
  export * from './or-expansion-panel-v3';
25
26
  export * from './or-fab-v3';
26
27
  export * from './or-floating';
@@ -15,7 +15,7 @@ export { _ as OrCheckbox } from '../OrCheckbox-915f1f0a.js';
15
15
  export { _ as OrCheckboxV3 } from '../OrCheckbox-567e387c.js';
16
16
  export { _ as OrChip } from '../OrChips.vue_rollup-plugin-vue_script-aa8fedaa.js';
17
17
  export { _ as OrChips } from '../OrChips-5e0063be.js';
18
- export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-41dd5f9b.js';
18
+ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-d4400b42.js';
19
19
  export { _ as OrCollapse } from '../OrCollapse-4d892ca3.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-75abefdd.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-d7112dd3.js';
@@ -24,6 +24,7 @@ export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemType
24
24
  export { _ as OrError } from '../OrError-081130bb.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-782dd714.js';
26
26
  export { _ as OrErrorV3 } from '../OrError-d267ee9a.js';
27
+ export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../OrEmptyState-2481f13f.js';
27
28
  export { a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from '../OrExpansionPanel-968ddc61.js';
28
29
  export { F as FabColor, _ as OrFabV3 } from '../OrFab-26106618.js';
29
30
  export { _ as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from '../OrFloating-89d6582a.js';
@@ -104,6 +105,8 @@ import '@vueuse/core';
104
105
  import '../color-1f348774.js';
105
106
  import '@splidejs/splide';
106
107
  import '@codemirror/state';
108
+ import '@codemirror/view';
109
+ import '@codemirror/commands';
107
110
  import 'codemirror';
108
111
  import '@codemirror/lang-html';
109
112
  import '@codemirror/lang-css';
@@ -1,5 +1,7 @@
1
- export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-41dd5f9b.js';
1
+ export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-d4400b42.js';
2
2
  import '@codemirror/state';
3
+ import '@codemirror/view';
4
+ import '@codemirror/commands';
3
5
  import '@vueuse/core';
4
6
  import 'codemirror';
5
7
  import 'lodash';
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { EmptyStateSize } from '.';
2
+ import { EmptyStateSize } from './props';
3
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
5
  rootClasses: import("@vue/composition-api").ComputedRef<string[]>;
@@ -1,158 +1,3 @@
1
- import { defineComponent, ref, computed } from 'vue-demi';
2
- import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
3
-
4
- var EmptyStateSize;
5
- (function (EmptyStateSize) {
6
- EmptyStateSize["L"] = "l";
7
- EmptyStateSize["M"] = "m";
8
- })(EmptyStateSize || (EmptyStateSize = {}));
9
-
10
- const EmptyStateRoot = [
11
- // Layout
12
- 'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
13
- // Box
14
- 'w-full',
15
- // Sizing
16
- 'gap-sm'];
17
- const EmptyStateImage = [
18
- // Sizing
19
- 'mb-sm'];
20
- const EmptyStateImageSizes = {
21
- [EmptyStateSize.L]: [
22
- // Box
23
- 'h-3xl'],
24
- [EmptyStateSize.M]: [
25
- // Box
26
- 'h-2xl']
27
- };
28
- const EmptyStateHeading = [
29
- // Theme
30
- 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
31
- const EmptyStateHeadingSizes = {
32
- [EmptyStateSize.L]: [
33
- // Typography
34
- 'typography-headline-2'],
35
- [EmptyStateSize.M]: [
36
- // Typography
37
- 'typography-headline-4']
38
- };
39
- const EmptyStateText = ['text-center',
40
- // Theme
41
- 'text-outline', 'dark:text-outline-dark'];
42
- const EmptyStateContent = EmptyStateText;
43
- const EmptyStateTextSizes = {
44
- [EmptyStateSize.L]: [
45
- // Typography
46
- 'typography-body-2-regular'],
47
- [EmptyStateSize.M]: [
48
- // Typography
49
- 'typography-caption-regular']
50
- };
51
- const EmptyStateContentSizes = EmptyStateTextSizes;
52
-
53
- /**
54
- * The component to display when there is no content on a page,
55
- * no records found or selected, or while the data is being loaded.
56
- * Provides a hint to the user on what to do.
57
- * Consists of text message, optional icon and optional loader.
58
- */
59
- var script = defineComponent({
60
- name: 'OrEmptyState',
61
- props: {
62
- /**
63
- * Size of the component, affects font and icon size.
64
- * Use Large if the component takes all screen space,
65
- * and Medium if it is a part of the complex layout.
66
- */
67
- size: {
68
- type: String,
69
- default: EmptyStateSize.M
70
- },
71
- /**
72
- * The heading of the empty state block.
73
- */
74
- heading: {
75
- type: String,
76
- default: ''
77
- },
78
- /**
79
- * Additional text such as a hint for a user with proposed next steps.
80
- */
81
- text: {
82
- type: String,
83
- default: ''
84
- },
85
- /**
86
- * Path to the image to display above the heading.
87
- * Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
88
- */
89
- imageSrc: {
90
- type: String,
91
- default: undefined
92
- }
93
- },
94
- setup(props) {
95
- const root = ref();
96
- const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
97
- const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
98
- const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
99
- const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
100
- const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
101
- return {
102
- root,
103
- rootClasses,
104
- imageClasses,
105
- headingClasses,
106
- textClasses,
107
- slotClasses
108
- };
109
- }
110
- });
111
-
112
- /* script */
113
- const __vue_script__ = script;
114
-
115
- /* template */
116
- var __vue_render__ = function () {
117
- var _vm = this;
118
- var _h = _vm.$createElement;
119
- var _c = _vm._self._c || _h;
120
- return _c('div', {
121
- ref: "root",
122
- class: _vm.rootClasses
123
- }, [_vm.imageSrc ? _c('img', {
124
- class: _vm.imageClasses,
125
- attrs: {
126
- "src": _vm.imageSrc,
127
- "alt": ""
128
- }
129
- }) : _vm._e(), _vm._v(" "), _c('div', {
130
- class: _vm.headingClasses
131
- }, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.$slots.default ? _c('div', {
132
- class: _vm.slotClasses
133
- }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
134
- class: _vm.textClasses
135
- }, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])]);
136
- };
137
- var __vue_staticRenderFns__ = [];
138
-
139
- /* style */
140
- const __vue_inject_styles__ = undefined;
141
- /* scoped */
142
- const __vue_scope_id__ = undefined;
143
- /* module identifier */
144
- const __vue_module_identifier__ = undefined;
145
- /* functional template */
146
- const __vue_is_functional_template__ = false;
147
- /* style inject */
148
-
149
- /* style inject SSR */
150
-
151
- /* style inject shadow dom */
152
-
153
- const __vue_component__ = /*#__PURE__*/normalizeComponent({
154
- render: __vue_render__,
155
- staticRenderFns: __vue_staticRenderFns__
156
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
157
-
158
- export { EmptyStateSize, __vue_component__ as OrEmptyStateV3 };
1
+ export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../../OrEmptyState-2481f13f.js';
2
+ import 'vue-demi';
3
+ import '../../normalize-component-6e8e3d80.js';
@@ -1,6 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { InputBoxVariant } from '.';
3
- import { InputBoxSize } from './props';
2
+ import { InputBoxSize, InputBoxVariant } from './props';
4
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
5
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
@@ -15,7 +15,7 @@ export { _ as OrCheckbox } from './OrCheckbox-915f1f0a.js';
15
15
  export { _ as OrCheckboxV3 } from './OrCheckbox-567e387c.js';
16
16
  export { _ as OrChip } from './OrChips.vue_rollup-plugin-vue_script-aa8fedaa.js';
17
17
  export { _ as OrChips } from './OrChips-5e0063be.js';
18
- export { _ as OrCode, O as OrCodeLanguages } from './OrCode-41dd5f9b.js';
18
+ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-d4400b42.js';
19
19
  export { _ as OrCollapse } from './OrCollapse-4d892ca3.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-75abefdd.js';
21
21
  export { _ as OrConfirm } from './OrConfirm-d7112dd3.js';
@@ -24,6 +24,7 @@ export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemType
24
24
  export { _ as OrError } from './OrError-081130bb.js';
25
25
  export { _ as OrErrorTagV3 } from './OrErrorTag-782dd714.js';
26
26
  export { _ as OrErrorV3 } from './OrError-d267ee9a.js';
27
+ export { E as EmptyStateSize, _ as OrEmptyStateV3 } from './OrEmptyState-2481f13f.js';
27
28
  export { a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from './OrExpansionPanel-968ddc61.js';
28
29
  export { F as FabColor, _ as OrFabV3 } from './OrFab-26106618.js';
29
30
  export { _ as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-89d6582a.js';
@@ -109,6 +110,8 @@ import './browser-82dea9ed.js';
109
110
  import '@vueuse/core';
110
111
  import '@splidejs/splide';
111
112
  import '@codemirror/state';
113
+ import '@codemirror/view';
114
+ import '@codemirror/commands';
112
115
  import 'codemirror';
113
116
  import '@codemirror/lang-html';
114
117
  import '@codemirror/lang-css';
@@ -9,7 +9,7 @@ import { s as script$6 } from './OrIcon-b195169c.js';
9
9
  import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createElementVNode, createVNode, withCtx, createBlock, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
10
10
  import { s as script$3 } from './OrButton-bb6bf8a9.js';
11
11
  import { s as script$7 } from './OrSearch-e5a2e93e.js';
12
- import './OrInputBox-5247ab25.js';
12
+ import './OrInputBox-6d1b6059.js';
13
13
 
14
14
  const CardCollectionRoot = [
15
15
  // Layout
@@ -1,4 +1,6 @@
1
1
  import { EditorState } from '@codemirror/state';
2
+ import { keymap } from '@codemirror/view';
3
+ import { indentWithTab } from '@codemirror/commands';
2
4
  import { useElementHover } from '@vueuse/core';
3
5
  import { basicSetup, EditorView } from 'codemirror';
4
6
  import _ from 'lodash';
@@ -199,7 +201,7 @@ var script = defineComponent({
199
201
  }
200
202
  }),
201
203
  // line wrapping
202
- lineWrapping ? EditorView.lineWrapping : undefined]);
204
+ lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])]);
203
205
  // Append Extensions (such as basic-setup)
204
206
  if (this.extensions.length !== 0) _.merge(ext, this.extensions);
205
207
  return ext;
@@ -0,0 +1,135 @@
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
+ import { openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, toDisplayString, renderSlot } from 'vue';
3
+
4
+ var EmptyStateSize;
5
+ (function (EmptyStateSize) {
6
+ EmptyStateSize["L"] = "l";
7
+ EmptyStateSize["M"] = "m";
8
+ })(EmptyStateSize || (EmptyStateSize = {}));
9
+
10
+ const EmptyStateRoot = [
11
+ // Layout
12
+ 'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
13
+ // Box
14
+ 'w-full',
15
+ // Sizing
16
+ 'gap-sm'];
17
+ const EmptyStateImage = [
18
+ // Sizing
19
+ 'mb-sm'];
20
+ const EmptyStateImageSizes = {
21
+ [EmptyStateSize.L]: [
22
+ // Box
23
+ 'h-3xl'],
24
+ [EmptyStateSize.M]: [
25
+ // Box
26
+ 'h-2xl']
27
+ };
28
+ const EmptyStateHeading = [
29
+ // Theme
30
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
31
+ const EmptyStateHeadingSizes = {
32
+ [EmptyStateSize.L]: [
33
+ // Typography
34
+ 'typography-headline-2'],
35
+ [EmptyStateSize.M]: [
36
+ // Typography
37
+ 'typography-headline-4']
38
+ };
39
+ const EmptyStateText = ['text-center',
40
+ // Theme
41
+ 'text-outline', 'dark:text-outline-dark'];
42
+ const EmptyStateContent = EmptyStateText;
43
+ const EmptyStateTextSizes = {
44
+ [EmptyStateSize.L]: [
45
+ // Typography
46
+ 'typography-body-2-regular'],
47
+ [EmptyStateSize.M]: [
48
+ // Typography
49
+ 'typography-caption-regular']
50
+ };
51
+ const EmptyStateContentSizes = EmptyStateTextSizes;
52
+
53
+ /**
54
+ * The component to display when there is no content on a page,
55
+ * no records found or selected, or while the data is being loaded.
56
+ * Provides a hint to the user on what to do.
57
+ * Consists of text message, optional icon and optional loader.
58
+ */
59
+ var script = defineComponent({
60
+ name: 'OrEmptyState',
61
+ props: {
62
+ /**
63
+ * Size of the component, affects font and icon size.
64
+ * Use Large if the component takes all screen space,
65
+ * and Medium if it is a part of the complex layout.
66
+ */
67
+ size: {
68
+ type: String,
69
+ default: EmptyStateSize.M
70
+ },
71
+ /**
72
+ * The heading of the empty state block.
73
+ */
74
+ heading: {
75
+ type: String,
76
+ default: ''
77
+ },
78
+ /**
79
+ * Additional text such as a hint for a user with proposed next steps.
80
+ */
81
+ text: {
82
+ type: String,
83
+ default: ''
84
+ },
85
+ /**
86
+ * Path to the image to display above the heading.
87
+ * Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
88
+ */
89
+ imageSrc: {
90
+ type: String,
91
+ default: undefined
92
+ }
93
+ },
94
+ setup(props) {
95
+ const root = ref();
96
+ const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
97
+ const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
98
+ const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
99
+ const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
100
+ const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
101
+ return {
102
+ root,
103
+ rootClasses,
104
+ imageClasses,
105
+ headingClasses,
106
+ textClasses,
107
+ slotClasses
108
+ };
109
+ }
110
+ });
111
+
112
+ const _hoisted_1 = ["src"];
113
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
114
+ return openBlock(), createElementBlock("div", {
115
+ ref: "root",
116
+ class: normalizeClass(_ctx.rootClasses)
117
+ }, [_ctx.imageSrc ? (openBlock(), createElementBlock("img", {
118
+ key: 0,
119
+ src: _ctx.imageSrc,
120
+ class: normalizeClass(_ctx.imageClasses),
121
+ alt: ""
122
+ }, null, 10 /* CLASS, PROPS */, _hoisted_1)) : createCommentVNode("v-if", true), createElementVNode("div", {
123
+ class: normalizeClass(_ctx.headingClasses)
124
+ }, toDisplayString(_ctx.heading), 3 /* TEXT, CLASS */), _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
125
+ key: 1,
126
+ class: normalizeClass(_ctx.slotClasses)
127
+ }, [createCommentVNode(" @slot Additional content can be inserted via default slot. The slot uses the same font as a `text` prop. "), renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
128
+ class: normalizeClass(_ctx.textClasses)
129
+ }, toDisplayString(_ctx.text), 3 /* TEXT, CLASS */)], 2 /* CLASS */);
130
+ }
131
+
132
+ script.render = render;
133
+ script.__file = "src/components/or-empty-state-v3/OrEmptyState.vue";
134
+
135
+ export { EmptyStateSize as E, script as s };
@@ -5,7 +5,7 @@ import { s as script$1 } from './OrError-ec8c709d.js';
5
5
  import { s as script$2 } from './OrHint-74bb732d.js';
6
6
  import { s as script$4 } from './OrIconButton-1eebcafc.js';
7
7
  import { s as script$3 } from './OrIcon-b195169c.js';
8
- import { s as script$5, a as InputBoxSize } from './OrInputBox-5247ab25.js';
8
+ import { s as script$5, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
9
9
  import { s as script$6 } from './OrLabel-bdaec602.js';
10
10
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, withModifiers, Fragment, createSlots } from 'vue';
11
11
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
- import { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';
3
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
3
  import '@vueuse/core';
4
+ import { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';
5
5
 
6
6
  var InputBoxVariant;
7
7
  (function (InputBoxVariant) {
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
4
  import { s as script$1 } from './OrInput-41691fb3.js';
5
- import { a as InputBoxSize } from './OrInputBox-5247ab25.js';
5
+ import { a as InputBoxSize } from './OrInputBox-6d1b6059.js';
6
6
  import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
7
7
 
8
8
  var script = defineComponent({
@@ -8,7 +8,7 @@ import { s as script$2 } from './OrError-ec8c709d.js';
8
8
  import { s as script$3 } from './OrExpansionPanel-311e64cf.js';
9
9
  import { s as script$4 } from './OrHint-74bb732d.js';
10
10
  import { s as script$5 } from './OrIcon-b195169c.js';
11
- import { s as script$7, a as InputBoxSize } from './OrInputBox-5247ab25.js';
11
+ import { s as script$7, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
12
12
  import { s as script$6 } from './OrInput-41691fb3.js';
13
13
  import { s as script$8 } from './OrLabel-bdaec602.js';
14
14
  import { s as script$9 } from './OrMenuItem-9da279f6.js';
@@ -3,7 +3,7 @@ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
3
  import '@vueuse/core';
4
4
  import { s as script$1 } from './OrError-ec8c709d.js';
5
5
  import { s as script$2 } from './OrHint-74bb732d.js';
6
- import { s as script$3, a as InputBoxSize } from './OrInputBox-5247ab25.js';
6
+ import { s as script$3, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
7
7
  import { s as script$4 } from './OrLabel-bdaec602.js';
8
8
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelText, Fragment, createSlots } from 'vue';
9
9
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
@@ -21,6 +21,7 @@ export * from './or-date-time-picker';
21
21
  export * from './or-error';
22
22
  export * from './or-error-tag-v3';
23
23
  export * from './or-error-v3';
24
+ export * from './or-empty-state-v3';
24
25
  export * from './or-expansion-panel-v3';
25
26
  export * from './or-fab-v3';
26
27
  export * from './or-floating';