@appscode/design-system 2.0.19-alpha.1 → 2.0.19-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.
Files changed (83) hide show
  1. package/main.scss +1 -15
  2. package/package.json +1 -1
  3. package/vue-components/styles/components/_add-card.scss +60 -60
  4. package/vue-components/styles/components/_all.scss +33 -11
  5. package/vue-components/styles/components/_breadcrumb.scss +32 -0
  6. package/vue-components/styles/components/_button.scss +51 -0
  7. package/vue-components/styles/components/_card-body-wrapper.scss +48 -48
  8. package/vue-components/styles/components/_direct-deploy.scss +63 -63
  9. package/vue-components/styles/components/alert/_alert-message.scss +16 -0
  10. package/vue-components/styles/components/alert/_alert.scss +123 -0
  11. package/vue-components/styles/components/alert/_all.scss +3 -0
  12. package/vue-components/styles/components/alert/_toast.scss +50 -0
  13. package/vue-components/styles/components/cards/_all.scss +8 -0
  14. package/vue-components/styles/components/cards/_cluster.scss +97 -0
  15. package/vue-components/styles/components/cards/_features.scss +26 -0
  16. package/vue-components/styles/components/cards/_info.scss +83 -0
  17. package/vue-components/styles/components/cards/_monitoring.scss +24 -0
  18. package/vue-components/styles/components/cards/_org.scss +59 -0
  19. package/vue-components/styles/components/cards/_vendor.scss +58 -0
  20. package/vue-components/styles/components/content/_all.scss +2 -0
  21. package/vue-components/styles/components/content/_content-header.scss +14 -0
  22. package/vue-components/styles/components/content/_content-layout.scss +4 -0
  23. package/vue-components/styles/components/editor/_all.scss +2 -0
  24. package/vue-components/styles/components/editor/_filtered-file-editor.scss +195 -0
  25. package/vue-components/styles/components/footer/_all.scss +3 -0
  26. package/vue-components/styles/components/footer/_footer-area.scss +26 -0
  27. package/vue-components/styles/components/footer/_footer-item.scss +14 -0
  28. package/vue-components/styles/components/footer/_footer-items.scss +5 -0
  29. package/vue-components/styles/components/form-fields/_all.scss +4 -0
  30. package/vue-components/styles/components/form-fields/_file-upload.scss +42 -0
  31. package/vue-components/styles/components/form-fields/_form-footer.scss +9 -0
  32. package/vue-components/styles/components/{_input.scss → form-fields/_input.scss} +5 -11
  33. package/vue-components/styles/components/header/_header-item.scss +13 -0
  34. package/vue-components/styles/components/header/_header.scss +7 -0
  35. package/vue-components/styles/components/navbar/_all.scss +2 -0
  36. package/vue-components/styles/components/navbar/_notification.scss +103 -0
  37. package/vue-components/styles/components/select-box/_ac-select-box.scss +49 -0
  38. package/vue-components/styles/components/select-box/_all.scss +2 -0
  39. package/vue-components/styles/components/sidebar/_all.scss +1 -0
  40. package/vue-components/styles/components/{_left-sidebar.scss → sidebar/_left-sidebar.scss} +21 -0
  41. package/vue-components/styles/components/ui-builder/_ui-builder.scss +1 -34
  42. package/vue-components/v3/alert/Alert.vue +1 -218
  43. package/vue-components/v3/alert/AlertMessage.vue +1 -16
  44. package/vue-components/v3/alert/Toast.vue +1 -50
  45. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +1 -33
  46. package/vue-components/v3/button/Button.vue +1 -1
  47. package/vue-components/v3/button/Buttons.vue +0 -8
  48. package/vue-components/v3/cards/Cluster.vue +2 -93
  49. package/vue-components/v3/cards/FeatureCard.vue +2 -26
  50. package/vue-components/v3/cards/FeatureCards.vue +5 -1
  51. package/vue-components/v3/cards/InfoCard.vue +1 -80
  52. package/vue-components/v3/cards/Monitoring.vue +1 -24
  53. package/vue-components/v3/cards/OrgCard.vue +1 -59
  54. package/vue-components/v3/cards/Payment.vue +3 -0
  55. package/vue-components/v3/cards/Vendor.vue +2 -58
  56. package/vue-components/v3/content/ContentHeader.vue +1 -14
  57. package/vue-components/v3/content/ContentLayout.vue +1 -7
  58. package/vue-components/v3/editor/FilteredFileEditor.vue +2 -196
  59. package/vue-components/v3/footer/FooterArea.vue +2 -27
  60. package/vue-components/v3/footer/FooterItem.vue +1 -15
  61. package/vue-components/v3/footer/FooterItems.vue +2 -7
  62. package/vue-components/v3/form/FormFooter.vue +1 -9
  63. package/vue-components/v3/form-fields/AcSingleInput.vue +1 -1
  64. package/vue-components/v3/form-fields/FileUpload.vue +1 -42
  65. package/vue-components/v3/header/Header.vue +1 -7
  66. package/vue-components/v3/header/HeaderItem.vue +1 -13
  67. package/vue-components/v3/navbar/Navbar.vue +3 -1
  68. package/vue-components/v3/navbar/Notification.vue +1 -103
  69. package/vue-components/v3/sidebar/ClusterSwitcher.vue +3 -1
  70. package/vue-components/v3/sidebar/Sidebar.vue +1 -1
  71. package/vue-components/styles/components/_ac-alert-box.scss +0 -205
  72. package/vue-components/styles/components/_ac-content-layout.scss +0 -165
  73. package/vue-components/styles/components/_ac-select-box.scss +0 -49
  74. package/vue-components/styles/components/_buttons.scss +0 -779
  75. /package/vue-components/styles/components/{_payment-card.scss → cards/_payment-card.scss} +0 -0
  76. /package/vue-components/styles/components/{_subscription-card.scss → cards/_subscription-card.scss} +0 -0
  77. /package/vue-components/styles/components/{_monaco-editor.scss → editor/_monaco-editor.scss} +0 -0
  78. /package/vue-components/styles/components/{_image-upload.scss → form-fields/_image-upload.scss} +0 -0
  79. /package/vue-components/styles/components/{_input-card.scss → form-fields/_input-card.scss} +0 -0
  80. /package/vue-components/styles/components/{_app-drawer.scss → header/_all.scss} +0 -0
  81. /package/vue-components/styles/components/{_menu-content.scss → navbar/_menu-content.scss} +0 -0
  82. /package/vue-components/styles/components/{_navbar.scss → navbar/_navbar.scss} +0 -0
  83. /package/vue-components/styles/components/{_multi-select.scss → select-box/_multi-select.scss} +0 -0
@@ -0,0 +1,42 @@
1
+ .file-upload {
2
+ border: 1px dashed $primary-80;
3
+ border-radius: 4px;
4
+ &:hover {
5
+ background-color: $primary-97;
6
+
7
+ label {
8
+ .upload-icon {
9
+ border: 1px solid $primary-80;
10
+ svg {
11
+ color: $primary-10;
12
+ }
13
+ }
14
+ }
15
+ }
16
+ label {
17
+ cursor: pointer;
18
+ padding: 32px;
19
+ display: block;
20
+ .upload-icon {
21
+ border: 1px solid $primary-90;
22
+ display: inline-flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ border-radius: 50%;
26
+ width: 100px;
27
+ height: 100px;
28
+ margin-bottom: 24px;
29
+ padding: 24px;
30
+
31
+ svg {
32
+ color: $primary-30;
33
+ }
34
+ }
35
+ p {
36
+ color: $primary-10;
37
+ strong {
38
+ font-weight: 600;
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,9 @@
1
+ .form-footer {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ margin-left: -20px;
6
+ margin-right: -20px;
7
+ border-top: 1px solid $primary-90;
8
+ padding: 16px 20px;
9
+ }
@@ -257,7 +257,6 @@
257
257
  margin-bottom: 0;
258
258
  }
259
259
 
260
-
261
260
  label {
262
261
  font-size: 13px;
263
262
  left: 15px;
@@ -350,12 +349,7 @@
350
349
  transition: 0.3s;
351
350
 
352
351
  &:hover {
353
- background-color: hsla(
354
- var(--hsl-hue),
355
- var(--hsl-saturation),
356
- var(--hsl-lightness),
357
- 0.2
358
- );
352
+ background-color: $primary-20;
359
353
  color: $primary;
360
354
  }
361
355
  }
@@ -376,7 +370,7 @@
376
370
  border: 1px solid $primary-80;
377
371
  background-color: transparent;
378
372
  padding: 10px 15px;
379
- min-height: 50px;
373
+ min-height: 150px;
380
374
 
381
375
  &.bg-white {
382
376
  background-color: transparent;
@@ -403,7 +397,7 @@
403
397
  font-size: 13px;
404
398
 
405
399
  &:hover {
406
- border-color: $black-70;
400
+ border-color: $primary-70;
407
401
  }
408
402
 
409
403
  &.bg-white {
@@ -549,7 +543,7 @@
549
543
  }
550
544
  }
551
545
 
552
- // file upload
546
+ // file upload
553
547
  .file-upload {
554
548
  border: 1px dashed $primary-80;
555
549
  border-radius: 4px;
@@ -591,4 +585,4 @@
591
585
  }
592
586
  }
593
587
  }
594
- }
588
+ }
@@ -0,0 +1,13 @@
1
+ .header-item {
2
+ display: inline-block;
3
+ margin-left: 8px;
4
+ vertical-align: middle;
5
+
6
+ &:first-child {
7
+ margin-left: 0;
8
+ }
9
+
10
+ .select:not(.is-multiple) {
11
+ height: auto;
12
+ }
13
+ }
@@ -0,0 +1,7 @@
1
+ .inner-header {
2
+ padding: 6px 20px;
3
+ border-bottom: 1px solid $primary-95;
4
+ position: sticky;
5
+ background: $white-100;
6
+ z-index: 99;
7
+ }
@@ -0,0 +1,2 @@
1
+ @import "navbar";
2
+ @import "notification";
@@ -0,0 +1,103 @@
1
+ .notification-count {
2
+ position: absolute;
3
+ background-color: $primary;
4
+ color: $white-100;
5
+ padding: 4px;
6
+ font-size: 11px;
7
+ line-height: 1;
8
+ border-radius: 50px;
9
+ min-width: 20px;
10
+ height: 20px;
11
+ right: -10px;
12
+ top: -8px;
13
+ border: 1px solid $primary-97;
14
+ opacity: 1;
15
+ z-index: 9;
16
+ }
17
+ .dropdown-inner {
18
+ border-radius: 4px;
19
+ overflow: hidden;
20
+ background-color: $white-100;
21
+ border: 1px solid $primary-90;
22
+ }
23
+ .notification-header {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ border-bottom: 1px solid $primary-90;
28
+ padding: 8px 16px;
29
+ h5 {
30
+ color: $primary-5;
31
+ }
32
+ span {
33
+ display: flex;
34
+ color: $primary-30;
35
+ padding: 2px 8px;
36
+ border-radius: 4px;
37
+ background-color: $primary-95;
38
+ }
39
+ }
40
+ .notification-body {
41
+ max-height: calc(100vh - 100px);
42
+ overflow-y: auto;
43
+ a {
44
+ display: flex;
45
+ color: $primary-20;
46
+ padding: 16px;
47
+ border-bottom: 1px solid $primary-95;
48
+ transition: 0.3s ease-in-out;
49
+ justify-content: space-between;
50
+
51
+ &:hover {
52
+ background-color: $primary-97;
53
+ }
54
+ .round-icon {
55
+ width: 36px;
56
+ height: 36px;
57
+ background-color: $primary-95;
58
+ color: $primary;
59
+ font-size: 14px;
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: center;
63
+ border-radius: 50%;
64
+ margin-right: 8px;
65
+ line-height: 1;
66
+ font-weight: 500;
67
+ }
68
+
69
+ .notification-content {
70
+ width: calc(100% - 60px);
71
+ h6 {
72
+ font-size: 14px;
73
+ font-weight: 500;
74
+ }
75
+
76
+ p {
77
+ font-size: 12px;
78
+ }
79
+ }
80
+
81
+ span {
82
+ font-size: 11px;
83
+ color: $primary-30;
84
+ }
85
+ }
86
+ }
87
+ .notification-footer {
88
+ button {
89
+ background-color: transparent;
90
+ border: none;
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: center;
94
+ width: 100%;
95
+ padding: 8px;
96
+ color: $primary;
97
+ cursor: pointer;
98
+ transition: 0.3s ease-in-out;
99
+ &:hover {
100
+ text-decoration: underline;
101
+ }
102
+ }
103
+ }
@@ -0,0 +1,49 @@
1
+ // .ac-select-box {
2
+ // select {
3
+ // background-color: $info-light;
4
+ // border: 1px solid $primary-10;
5
+ // font-size: 13px;
6
+ // height: 42px;
7
+ // padding-left: 20px;
8
+
9
+ // option {
10
+ // box-shadow: $ac-shadow-1;
11
+ // }
12
+
13
+ // &:hover {
14
+ // border: 1px solid $black-80;
15
+ // }
16
+
17
+ // &:focus {
18
+ // outline: none;
19
+ // box-shadow: none;
20
+ // border: 1px solid $primary;
21
+ // }
22
+ // }
23
+
24
+ // &.is-small {
25
+ // select {
26
+ // height: 36px;
27
+ // padding-left: 15px;
28
+ // }
29
+
30
+ // &.select:not(.is-multiple):not(.is-loading)::after {
31
+ // top: 50%;
32
+ // margin-top: 0px;
33
+ // }
34
+ // }
35
+
36
+ // &.select:not(.is-multiple):not(.is-loading)::after {
37
+ // border-color: $primary-10;
38
+ // }
39
+ // }
40
+
41
+ // .is-dark-theme {
42
+ // .select {
43
+ // select {
44
+ // background-color: $black-80;
45
+ // color: $white-100;
46
+ // border: 1px solid $primary-90;
47
+ // }
48
+ // }
49
+ // }
@@ -0,0 +1,2 @@
1
+ @import "ac-select-box";
2
+ @import "multi-select";
@@ -0,0 +1 @@
1
+ @import "left-sidebar";
@@ -83,6 +83,13 @@
83
83
  overflow: hidden;
84
84
  font-weight: 500;
85
85
  transition: 0.3s ease-in-out;
86
+ text-overflow: ellipsis;
87
+ display: -webkit-box;
88
+ line-clamp: 1;
89
+ -webkit-line-clamp: 1;
90
+ box-orient: vertical;
91
+ -webkit-box-orient: vertical;
92
+ transition: 0.3s ease-in-out;
86
93
  }
87
94
 
88
95
  &.ac-dropdown-button {
@@ -178,9 +185,23 @@
178
185
  span {
179
186
  margin: 0;
180
187
  }
188
+ .ac-arrow-down {
189
+ display: none;
190
+ // change
191
+ }
181
192
  strong {
182
193
  opacity: 0;
183
194
  visibility: hidden;
195
+ display: none;
196
+ overflow: hidden;
197
+ text-overflow: ellipsis;
198
+ display: -webkit-box;
199
+ line-clamp: 1;
200
+ -webkit-line-clamp: 1;
201
+ box-orient: vertical;
202
+ -webkit-box-orient: vertical;
203
+ transition: 0.3s ease-in-out;
204
+ // change
184
205
  }
185
206
  }
186
207
  ul {
@@ -1,4 +1,4 @@
1
- @import "../input-card";
1
+ @import "../../components/form-fields/input-card";
2
2
 
3
3
  .ac-object-field-wrapper {
4
4
  display: grid;
@@ -369,39 +369,6 @@
369
369
  }
370
370
  }
371
371
 
372
- .up-down-buttons {
373
- border-radius: 4px;
374
- overflow: hidden;
375
- position: relative;
376
- z-index: 1;
377
- max-width: 36px;
378
- margin-bottom: 0 !important;
379
- button {
380
- width: 36px;
381
- height: 18px;
382
- cursor: pointer;
383
- border: none;
384
- color: $primary;
385
- background-color: $primary-90;
386
- transition: 0.3s ease-in-out;
387
- &:hover {
388
- background-color: $primary-80;
389
- }
390
- &.is-primary {
391
- background-color: $primary;
392
- color: $white-100;
393
- &:hover {
394
- background-color: $primary-30;
395
- }
396
- }
397
- .icon {
398
- margin: 0;
399
- padding: 0;
400
- width: auto;
401
- height: auto;
402
- }
403
- }
404
- }
405
372
  // buttons
406
373
  .button {
407
374
  &.ac-button {
@@ -17,222 +17,5 @@ withDefaults(defineProps<Props>(), {
17
17
  </template>
18
18
 
19
19
  <style lang="scss" scoped>
20
- // for alert message
21
- .ac-notification {
22
- background-color: #dee7f5;
23
- font-size: 13px;
24
- color: $primary;
25
- min-height: 36px;
26
- display: flex;
27
- align-items: center;
28
- padding: 8px 16px;
29
- overflow: hidden;
30
- border: 1px solid $primary;
31
- border-radius: 4px;
32
- justify-content: flex-start;
33
- position: relative;
34
- z-index: 1;
35
- min-width: 280px;
36
-
37
- p {
38
- color: $primary;
39
-
40
- .close-icon {
41
- padding-right: 10px;
42
- font-size: 15px;
43
- }
44
-
45
- a {
46
- text-decoration: underline;
47
- color: $primary;
48
-
49
- &:hover {
50
- color: hsla(
51
- var(--hsl-hue),
52
- var(--hsl-saturation),
53
- calc(var(--hsl-lightness) - 10%),
54
- 1
55
- );
56
- }
57
- }
58
- }
59
-
60
- button.close {
61
- background-color: transparent;
62
- cursor: pointer;
63
- right: 0px;
64
- position: absolute;
65
- box-shadow: none;
66
- border: none;
67
- font-size: 14px;
68
- color: $danger;
69
- width: 40px;
70
- height: 100%;
71
- display: flex;
72
- align-items: center;
73
- justify-content: center;
74
- }
75
- }
76
-
77
- // mixin for .ac-notification
78
- @mixin acNotification($colorName) {
79
- background-color: scale-color($color: $colorName, $lightness: 80%);
80
- color: $white-100;
81
- border-color: $colorName;
82
-
83
- p {
84
- color: $colorName;
85
-
86
- a {
87
- color: $colorName;
88
-
89
- &:hover {
90
- color: $colorName;
91
- opacity: 0.8;
92
- }
93
- }
94
- }
95
- }
96
- @mixin acPrimaryNotification() {
97
- background-color: hsla(
98
- var(--hsl-hue),
99
- var(--hsl-saturation),
100
- var(--hsl-lightness),
101
- 0.2
102
- );
103
- color: $white-100;
104
- border-color: $primary;
105
-
106
- p {
107
- color: $primary;
108
-
109
- a {
110
- color: $primary;
111
-
112
- &:hover {
113
- color: $primary;
114
- opacity: 0.8;
115
- }
116
- }
117
- }
118
- }
119
-
120
- // is-primary
121
- .ac-notification.is-primary {
122
- @include acPrimaryNotification();
123
- }
124
-
125
- // is.info
126
- .ac-notification.is-info {
127
- @include acNotification($info);
128
- }
129
-
130
- // is.success
131
- .ac-notification.is-success {
132
- @include acNotification($success);
133
- }
134
-
135
- // is-danger
136
- .ac-notification.is-danger {
137
- @include acNotification($danger);
138
- }
139
-
140
- // is-warning
141
- .ac-notification.is-warning {
142
- @include acNotification($warning);
143
- }
144
-
145
- /*====================================
146
- AC Toast
147
- =====================================*/
148
-
149
- .ac-toast {
150
- width: 350px;
151
- display: flex;
152
- align-items: center;
153
- justify-content: space-between;
154
- font-size: 13px;
155
- border-radius: 4px;
156
- position: relative;
157
- padding-right: 30px;
158
- margin-bottom: 10px;
159
-
160
- * {
161
- color: $white-100;
162
- }
163
-
164
- p {
165
- padding-left: 16px;
166
-
167
- i.fa {
168
- padding-right: 0 !important;
169
- margin-right: 4px;
170
- }
171
- }
172
-
173
- a {
174
- font-weight: 500;
175
- text-decoration: underline;
176
- padding: 0 15px;
177
-
178
- &:hover {
179
- color: $black-70;
180
- }
181
- }
182
-
183
- button.close-button {
184
- border-radius: 0px;
185
- background-color: transparent;
186
- border: none;
187
- color: $white-100;
188
- position: absolute;
189
- right: 0;
190
- top: 0;
191
- padding: 5px;
192
- height: 100%;
193
- width: 30px;
194
- z-index: 1;
195
- cursor: pointer;
196
- border-left: 1px solid #dddddd;
197
- }
198
- }
199
-
200
- // mixin for .ac-toast
201
- @mixin acToast($colorName) {
202
- background-color: $colorName;
203
- color: $white-100;
204
- border-color: $colorName;
205
- }
206
-
207
- // is-primary
208
- .ac-toast.is-primary {
209
- @include acToast($primary);
210
- }
211
-
212
- // is-info
213
- .ac-toast.is-info {
214
- @include acToast($info);
215
- }
216
-
217
- // is.success
218
- .ac-toast.is-success {
219
- @include acToast($success);
220
- }
221
-
222
- // is-danger
223
- .ac-toast.is-danger {
224
- @include acToast($danger);
225
- }
226
-
227
- // is-warning
228
- .ac-toast.is-warning {
229
- @include acToast($warning);
230
- }
231
-
232
- // dark theme start
233
- // .is-dark-theme {
234
- // .ac-notification.is-danger {
235
- // background-color: $black-80;
236
- // }
237
- // }
20
+ @import "../../../vue-components/styles/components/alert/alert";
238
21
  </style>
@@ -42,20 +42,5 @@ withDefaults(defineProps<Props>(), {
42
42
  </template>
43
43
 
44
44
  <style lang="scss" scoped>
45
- .message {
46
- .message-body {
47
- display: flex;
48
- padding: 16px;
49
- gap: 12px;
50
- align-items: center;
51
- p {
52
- line-height: 160%;
53
- width: calc(100% - 48px);
54
- }
55
- .status-icon {
56
- display: flex;
57
- width: 24px;
58
- }
59
- }
60
- }
45
+ @import "../../../vue-components/styles/components/alert/alert-message";
61
46
  </style>
@@ -26,54 +26,5 @@ withDefaults(defineProps<Props>(), {
26
26
  </div>
27
27
  </template>
28
28
  <style lang="scss" scoped>
29
- .ac-toast {
30
- width: 350px;
31
- display: flex;
32
- align-items: center;
33
- justify-content: space-between;
34
- font-size: 13px;
35
- border-radius: 4px;
36
- position: relative;
37
- padding-right: 30px;
38
- margin-bottom: 10px;
39
-
40
- * {
41
- color: $white-100;
42
- }
43
-
44
- p {
45
- padding-left: 16px;
46
-
47
- i.fa {
48
- padding-right: 0 !important;
49
- margin-right: 4px;
50
- }
51
- }
52
-
53
- a {
54
- font-weight: 500;
55
- text-decoration: underline;
56
- padding: 0 15px;
57
-
58
- &:hover {
59
- color: $black-90;
60
- }
61
- }
62
-
63
- button.close-button {
64
- border-radius: 0px;
65
- background-color: transparent;
66
- border: none;
67
- color: $white-100;
68
- position: absolute;
69
- right: 0;
70
- top: 0;
71
- padding: 5px;
72
- height: 100%;
73
- width: 30px;
74
- z-index: 1;
75
- cursor: pointer;
76
- border-left: 1px solid #dddddd;
77
- }
78
- }
29
+ @import "../../../vue-components/styles/components/alert/toast";
79
30
  </style>