@appscode/design-system 1.1.0-alpha.22 → 1.1.0-alpha.24
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/components/_ac-card.scss +1 -1
- package/components/_wizard.scss +1 -1
- package/components/ui-builder/_ui-builder.scss +7 -1
- package/package.json +1 -1
- package/vue-components/v2/content/ContentLayout.vue +1 -1
- package/vue-components/v3/button/Button.vue +18 -0
- package/vue-components/v3/cards/ResourceCard.vue +35 -17
- package/vue-components/v3/form/Form.vue +19 -3
package/components/_ac-card.scss
CHANGED
package/components/_wizard.scss
CHANGED
|
@@ -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
|
|
@@ -243,6 +244,11 @@
|
|
|
243
244
|
top: 7px;
|
|
244
245
|
}
|
|
245
246
|
|
|
247
|
+
.card-select .status-tag {
|
|
248
|
+
position: absolute;
|
|
249
|
+
top: -10px;
|
|
250
|
+
}
|
|
251
|
+
|
|
246
252
|
// dark theme end
|
|
247
253
|
/****************************************
|
|
248
254
|
Responsive Classes
|
package/package.json
CHANGED
|
@@ -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,45 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
const { hasOptionButtons } = withDefaults(
|
|
3
|
-
defineProps<{ hasOptionButtons: boolean }>(),
|
|
4
|
-
{ hasOptionButtons: false }
|
|
2
|
+
const { hasOptionButtons, disabled } = withDefaults(
|
|
3
|
+
defineProps<{ hasOptionButtons: boolean, disabled: boolean }>(),
|
|
4
|
+
{ hasOptionButtons: false, disabled: false }
|
|
5
5
|
)
|
|
6
6
|
</script>
|
|
7
7
|
<template>
|
|
8
|
-
<div class="card-details">
|
|
9
|
-
<div class="
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<div class="c-
|
|
14
|
-
<div class="
|
|
15
|
-
<
|
|
16
|
-
<slot v-if="hasOptionButtons" name="option-buttons" />
|
|
8
|
+
<div class="card-details-wrapper">
|
|
9
|
+
<div class="options-wrapper">
|
|
10
|
+
<slot v-if="hasOptionButtons" name="option-buttons" />
|
|
11
|
+
</div>
|
|
12
|
+
<div class="card-details has-hover-style" :class="{'is-disabled': disabled }">
|
|
13
|
+
<div class="c-header">
|
|
14
|
+
<div class="c-logo">
|
|
15
|
+
<slot name="card-logo" />
|
|
17
16
|
</div>
|
|
18
|
-
<div class="
|
|
19
|
-
<
|
|
17
|
+
<div class="c-content">
|
|
18
|
+
<div class="is-flex is-justify-content-space-between">
|
|
19
|
+
<h4><slot name="card-title" /></h4>
|
|
20
|
+
|
|
21
|
+
</div>
|
|
22
|
+
<div class="tags">
|
|
23
|
+
<slot name="card-tags" />
|
|
24
|
+
</div>
|
|
20
25
|
</div>
|
|
21
26
|
</div>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
<div class="c-body">
|
|
28
|
+
<slot name="card-body" />
|
|
29
|
+
</div>
|
|
25
30
|
</div>
|
|
26
31
|
</div>
|
|
27
32
|
</template>
|
|
33
|
+
|
|
34
|
+
<style lang="scss">
|
|
35
|
+
.card-details-wrapper {
|
|
36
|
+
position: relative;
|
|
37
|
+
.options-wrapper{
|
|
38
|
+
position: absolute;
|
|
39
|
+
right: 15px;
|
|
40
|
+
top: 15px;
|
|
41
|
+
z-index: 9;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
</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>
|