@onereach/ui-components 2.69.0-beta.2073.0 → 2.69.0-beta.2076.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.
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +16 -14
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +23 -24
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +16 -14
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +23 -23
- package/dist/bundled/v3/index.js +1 -1
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +16 -14
- package/dist/esm/v2/components/or-empty-state-v3/index.js +23 -24
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +16 -14
- package/dist/esm/v3/components/or-empty-state-v3/index.js +23 -23
- package/package.json +1 -1
- package/src/components/or-empty-state-v3/OrEmptyState.vue +36 -41
- package/src/components/or-empty-state-v3/styles.ts +6 -10
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { EmptyStateSize } from '.';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
rootClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
imageClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
headingClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
|
+
textClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
|
+
slotClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
10
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
10
11
|
/**
|
|
11
12
|
* Size of the component, affects font and icon size.
|
|
12
13
|
* Use Large if the component takes all screen space,
|
|
@@ -75,13 +76,14 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
75
76
|
heading: string;
|
|
76
77
|
text: string;
|
|
77
78
|
imageSrc: string;
|
|
78
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
80
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
81
|
+
rootClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
82
|
+
imageClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
83
|
+
headingClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
84
|
+
textClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
85
|
+
slotClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
86
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
85
87
|
size: EmptyStateSize;
|
|
86
88
|
heading: string;
|
|
87
89
|
text: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../index-fa6eb4ca.js';
|
|
2
|
-
import { defineComponent } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
2
|
+
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
3
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
4
4
|
import 'vue';
|
|
5
5
|
|
|
@@ -29,14 +29,14 @@ const EmptyStateImageSizes = {
|
|
|
29
29
|
};
|
|
30
30
|
const EmptyStateHeading = [
|
|
31
31
|
// Theme
|
|
32
|
-
'
|
|
32
|
+
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
33
33
|
const EmptyStateHeadingSizes = {
|
|
34
34
|
[EmptyStateSize.L]: [
|
|
35
35
|
// Typography
|
|
36
|
-
'
|
|
36
|
+
'typography-headline-2'],
|
|
37
37
|
[EmptyStateSize.M]: [
|
|
38
38
|
// Typography
|
|
39
|
-
'
|
|
39
|
+
'typography-headline-4']
|
|
40
40
|
};
|
|
41
41
|
const EmptyStateText = ['text-center',
|
|
42
42
|
// Theme
|
|
@@ -45,10 +45,10 @@ const EmptyStateContent = EmptyStateText;
|
|
|
45
45
|
const EmptyStateTextSizes = {
|
|
46
46
|
[EmptyStateSize.L]: [
|
|
47
47
|
// Typography
|
|
48
|
-
'
|
|
48
|
+
'typography-body-2-regular'],
|
|
49
49
|
[EmptyStateSize.M]: [
|
|
50
50
|
// Typography
|
|
51
|
-
'
|
|
51
|
+
'typography-caption-regular']
|
|
52
52
|
};
|
|
53
53
|
const EmptyStateContentSizes = EmptyStateTextSizes;
|
|
54
54
|
|
|
@@ -93,22 +93,21 @@ var script = defineComponent({
|
|
|
93
93
|
default: undefined
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
96
|
+
setup(props) {
|
|
97
|
+
const root = ref();
|
|
98
|
+
const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
|
|
99
|
+
const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
|
|
100
|
+
const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
|
|
101
|
+
const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
|
|
102
|
+
const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
|
|
103
|
+
return {
|
|
104
|
+
root,
|
|
105
|
+
rootClasses,
|
|
106
|
+
imageClasses,
|
|
107
|
+
headingClasses,
|
|
108
|
+
textClasses,
|
|
109
|
+
slotClasses
|
|
110
|
+
};
|
|
112
111
|
}
|
|
113
112
|
});
|
|
114
113
|
|
|
@@ -121,7 +120,7 @@ var __vue_render__ = function () {
|
|
|
121
120
|
var _h = _vm.$createElement;
|
|
122
121
|
var _c = _vm._self._c || _h;
|
|
123
122
|
return _c('div', {
|
|
124
|
-
|
|
123
|
+
ref: "root",
|
|
125
124
|
class: _vm.rootClasses
|
|
126
125
|
}, [_vm.imageSrc ? _c('img', {
|
|
127
126
|
class: _vm.imageClasses,
|
|
@@ -142,7 +141,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
142
141
|
/* style */
|
|
143
142
|
const __vue_inject_styles__ = undefined;
|
|
144
143
|
/* scoped */
|
|
145
|
-
const __vue_scope_id__ =
|
|
144
|
+
const __vue_scope_id__ = undefined;
|
|
146
145
|
/* module identifier */
|
|
147
146
|
const __vue_module_identifier__ = undefined;
|
|
148
147
|
/* functional template */
|