@appscode/design-system 2.0.15 → 2.0.17

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.
@@ -408,6 +408,9 @@
408
408
  &.is-medium {
409
409
  font-size: 1rem;
410
410
  height: 36px;
411
+ &.is-square {
412
+ width: 36px;
413
+ }
411
414
  }
412
415
  &.is-tinny {
413
416
  height: 24px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -17,6 +17,7 @@ interface Props {
17
17
  url?: string;
18
18
  urlLabel?: string;
19
19
  noDataAvailable?: boolean;
20
+ hideCreateButton?: boolean;
20
21
  }
21
22
 
22
23
  withDefaults(defineProps<Props>(), {
@@ -28,6 +29,7 @@ withDefaults(defineProps<Props>(), {
28
29
  url: "#",
29
30
  urlLabel: "Details",
30
31
  noDataAvailable: false,
32
+ hideCreateButton: false,
31
33
  });
32
34
  </script>
33
35
  <template>
@@ -47,7 +49,11 @@ withDefaults(defineProps<Props>(), {
47
49
  </figure>
48
50
  <h5>{{ title }}</h5>
49
51
 
50
- <AcButton v-if="noDataAvailable" :title="urlLabel" icon-class="unplugin">
52
+ <AcButton
53
+ v-if="noDataAvailable && !hideCreateButton"
54
+ :title="urlLabel"
55
+ icon-class="unplugin"
56
+ >
51
57
  <template #icon><HeroiconsPlus /></template>
52
58
  </AcButton>
53
59
 
@@ -57,7 +63,9 @@ withDefaults(defineProps<Props>(), {
57
63
  modifier-classes="is-text px-0 is-flex-direction-row-reverse gap-8"
58
64
  icon-class="unplugin"
59
65
  >
60
- <template #icon><HeroiconsArrowSmallRight /></template>
66
+ <template #icon v-if="!hideCreateButton"
67
+ ><HeroiconsArrowSmallRight
68
+ /></template>
61
69
  </AcButton>
62
70
  </div>
63
71
  <div class="right-content" v-if="!noDataAvailable">