@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.
@@ -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<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {
4
- rootClasses(): string[];
5
- imageClasses(): string[];
6
- headingClasses(): string[];
7
- textClasses(): string[];
8
- slotClasses(): string[];
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<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {
79
- rootClasses(): string[];
80
- imageClasses(): string[];
81
- headingClasses(): string[];
82
- textClasses(): string[];
83
- slotClasses(): string[];
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
- 'text-on-background', 'dark:text-on-background-dark'];
32
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
33
33
  const EmptyStateHeadingSizes = {
34
34
  [EmptyStateSize.L]: [
35
35
  // Typography
36
- 'text-headline-2', 'font-headline-2'],
36
+ 'typography-headline-2'],
37
37
  [EmptyStateSize.M]: [
38
38
  // Typography
39
- 'text-headline-4', 'font-headline-4']
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
- 'text-body-2-regular', 'font-body-2-regular'],
48
+ 'typography-body-2-regular'],
49
49
  [EmptyStateSize.M]: [
50
50
  // Typography
51
- 'text-caption-regular', 'font-caption-regular']
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
- computed: {
97
- rootClasses() {
98
- return ['or-empty-state', ...EmptyStateRoot];
99
- },
100
- imageClasses() {
101
- return ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[this.size]];
102
- },
103
- headingClasses() {
104
- return ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[this.size]];
105
- },
106
- textClasses() {
107
- return ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[this.size]];
108
- },
109
- slotClasses() {
110
- return ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[this.size]];
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
- staticClass: "static",
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__ = "data-v-4ca51b1c";
144
+ const __vue_scope_id__ = undefined;
146
145
  /* module identifier */
147
146
  const __vue_module_identifier__ = undefined;
148
147
  /* functional template */