@appscode/design-system 1.1.0-alpha.1 → 1.1.0-alpha.11
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/base/utilities/_all.scss +1 -0
- package/base/utilities/_extended.scss +38 -0
- package/base/utilities/_initial-variables.scss +1 -1
- package/components/_all.scss +1 -0
- package/components/_basic-card.scss +118 -0
- package/components/_transitions.scss +35 -0
- package/components/ui-builder/_ui-builder.scss +7 -1
- package/package.json +1 -1
- package/vue-components/v2/content/ContentTable.vue +14 -9
- package/vue-components/v2/modal/Modal.vue +6 -5
- package/vue-components/v3/content/ContentTable.vue +5 -0
- package/vue-components/v3/modal/Modal.vue +5 -0
- package/vue-components/v3/table/Table.vue +3 -1
package/base/utilities/_all.scss
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.has-hover-style{
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
|
|
4
|
+
&::before {
|
|
5
|
+
content: "";
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
border-top: solid 1px;
|
|
12
|
+
border-bottom: solid 1px;
|
|
13
|
+
transition: 0.3s;
|
|
14
|
+
transform: scaleX(0);
|
|
15
|
+
border-color: #1971bd;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::after {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
border-left: solid 1px;
|
|
26
|
+
border-right: solid 1px;
|
|
27
|
+
transition: 0.3s;
|
|
28
|
+
transform: scaleY(0);
|
|
29
|
+
border-color: #1971bd;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:hover {
|
|
33
|
+
&::before,
|
|
34
|
+
&::after {
|
|
35
|
+
transform: scale(1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/components/_all.scss
CHANGED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
.card-details {
|
|
2
|
+
border: 1px solid #d2e7f9;
|
|
3
|
+
padding: 30px 20px;
|
|
4
|
+
width: calc(33.3% - 8px);
|
|
5
|
+
min-width: 400px;
|
|
6
|
+
max-width: 525px;
|
|
7
|
+
// border-radius: 4px;
|
|
8
|
+
transition: 0.3s ease-in-out;
|
|
9
|
+
position: relative;
|
|
10
|
+
z-index: 1;
|
|
11
|
+
|
|
12
|
+
.c-header {
|
|
13
|
+
display: flex;
|
|
14
|
+
margin-bottom: 20px;
|
|
15
|
+
|
|
16
|
+
.c-logo {
|
|
17
|
+
width: 54px;
|
|
18
|
+
height: 54px;
|
|
19
|
+
background: #e8f3fc;
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
margin-right: 24px;
|
|
25
|
+
|
|
26
|
+
img {
|
|
27
|
+
height: 24px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.c-content {
|
|
32
|
+
width: calc(100% - 78px);
|
|
33
|
+
h4 {
|
|
34
|
+
font-size: 18px;
|
|
35
|
+
line-height: 130%;
|
|
36
|
+
color: #030d17;
|
|
37
|
+
}
|
|
38
|
+
.icon {
|
|
39
|
+
color: #0c365a;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
position: relative;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
&:after {
|
|
44
|
+
position: absolute;
|
|
45
|
+
content: "";
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
width: 32px;
|
|
48
|
+
height: 32px;
|
|
49
|
+
background: #e8f3fc;
|
|
50
|
+
opacity: 0;
|
|
51
|
+
visibility: hidden;
|
|
52
|
+
transition: 0.3s ease-in-out;
|
|
53
|
+
z-index: -1;
|
|
54
|
+
}
|
|
55
|
+
&:hover {
|
|
56
|
+
&:after {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
visibility: visible;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.tags {
|
|
63
|
+
margin-top: 12px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.c-body {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-wrap: wrap;
|
|
71
|
+
gap: 20px;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
p {
|
|
74
|
+
width: calc(25% - 16px);
|
|
75
|
+
|
|
76
|
+
span {
|
|
77
|
+
font-size: 11px;
|
|
78
|
+
color: #666666;
|
|
79
|
+
display: block;
|
|
80
|
+
}
|
|
81
|
+
strong {
|
|
82
|
+
color: #061b2d;
|
|
83
|
+
font-size: 13px;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// ac card
|
|
91
|
+
.card-basic {
|
|
92
|
+
padding: 20px;
|
|
93
|
+
width: calc(25% - 8px);
|
|
94
|
+
max-width: 390px;
|
|
95
|
+
min-width: 290px;
|
|
96
|
+
position: relative;
|
|
97
|
+
|
|
98
|
+
.required {
|
|
99
|
+
position: absolute;
|
|
100
|
+
left: 20px;
|
|
101
|
+
top: -9px;
|
|
102
|
+
}
|
|
103
|
+
.c-header {
|
|
104
|
+
.c-title {
|
|
105
|
+
|
|
106
|
+
h4 {
|
|
107
|
+
font-size: 18px;
|
|
108
|
+
color: #061b2d;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.c-body {
|
|
114
|
+
p {
|
|
115
|
+
color: #0C365A;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -151,6 +151,41 @@
|
|
|
151
151
|
position: absolute;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
.zoom-list-move, /* apply transition to moving elements */
|
|
155
|
+
.zoom-list-enter-active,
|
|
156
|
+
.zoom-list-leave-active {
|
|
157
|
+
transition: all 0.5s ease;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.zoom-list-enter-from,
|
|
161
|
+
.zoom-list-leave-to {
|
|
162
|
+
opacity: 0;
|
|
163
|
+
transform: scale(0.5);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.zoom-list-leave-active {
|
|
167
|
+
position: absolute;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.slide-left-list-move,
|
|
171
|
+
.slide-left-list-enter-active,
|
|
172
|
+
.slide-left-list-leave-active {
|
|
173
|
+
transition: all 0.3s ease-in-out;
|
|
174
|
+
}
|
|
175
|
+
.slide-left-list-enter-from,
|
|
176
|
+
.slide-left-list-leave-to {
|
|
177
|
+
transform: translateX(20px);
|
|
178
|
+
opacity: 0;
|
|
179
|
+
}
|
|
180
|
+
.slide-left-list-enter-to,
|
|
181
|
+
.slide-left-list-leave-from {
|
|
182
|
+
transform: translateX(0px);
|
|
183
|
+
opacity: 1;
|
|
184
|
+
}
|
|
185
|
+
.slide-left-list-leave-active {
|
|
186
|
+
position: absolute;
|
|
187
|
+
}
|
|
188
|
+
|
|
154
189
|
.overview-card-enter-active {
|
|
155
190
|
transition: all 0.2s ease-in-out;
|
|
156
191
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
margin-bottom: 10px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
p {
|
|
20
|
+
p :not(.ac-notification *){
|
|
21
21
|
font-size: 13px;
|
|
22
22
|
margin-bottom: 10px;
|
|
23
23
|
color: $ac-color-value;
|
|
@@ -237,6 +237,12 @@
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
+
.pass-strength {
|
|
241
|
+
position: absolute;
|
|
242
|
+
right: 30px;
|
|
243
|
+
top: 7px;
|
|
244
|
+
}
|
|
245
|
+
|
|
240
246
|
// dark theme end
|
|
241
247
|
/****************************************
|
|
242
248
|
Responsive Classes
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
v-if="!hideHeader"
|
|
6
6
|
:header-title="tableTitle"
|
|
7
7
|
:header-sub-title="tableSubTitle"
|
|
8
|
+
:remove-border-bottom="removeBorderBottom"
|
|
8
9
|
:class="{ 'pl-0 pr-0': removeTableHeaderPadding }"
|
|
9
10
|
>
|
|
10
11
|
<header-item>
|
|
@@ -22,36 +23,40 @@ export default {
|
|
|
22
23
|
props: {
|
|
23
24
|
removeTableHeaderPadding: {
|
|
24
25
|
type: Boolean,
|
|
25
|
-
default: false
|
|
26
|
+
default: false,
|
|
26
27
|
},
|
|
27
28
|
tableTitle: {
|
|
28
29
|
type: String,
|
|
29
|
-
default: "Table"
|
|
30
|
+
default: "Table",
|
|
30
31
|
},
|
|
31
32
|
tableSubTitle: {
|
|
32
33
|
type: String,
|
|
33
|
-
default: ""
|
|
34
|
+
default: "",
|
|
34
35
|
},
|
|
35
36
|
searchable: {
|
|
36
37
|
type: Boolean,
|
|
37
|
-
default: true
|
|
38
|
+
default: true,
|
|
38
39
|
},
|
|
39
40
|
hideHeader: {
|
|
40
41
|
type: Boolean,
|
|
41
|
-
default: false
|
|
42
|
-
}
|
|
42
|
+
default: false,
|
|
43
|
+
},
|
|
44
|
+
removeBorderBottom: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false,
|
|
47
|
+
},
|
|
43
48
|
},
|
|
44
49
|
components: {
|
|
45
50
|
ContentLayout: () => import("./ContentLayout.vue"),
|
|
46
51
|
ContentHeader: () => import("./ContentHeader.vue"),
|
|
47
52
|
HeaderItem: () => import("../header/HeaderItem.vue"),
|
|
48
|
-
SearchBar: () => import("../searchbars/SearchBar.vue")
|
|
53
|
+
SearchBar: () => import("../searchbars/SearchBar.vue"),
|
|
49
54
|
},
|
|
50
55
|
|
|
51
56
|
data() {
|
|
52
57
|
return {
|
|
53
|
-
searchText: ""
|
|
58
|
+
searchText: "",
|
|
54
59
|
};
|
|
55
|
-
}
|
|
60
|
+
},
|
|
56
61
|
};
|
|
57
62
|
</script>
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
<!-- modal body start -->
|
|
33
33
|
<div
|
|
34
34
|
class="ac-modal-body ac-vscrollbar"
|
|
35
|
+
:class="modifierBodyClasses"
|
|
35
36
|
data-testid="ac-modal-content-with-scroll"
|
|
36
37
|
>
|
|
37
38
|
<div class="ac-modal-content">
|
|
@@ -45,11 +46,7 @@
|
|
|
45
46
|
<!-- modal footer start -->
|
|
46
47
|
<div
|
|
47
48
|
v-if="!hideActionFooter"
|
|
48
|
-
class="
|
|
49
|
-
ac-modal-footer
|
|
50
|
-
action-footer
|
|
51
|
-
is-flex is-align-items-center is-justify-content-space-between
|
|
52
|
-
"
|
|
49
|
+
class="ac-modal-footer action-footer is-flex is-align-items-center is-justify-content-space-between"
|
|
53
50
|
>
|
|
54
51
|
<div>
|
|
55
52
|
<slot name="modal-footer-left" />
|
|
@@ -91,6 +88,10 @@ export default {
|
|
|
91
88
|
type: Boolean,
|
|
92
89
|
default: false,
|
|
93
90
|
},
|
|
91
|
+
modifierBodyClasses: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: "",
|
|
94
|
+
},
|
|
94
95
|
},
|
|
95
96
|
|
|
96
97
|
components: {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
v-if="!hideHeader"
|
|
6
6
|
:header-title="tableTitle"
|
|
7
7
|
:header-sub-title="tableSubTitle"
|
|
8
|
+
:remove-border-bottom="removeBorderBottom"
|
|
8
9
|
:class="{ 'pl-0 pr-0': removeTableHeaderPadding }"
|
|
9
10
|
>
|
|
10
11
|
<template #title-right-actions>
|
|
@@ -50,6 +51,10 @@ export default defineComponent({
|
|
|
50
51
|
type: Boolean,
|
|
51
52
|
default: false,
|
|
52
53
|
},
|
|
54
|
+
removeBorderBottom: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false,
|
|
57
|
+
},
|
|
53
58
|
},
|
|
54
59
|
components: {
|
|
55
60
|
ContentLayout: defineAsyncComponent(() =>
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
<!-- modal body start -->
|
|
31
31
|
<div
|
|
32
32
|
class="ac-modal-body ac-vscrollbar"
|
|
33
|
+
:class="modifierBodyClasses"
|
|
33
34
|
data-testid="ac-modal-content-with-scroll"
|
|
34
35
|
>
|
|
35
36
|
<div class="ac-modal-content">
|
|
@@ -92,6 +93,10 @@ export default defineComponent({
|
|
|
92
93
|
type: Boolean,
|
|
93
94
|
default: false,
|
|
94
95
|
},
|
|
96
|
+
modifierBodyClasses: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: "",
|
|
99
|
+
},
|
|
95
100
|
},
|
|
96
101
|
emits: ["closemodal"],
|
|
97
102
|
|
|
@@ -97,7 +97,9 @@
|
|
|
97
97
|
<table-row class="is-hoverless">
|
|
98
98
|
<table-cell
|
|
99
99
|
:colspan="
|
|
100
|
-
|
|
100
|
+
tableHeaders.length +
|
|
101
|
+
(actionable ? 1 : 0) +
|
|
102
|
+
(collapsible ? 1 : 0)
|
|
101
103
|
"
|
|
102
104
|
class="no-data-available has-text-centered"
|
|
103
105
|
>
|