@appscode/design-system 1.1.0-alpha.23 → 1.1.0-alpha.25

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.
@@ -98,7 +98,7 @@
98
98
  p {
99
99
  font-size: $font-size-small;
100
100
  color: $ac-color-text;
101
- line-height: 1;
101
+ line-height: 1.5;
102
102
 
103
103
  &.free {
104
104
  color: $ac-primary;
@@ -121,7 +121,7 @@
121
121
  transition: 0.3s ease-in-out;
122
122
  position: relative;
123
123
  z-index: 1;
124
- width: 250px;
124
+ width: 230px;
125
125
 
126
126
  &.is-active-require-field {
127
127
  &:after {
@@ -17,7 +17,7 @@
17
17
  margin-bottom: 10px;
18
18
  }
19
19
 
20
- p :not(.ac-notification *){
20
+ p :not(.ac-notification *) {
21
21
  font-size: 13px;
22
22
  margin-bottom: 10px;
23
23
  color: $ac-color-value;
@@ -209,6 +209,7 @@
209
209
  .details-with-checkradio-wrapper {
210
210
  display: flex;
211
211
  gap: 15px;
212
+ flex-wrap: wrap;
212
213
  }
213
214
 
214
215
  // dark theme start
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.1.0-alpha.23",
3
+ "version": "1.1.0-alpha.25",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -6,4 +6,4 @@
6
6
  <slot />
7
7
  </div>
8
8
  </div>
9
- </template>
9
+ </template>
@@ -16,6 +16,15 @@
16
16
  <i v-else :class="`fa fa-${iconClass}`" aria-hidden="true" />
17
17
  </span>
18
18
  <span v-if="title" :class="titleModifierClass">{{ title }}</span>
19
+ <span v-if="rightIconClass || rightIconImage" class="icon is-small">
20
+ <img
21
+ v-if="rightIconImage"
22
+ :src="rightIconImage"
23
+ alt="icon"
24
+ :width="iconImageWidth"
25
+ />
26
+ <i v-else :class="`fa fa-${rightIconClass}`" aria-hidden="true" />
27
+ </span>
19
28
  <slot />
20
29
  </button>
21
30
  </template>
@@ -52,6 +61,15 @@ export default defineComponent({
52
61
  type: String,
53
62
  default: "",
54
63
  },
64
+ // for right icon
65
+ rightIconClass: {
66
+ type: String,
67
+ default: "",
68
+ },
69
+ rightIconImage: {
70
+ type: String,
71
+ default: "",
72
+ },
55
73
  iconImageWidth: {
56
74
  type: Number,
57
75
  default: undefined,
@@ -1,27 +1,48 @@
1
1
  <script setup lang="ts">
2
- const { hasOptionButtons } = withDefaults(
3
- defineProps<{ hasOptionButtons: boolean }>(),
4
- { hasOptionButtons: false }
5
- )
2
+ import { toRefs } from "vue";
3
+ const props = withDefaults(
4
+ defineProps<{ hasOptionButtons: boolean; disabled: boolean }>(),
5
+ { hasOptionButtons: false, disabled: false }
6
+ );
7
+ const { hasOptionButtons, disabled } = toRefs(props);
6
8
  </script>
7
9
  <template>
8
- <div class="card-details">
9
- <div class="c-header">
10
- <div class="c-logo">
11
- <slot name="card-logo" />
12
- </div>
13
- <div class="c-content">
14
- <div class="is-flex is-justify-content-space-between">
15
- <h4><slot name="card-title" /></h4>
16
- <slot v-if="hasOptionButtons" name="option-buttons" />
10
+ <div class="card-details-wrapper">
11
+ <div class="options-wrapper">
12
+ <slot v-if="hasOptionButtons" name="option-buttons" />
13
+ </div>
14
+ <div
15
+ class="card-details has-hover-style"
16
+ :class="{ 'is-disabled': disabled }"
17
+ >
18
+ <div class="c-header">
19
+ <div class="c-logo">
20
+ <slot name="card-logo" />
17
21
  </div>
18
- <div class="tags">
19
- <slot name="card-tags" />
22
+ <div class="c-content">
23
+ <div class="is-flex is-justify-content-space-between">
24
+ <h4><slot name="card-title" /></h4>
25
+ </div>
26
+ <div class="tags">
27
+ <slot name="card-tags" />
28
+ </div>
20
29
  </div>
21
30
  </div>
22
- </div>
23
- <div class="c-body">
24
- <slot name="card-body" />
31
+ <div class="c-body">
32
+ <slot name="card-body" />
33
+ </div>
25
34
  </div>
26
35
  </div>
27
36
  </template>
37
+
38
+ <style lang="scss">
39
+ .card-details-wrapper {
40
+ position: relative;
41
+ .options-wrapper {
42
+ position: absolute;
43
+ right: 15px;
44
+ top: 15px;
45
+ z-index: 9;
46
+ }
47
+ }
48
+ </style>
@@ -2,11 +2,12 @@
2
2
  <div class="form-wrapper">
3
3
  <div
4
4
  :class="{
5
- 'pt-20': !reducePaddingTop,
6
- 'pt-10': reducePaddingTop,
7
- 'pl-20': !isContainer,
5
+ 'pt-20': !reducePaddingTop && !removePadding,
6
+ 'pt-10': reducePaddingTop && !removePadding,
7
+ 'pl-20': !isContainer && !removePadding,
8
8
  'form-content': !isContainer,
9
9
  container: isContainer,
10
+ 'is-fullwidth': isFullWidth,
10
11
  }"
11
12
  >
12
13
  <slot />
@@ -20,6 +21,7 @@
20
21
  :class="{
21
22
  'form-content': !isContainer,
22
23
  container: isContainer,
24
+ 'is-fullwidth': isFullWidth,
23
25
  }"
24
26
  >
25
27
  <form-footer-controls>
@@ -50,6 +52,14 @@ export default defineComponent({
50
52
  type: Boolean,
51
53
  default: false,
52
54
  },
55
+ removePadding: {
56
+ type: Boolean,
57
+ default: false,
58
+ },
59
+ isFullWidth: {
60
+ type: Boolean,
61
+ default: false,
62
+ }
53
63
  },
54
64
 
55
65
  components: {
@@ -61,3 +71,9 @@ export default defineComponent({
61
71
  },
62
72
  });
63
73
  </script>
74
+
75
+ <style lang="scss">
76
+ .is-fullwidth {
77
+ width: 100% !important;
78
+ }
79
+ </style>