@appscode/design-system 1.0.43-alpha.111 → 1.0.43-alpha.112

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.0.43-alpha.111",
3
+ "version": "1.0.43-alpha.112",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -1,7 +1,11 @@
1
1
  <template>
2
2
  <div v-if="isLoaderActive" ref="cellLoaderDiv" :style="{ maxWidth: '300px' }">
3
- <content-loader :height="10" :width="computedCellWidth || 300" :primaryColor="primaryColor"
4
- :secondaryColor="secondaryColor" />
3
+ <content-loader
4
+ :height="10"
5
+ :width="computedCellWidth || 300"
6
+ :primaryColor="primaryColor"
7
+ :secondaryColor="secondaryColor"
8
+ />
5
9
  </div>
6
10
  <div v-else class="haha" ref="cellDiv">
7
11
  <object-cell
@@ -17,7 +21,7 @@
17
21
  :max-character-length="maxCharacterLength"
18
22
  />
19
23
  <template v-else>
20
- <span class="is-ellipsis-1" :title="value">{{
24
+ <span class="is-ellipsis-1" :title="tooltip">{{
21
25
  value || (value === 0 ? 0 : "-")
22
26
  }}</span>
23
27
  </template>
@@ -25,7 +29,12 @@
25
29
  </template>
26
30
 
27
31
  <script>
28
- import {loaderLightThemePrimaryColor, loaderDarkThemePrimaryColor, loaderLightThemeSecondaryColor, loaderDarkThemeSecondaryColor} from "@appscode/design-system/plugins/theme";
32
+ import {
33
+ loaderLightThemePrimaryColor,
34
+ loaderDarkThemePrimaryColor,
35
+ loaderLightThemeSecondaryColor,
36
+ loaderDarkThemeSecondaryColor,
37
+ } from "@appscode/design-system/plugins/theme";
29
38
 
30
39
  export default {
31
40
  props: {
@@ -41,6 +50,10 @@ export default {
41
50
  type: null,
42
51
  default: "",
43
52
  },
53
+ tooltip: {
54
+ type: String,
55
+ defualt: "",
56
+ },
44
57
  },
45
58
  components: {
46
59
  ContentLoader: () =>
@@ -60,11 +73,15 @@ export default {
60
73
  return Math.ceil(this.computedCellWidth / 8);
61
74
  },
62
75
  primaryColor() {
63
- return document.documentElement.classList.contains("is-dark-theme") ? loaderDarkThemePrimaryColor : loaderLightThemePrimaryColor;
76
+ return document.documentElement.classList.contains("is-dark-theme")
77
+ ? loaderDarkThemePrimaryColor
78
+ : loaderLightThemePrimaryColor;
64
79
  },
65
80
  secondaryColor() {
66
- return document.documentElement.classList.contains("is-dark-theme") ? loaderDarkThemeSecondaryColor : loaderLightThemeSecondaryColor;
67
- }
81
+ return document.documentElement.classList.contains("is-dark-theme")
82
+ ? loaderDarkThemeSecondaryColor
83
+ : loaderLightThemeSecondaryColor;
84
+ },
68
85
  },
69
86
 
70
87
  data() {
@@ -22,7 +22,7 @@
22
22
  :max-character-length="maxCharacterLength"
23
23
  />
24
24
  <template v-else>
25
- <span class="is-ellipsis-1" :title="value">{{
25
+ <span class="is-ellipsis-1" :title="tooltip">{{
26
26
  value || (value === 0 ? 0 : "-")
27
27
  }}</span>
28
28
  </template>
@@ -31,7 +31,12 @@
31
31
 
32
32
  <script>
33
33
  import { defineComponent, defineAsyncComponent } from "vue";
34
- import { loaderLightThemePrimaryColor, loaderDarkThemePrimaryColor, loaderLightThemeSecondaryColor, loaderDarkThemeSecondaryColor } from "@appscode/design-system/plugins/theme";
34
+ import {
35
+ loaderLightThemePrimaryColor,
36
+ loaderDarkThemePrimaryColor,
37
+ loaderLightThemeSecondaryColor,
38
+ loaderDarkThemeSecondaryColor,
39
+ } from "@appscode/design-system/plugins/theme";
35
40
 
36
41
  export default defineComponent({
37
42
  props: {
@@ -47,6 +52,10 @@ export default defineComponent({
47
52
  type: null,
48
53
  default: "",
49
54
  },
55
+ tooltip: {
56
+ type: String,
57
+ defualt: "",
58
+ },
50
59
  },
51
60
  components: {
52
61
  ContentLoader: defineAsyncComponent(() =>
@@ -71,11 +80,15 @@ export default defineComponent({
71
80
  return Math.ceil(this.computedCellWidth / 8);
72
81
  },
73
82
  primaryColor() {
74
- return document.documentElement.classList.contains("is-dark-theme") ? loaderDarkThemePrimaryColor : loaderLightThemePrimaryColor;
83
+ return document.documentElement.classList.contains("is-dark-theme")
84
+ ? loaderDarkThemePrimaryColor
85
+ : loaderLightThemePrimaryColor;
75
86
  },
76
87
  secondaryColor() {
77
- return document.documentElement.classList.contains("is-dark-theme") ? loaderDarkThemeSecondaryColor : loaderLightThemeSecondaryColor;
78
- }
88
+ return document.documentElement.classList.contains("is-dark-theme")
89
+ ? loaderDarkThemeSecondaryColor
90
+ : loaderLightThemeSecondaryColor;
91
+ },
79
92
  },
80
93
 
81
94
  data() {