@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.
- package/dist/bundled/v2/{OrCode-edc7a1f5.js → OrCode-fc6876ec.js} +56 -17
- package/dist/bundled/v2/OrEmptyState-9fb413f9.js +160 -0
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +2 -1
- package/dist/bundled/v2/components/or-code/index.js +1 -1
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +3 -159
- package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/bundled/v2/index.js +2 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ef5e7f04.js → OrCode.vue_vue_type_script_lang-c55de81d.js} +53 -14
- package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-da7d6c42.js +111 -0
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +2 -1
- package/dist/bundled/v3/components/or-code/index.js +1 -1
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +2 -134
- package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/bundled/v3/index.js +214 -189
- package/dist/esm/v2/{OrCode-41dd5f9b.js → OrCode-d4400b42.js} +6 -4
- package/dist/esm/v2/OrEmptyState-2481f13f.js +158 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +4 -1
- package/dist/esm/v2/components/or-code/index.js +3 -1
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/esm/v2/components/or-empty-state-v3/index.js +3 -158
- package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/esm/v2/index.js +4 -1
- package/dist/esm/v3/OrCardCollection-2a6514f3.js +1 -1
- package/dist/esm/v3/{OrCode-ee19a5e6.js → OrCode-5ed69c23.js} +3 -1
- package/dist/esm/v3/OrEmptyState-bb8e3145.js +135 -0
- package/dist/esm/v3/OrInput-41691fb3.js +1 -1
- package/dist/esm/v3/{OrInputBox-5247ab25.js → OrInputBox-6d1b6059.js} +1 -1
- package/dist/esm/v3/OrSearch-e5a2e93e.js +1 -1
- package/dist/esm/v3/OrSelect-7e813982.js +1 -1
- package/dist/esm/v3/OrTextarea-bb9ef3f2.js +1 -1
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +5 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +1 -1
- package/dist/esm/v3/components/or-code/index.js +3 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-empty-state-v3/index.js +3 -135
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/esm/v3/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +5 -2
- package/package.json +3 -2
- package/src/components/index.ts +1 -0
- package/src/components/or-card/OrCard.stories.ts +1 -1
- package/src/components/or-card-collection/OrCardCollection.stories.ts +1 -1
- package/src/components/or-code/OrCode.vue +3 -1
- package/src/components/or-empty-state-v3/OrEmptyState.vue +16 -10
- package/src/components/or-input-box-v3/OrInputBox.vue +1 -2
- package/src/components/or-teleport-v3/OrTeleport.stories3.ts +1 -1
|
@@ -12,7 +12,7 @@ export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem-636d99a1
|
|
|
12
12
|
export { s as OrCheckbox } from '../OrCheckbox-ed4a19cf.js';
|
|
13
13
|
export { s as OrCheckboxV3 } from '../OrCheckbox-3e139eac.js';
|
|
14
14
|
export { s as OrChip, a as OrChips } from '../OrChips-9afba42f.js';
|
|
15
|
-
export { s as OrCode, O as OrCodeLanguages } from '../OrCode-
|
|
15
|
+
export { s as OrCode, O as OrCodeLanguages } from '../OrCode-5ed69c23.js';
|
|
16
16
|
export { s as OrCollapse } from '../OrCollapse-445141ab.js';
|
|
17
17
|
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-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from '../OrConfirm-f39bd784.js';
|
|
@@ -21,6 +21,7 @@ export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemType
|
|
|
21
21
|
export { s as OrError } from '../OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from '../OrErrorTag-98252eef.js';
|
|
23
23
|
export { s as OrErrorV3 } from '../OrError-ec8c709d.js';
|
|
24
|
+
export { E as EmptyStateSize, s as OrEmptyStateV3 } from '../OrEmptyState-bb8e3145.js';
|
|
24
25
|
export { a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from '../OrExpansionPanel-311e64cf.js';
|
|
25
26
|
export { F as FabColor, s as OrFabV3 } from '../OrFab-c8ae6e01.js';
|
|
26
27
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from '../OrFloating-5240e758.js';
|
|
@@ -33,7 +34,7 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
|
|
|
33
34
|
export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput-31026cd0.js';
|
|
34
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from '../OrInlineTextEdit-1aa477b5.js';
|
|
35
36
|
export { s as OrInlineTextareaV3 } from '../OrInlineTextarea-b28c3d8c.js';
|
|
36
|
-
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox-
|
|
37
|
+
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox-6d1b6059.js';
|
|
37
38
|
export { I as InputType, s as OrInputV3 } from '../OrInput-41691fb3.js';
|
|
38
39
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from '../OrSearch-7cb2c91c.js';
|
|
39
40
|
export { s as OrLabel } from '../OrLabel-876f8729.js';
|
|
@@ -98,6 +99,8 @@ import '@vueuse/core';
|
|
|
98
99
|
import '../color-1f348774.js';
|
|
99
100
|
import '@splidejs/splide';
|
|
100
101
|
import '@codemirror/state';
|
|
102
|
+
import '@codemirror/view';
|
|
103
|
+
import '@codemirror/commands';
|
|
101
104
|
import 'codemirror';
|
|
102
105
|
import '@codemirror/lang-html';
|
|
103
106
|
import '@codemirror/lang-css';
|
|
@@ -21,6 +21,6 @@ import '../../OrSearch-e5a2e93e.js';
|
|
|
21
21
|
import '../../OrInput-41691fb3.js';
|
|
22
22
|
import '../../OrError-ec8c709d.js';
|
|
23
23
|
import '../../OrHint-74bb732d.js';
|
|
24
|
-
import '../../OrInputBox-
|
|
24
|
+
import '../../OrInputBox-6d1b6059.js';
|
|
25
25
|
import '../../OrLabel-bdaec602.js';
|
|
26
26
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { s as OrCode, O as OrCodeLanguages } from '../../OrCode-
|
|
1
|
+
export { s as OrCode, O as OrCodeLanguages } from '../../OrCode-5ed69c23.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';
|
|
@@ -18,7 +18,7 @@ import '../../OrPopover-1075dd38.js';
|
|
|
18
18
|
import '@floating-ui/dom';
|
|
19
19
|
import '../../useResponsive-a02e95b7.js';
|
|
20
20
|
import '../../OrBottomSheet-62817aec.js';
|
|
21
|
-
import '../../OrInputBox-
|
|
21
|
+
import '../../OrInputBox-6d1b6059.js';
|
|
22
22
|
import '../../OrLabel-bdaec602.js';
|
|
23
23
|
import '../../style-inject.es-4c6f2515.js';
|
|
24
24
|
import '@vueuse/math';
|
|
@@ -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,135 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
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, script as OrEmptyStateV3 };
|
|
1
|
+
export { E as EmptyStateSize, s as OrEmptyStateV3 } from '../../OrEmptyState-bb8e3145.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import 'vue';
|
|
@@ -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)[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-
|
|
1
|
+
export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-6d1b6059.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import 'vue';
|
|
4
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
4
|
import '@vueuse/core';
|
|
5
|
+
import 'vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as InputType, s as OrInputV3 } from '../../OrInput-41691fb3.js';
|
|
2
|
-
export { a as InputSize } from '../../OrInputBox-
|
|
2
|
+
export { a as InputSize } from '../../OrInputBox-6d1b6059.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
5
|
import '@vueuse/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { s as OrSearchV3 } from '../../OrSearch-e5a2e93e.js';
|
|
2
|
-
export { a as SearchSize } from '../../OrInputBox-
|
|
2
|
+
export { a as SearchSize } from '../../OrInputBox-6d1b6059.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '../../useClassAttribute-47fdb016.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { s as OrSelectV3 } from '../../OrSelect-7e813982.js';
|
|
2
|
-
export { a as SelectSize } from '../../OrInputBox-
|
|
2
|
+
export { a as SelectSize } from '../../OrInputBox-6d1b6059.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
5
5
|
import '../../useClassAttribute-47fdb016.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { s as OrTextareaV3 } from '../../OrTextarea-bb9ef3f2.js';
|
|
2
|
-
export { a as TextareaSize } from '../../OrInputBox-
|
|
2
|
+
export { a as TextareaSize } from '../../OrInputBox-6d1b6059.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
5
|
import '@vueuse/core';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.
|
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
|
|
13
13
|
export { s as OrCheckboxV3 } from './OrCheckbox-3e139eac.js';
|
|
14
14
|
export { s as OrChip, a as OrChips } from './OrChips-9afba42f.js';
|
|
15
|
-
export { s as OrCode, O as OrCodeLanguages } from './OrCode-
|
|
15
|
+
export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
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-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-f39bd784.js';
|
|
@@ -21,6 +21,7 @@ export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemType
|
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-98252eef.js';
|
|
23
23
|
export { s as OrErrorV3 } from './OrError-ec8c709d.js';
|
|
24
|
+
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-bb8e3145.js';
|
|
24
25
|
export { a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-311e64cf.js';
|
|
25
26
|
export { F as FabColor, s as OrFabV3 } from './OrFab-c8ae6e01.js';
|
|
26
27
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-5240e758.js';
|
|
@@ -33,7 +34,7 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
|
|
|
33
34
|
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-31026cd0.js';
|
|
34
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
35
36
|
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-b28c3d8c.js';
|
|
36
|
-
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-
|
|
37
|
+
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-6d1b6059.js';
|
|
37
38
|
export { I as InputType, s as OrInputV3 } from './OrInput-41691fb3.js';
|
|
38
39
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
|
|
39
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
@@ -103,6 +104,8 @@ import './style-inject.es-4c6f2515.js';
|
|
|
103
104
|
import '@vueuse/core';
|
|
104
105
|
import '@splidejs/splide';
|
|
105
106
|
import '@codemirror/state';
|
|
107
|
+
import '@codemirror/view';
|
|
108
|
+
import '@codemirror/commands';
|
|
106
109
|
import 'codemirror';
|
|
107
110
|
import '@codemirror/lang-html';
|
|
108
111
|
import '@codemirror/lang-css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.69.
|
|
3
|
+
"version": "2.69.6",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"switch:vue3": "node scripts/swap-vue.js 3 && vue-demi-switch 3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"@codemirror/commands": "^6.2.1",
|
|
34
35
|
"@codemirror/lang-css": "6.0.0",
|
|
35
36
|
"@codemirror/lang-html": "6.1.0",
|
|
36
37
|
"@codemirror/lang-javascript": "6.0.2",
|
|
@@ -124,5 +125,5 @@
|
|
|
124
125
|
},
|
|
125
126
|
"./package.json": "./package.json"
|
|
126
127
|
},
|
|
127
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "2f79357d4f0173f5ad87d369d24fa62b035b9088"
|
|
128
129
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -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';
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
<script lang="ts">
|
|
84
84
|
import { Language, LanguageSupport } from '@codemirror/language';
|
|
85
85
|
import { EditorState, Extension, Transaction } from '@codemirror/state';
|
|
86
|
-
import { ViewUpdate } from '@codemirror/view';
|
|
86
|
+
import { ViewUpdate, keymap } from '@codemirror/view';
|
|
87
|
+
import { indentWithTab } from '@codemirror/commands';
|
|
87
88
|
import { useElementHover } from '@vueuse/core';
|
|
88
89
|
import { basicSetup, EditorView } from 'codemirror';
|
|
89
90
|
import _ from 'lodash';
|
|
@@ -257,6 +258,7 @@ export default defineComponent({
|
|
|
257
258
|
}),
|
|
258
259
|
// line wrapping
|
|
259
260
|
lineWrapping ? EditorView.lineWrapping : undefined,
|
|
261
|
+
keymap.of([indentWithTab]),
|
|
260
262
|
]) as Extension[];
|
|
261
263
|
|
|
262
264
|
// Append Extensions (such as basic-setup)
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
-
:class="rootClasses"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
:class="rootClasses"
|
|
5
|
+
>
|
|
6
|
+
<img
|
|
7
|
+
v-if="imageSrc"
|
|
8
|
+
:src="imageSrc"
|
|
9
|
+
:class="imageClasses"
|
|
10
|
+
alt=""
|
|
11
|
+
>
|
|
9
12
|
<div :class="headingClasses">
|
|
10
13
|
{{ heading }}
|
|
11
14
|
</div>
|
|
12
|
-
<div
|
|
15
|
+
<div
|
|
16
|
+
v-if="$slots.default"
|
|
17
|
+
:class="slotClasses"
|
|
18
|
+
>
|
|
13
19
|
<!-- @slot Additional content can be inserted via default slot. The slot uses the same font as a `text` prop. -->
|
|
14
|
-
<slot/>
|
|
20
|
+
<slot />
|
|
15
21
|
</div>
|
|
16
22
|
<div :class="textClasses">
|
|
17
23
|
{{ text }}
|
|
@@ -21,7 +27,7 @@
|
|
|
21
27
|
|
|
22
28
|
<script lang="ts">
|
|
23
29
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
24
|
-
import { EmptyStateSize } from '
|
|
30
|
+
import { EmptyStateSize } from './props';
|
|
25
31
|
import {
|
|
26
32
|
EmptyStateContent,
|
|
27
33
|
EmptyStateContentSizes,
|
|
@@ -31,7 +37,7 @@ import {
|
|
|
31
37
|
EmptyStateImageSizes,
|
|
32
38
|
EmptyStateRoot,
|
|
33
39
|
EmptyStateText,
|
|
34
|
-
EmptyStateTextSizes
|
|
40
|
+
EmptyStateTextSizes,
|
|
35
41
|
} from './styles';
|
|
36
42
|
|
|
37
43
|
/**
|
|
@@ -110,7 +116,7 @@ export default defineComponent({
|
|
|
110
116
|
headingClasses,
|
|
111
117
|
textClasses,
|
|
112
118
|
slotClasses,
|
|
113
|
-
}
|
|
119
|
+
};
|
|
114
120
|
},
|
|
115
121
|
});
|
|
116
122
|
</script>
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
<script lang="ts">
|
|
15
15
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
16
|
-
import { InputBoxVariant } from '.';
|
|
17
16
|
import { useClassAttribute } from '../../hooks';
|
|
18
|
-
import { InputBoxSize } from './props';
|
|
17
|
+
import { InputBoxSize, InputBoxVariant } from './props';
|
|
19
18
|
import { InputBoxRoot, InputBoxRootSizes, InputBoxRootVariants } from './styles';
|
|
20
19
|
|
|
21
20
|
export default defineComponent({
|