@appscode/design-system 2.0.19-alpha.4 → 2.0.19-alpha.6

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 (79) hide show
  1. package/main.scss +1 -15
  2. package/package.json +1 -1
  3. package/vue-components/styles/components/_all.scss +11 -20
  4. package/vue-components/styles/components/_breadcrumb.scss +32 -0
  5. package/vue-components/styles/components/_button.scss +51 -0
  6. package/vue-components/styles/components/alert/_alert-message.scss +16 -0
  7. package/vue-components/styles/components/alert/_alert.scss +123 -0
  8. package/vue-components/styles/components/alert/_all.scss +3 -0
  9. package/vue-components/styles/components/alert/_toast.scss +50 -0
  10. package/vue-components/styles/components/cards/_all.scss +8 -0
  11. package/vue-components/styles/components/cards/_cluster.scss +93 -0
  12. package/vue-components/styles/components/cards/_features.scss +26 -0
  13. package/vue-components/styles/components/cards/_info.scss +83 -0
  14. package/vue-components/styles/components/cards/_monitoring.scss +24 -0
  15. package/vue-components/styles/components/cards/_org.scss +59 -0
  16. package/vue-components/styles/components/cards/_vendor.scss +58 -0
  17. package/vue-components/styles/components/content/_all.scss +2 -0
  18. package/vue-components/styles/components/content/_content-header.scss +14 -0
  19. package/vue-components/styles/components/content/_content-layout.scss +4 -0
  20. package/vue-components/styles/components/editor/_all.scss +2 -0
  21. package/vue-components/styles/components/editor/_filtered-file-editor.scss +195 -0
  22. package/vue-components/styles/components/footer/_all.scss +3 -0
  23. package/vue-components/styles/components/footer/_footer-area.scss +26 -0
  24. package/vue-components/styles/components/footer/_footer-item.scss +14 -0
  25. package/vue-components/styles/components/footer/_footer-items.scss +5 -0
  26. package/vue-components/styles/components/form-fields/_all.scss +4 -0
  27. package/vue-components/styles/components/form-fields/_file-upload.scss +42 -0
  28. package/vue-components/styles/components/form-fields/_form-footer.scss +9 -0
  29. package/vue-components/styles/components/header/_all.scss +0 -0
  30. package/vue-components/styles/components/header/_header-item.scss +13 -0
  31. package/vue-components/styles/components/header/_header.scss +7 -0
  32. package/vue-components/styles/components/navbar/_all.scss +2 -0
  33. package/vue-components/styles/components/navbar/_notification.scss +103 -0
  34. package/vue-components/styles/components/select-box/_all.scss +2 -0
  35. package/vue-components/styles/components/sidebar/_all.scss +1 -0
  36. package/vue-components/styles/components/{_left-sidebar.scss → sidebar/_left-sidebar.scss} +21 -0
  37. package/vue-components/styles/components/ui-builder/_ui-builder.scss +1 -34
  38. package/vue-components/v3/alert/Alert.vue +1 -218
  39. package/vue-components/v3/alert/AlertMessage.vue +1 -16
  40. package/vue-components/v3/alert/Toast.vue +1 -50
  41. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +1 -33
  42. package/vue-components/v3/button/Button.vue +1 -1
  43. package/vue-components/v3/button/Buttons.vue +0 -8
  44. package/vue-components/v3/cards/Cluster.vue +2 -95
  45. package/vue-components/v3/cards/FeatureCard.vue +1 -25
  46. package/vue-components/v3/cards/FeatureCards.vue +5 -1
  47. package/vue-components/v3/cards/InfoCard.vue +1 -80
  48. package/vue-components/v3/cards/Monitoring.vue +1 -24
  49. package/vue-components/v3/cards/OrgCard.vue +1 -59
  50. package/vue-components/v3/cards/Payment.vue +3 -0
  51. package/vue-components/v3/cards/Vendor.vue +2 -58
  52. package/vue-components/v3/content/ContentHeader.vue +1 -14
  53. package/vue-components/v3/content/ContentLayout.vue +1 -7
  54. package/vue-components/v3/editor/FilteredFileEditor.vue +1 -195
  55. package/vue-components/v3/footer/FooterArea.vue +2 -27
  56. package/vue-components/v3/footer/FooterItem.vue +1 -15
  57. package/vue-components/v3/footer/FooterItems.vue +2 -7
  58. package/vue-components/v3/form/FormFooter.vue +1 -9
  59. package/vue-components/v3/form-fields/AcSingleInput.vue +1 -1
  60. package/vue-components/v3/form-fields/FileUpload.vue +1 -42
  61. package/vue-components/v3/header/Header.vue +1 -7
  62. package/vue-components/v3/header/HeaderItem.vue +1 -13
  63. package/vue-components/v3/navbar/Navbar.vue +3 -1
  64. package/vue-components/v3/navbar/Notification.vue +1 -103
  65. package/vue-components/v3/sidebar/ClusterSwitcher.vue +3 -1
  66. package/vue-components/v3/sidebar/Sidebar.vue +1 -1
  67. package/vue-components/styles/components/_ac-alert-box.scss +0 -205
  68. package/vue-components/styles/components/_ac-content-layout.scss +0 -165
  69. package/vue-components/styles/components/_buttons.scss +0 -779
  70. /package/vue-components/styles/components/{_payment-card.scss → cards/_payment-card.scss} +0 -0
  71. /package/vue-components/styles/components/{_subscription-card.scss → cards/_subscription-card.scss} +0 -0
  72. /package/vue-components/styles/components/{_monaco-editor.scss → editor/_monaco-editor.scss} +0 -0
  73. /package/vue-components/styles/components/{_image-upload.scss → form-fields/_image-upload.scss} +0 -0
  74. /package/vue-components/styles/components/{_input-card.scss → form-fields/_input-card.scss} +0 -0
  75. /package/vue-components/styles/components/{_input.scss → form-fields/_input.scss} +0 -0
  76. /package/vue-components/styles/components/{_menu-content.scss → navbar/_menu-content.scss} +0 -0
  77. /package/vue-components/styles/components/{_navbar.scss → navbar/_navbar.scss} +0 -0
  78. /package/vue-components/styles/components/{_ac-select-box.scss → select-box/_ac-select-box.scss} +0 -0
  79. /package/vue-components/styles/components/{_multi-select.scss → select-box/_multi-select.scss} +0 -0
@@ -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>
@@ -130,37 +130,5 @@ watch(
130
130
  </template>
131
131
 
132
132
  <style lang="scss" scoped>
133
- /* breadcumb style */
134
- .ac-breadcrumb {
135
- padding: 8px 20px;
136
- border-bottom: 1px solid $primary-95;
137
- position: sticky;
138
- top: 50px;
139
- height: auto;
140
- background-color: $white-100;
141
- z-index: 998;
142
- display: flex;
143
- align-items: center;
144
- }
145
-
146
- .breadcrumb {
147
- a {
148
- color: $primary-20;
149
- font-size: 13px;
150
- padding: 0 3px;
151
- font-weight: 500;
152
- font-style: normal;
153
-
154
- &:hover {
155
- color: $primary-10;
156
- }
157
- }
158
-
159
- li.is-active {
160
- a {
161
- color: $primary-10;
162
- font-weight: 500;
163
- }
164
- }
165
- }
133
+ @import "../../../vue-components/styles/components/breadcrumb";
166
134
  </style>
@@ -69,6 +69,6 @@ const showUnpluginIcon = computed(() => {
69
69
  </button>
70
70
  </template>
71
71
 
72
- <style lang="scss" scoped>
72
+ <style lang="scss">
73
73
  @import "../../../vue-components/styles/components/button";
74
74
  </style>
@@ -12,11 +12,3 @@ withDefaults(
12
12
  </div>
13
13
  <div v-else class="buttons"><slot /></div>
14
14
  </template>
15
-
16
- <!-- <style lang="scss">
17
- .buttons {
18
- .button {
19
- margin-bottom: 16px;
20
- }
21
- }
22
- </style> -->
@@ -29,7 +29,7 @@ const OptionDots = defineAsyncComponent(
29
29
  </script>
30
30
 
31
31
  <template>
32
- <div class="card-details" data-testid="cluster-item-navigate">
32
+ <div class="card-details cluster" data-testid="cluster-item-navigate">
33
33
  <option-dots v-if="showOptions" :position="'is-right'">
34
34
  <slot name="options" />
35
35
  </option-dots>
@@ -68,97 +68,4 @@ const OptionDots = defineAsyncComponent(
68
68
  </div>
69
69
  </template>
70
70
 
71
- <style lang="scss" scoped>
72
- .card-details {
73
- border: 1px solid $primary-90;
74
- padding: 24px 20px;
75
- transition: 0.3s ease-in-out;
76
- position: relative;
77
- z-index: 1;
78
- width: 100%;
79
- border-radius: 2px;
80
-
81
- .ac-options {
82
- position: absolute;
83
- right: 20px;
84
- top: 24px;
85
- z-index: 999;
86
- }
87
- .c-header {
88
- display: flex;
89
- margin-bottom: 24px;
90
-
91
- .c-logo {
92
- width: 54px;
93
- height: 54px;
94
- background: #e8f3fc;
95
- border-radius: 50%;
96
- display: flex;
97
- align-items: center;
98
- justify-content: center;
99
- margin-right: 24px;
100
-
101
- img {
102
- height: 24px;
103
- }
104
- }
105
-
106
- .c-content {
107
- width: calc(100% - 78px);
108
- h4 {
109
- font-size: 18px;
110
- line-height: 130%;
111
- color: #030d17;
112
- }
113
- .icon {
114
- color: #0c365a;
115
- cursor: pointer;
116
- position: relative;
117
- z-index: 1;
118
- &:after {
119
- position: absolute;
120
- content: "";
121
- border-radius: 50%;
122
- width: 32px;
123
- height: 32px;
124
- background: #e8f3fc;
125
- opacity: 0;
126
- visibility: hidden;
127
- transition: 0.3s ease-in-out;
128
- z-index: -1;
129
- }
130
- &:hover {
131
- &:after {
132
- opacity: 1;
133
- visibility: visible;
134
- }
135
- }
136
- }
137
- .tags {
138
- margin-top: 12px;
139
- }
140
- }
141
- }
142
-
143
- .c-body {
144
- display: flex;
145
- flex-wrap: wrap;
146
- gap: 20px;
147
- justify-content: space-between;
148
- p {
149
- width: calc(25% - 16px);
150
-
151
- span {
152
- font-size: 11px;
153
- color: #666666;
154
- display: block;
155
- }
156
- strong {
157
- color: #061b2d;
158
- font-size: 13px;
159
- font-weight: 400;
160
- }
161
- }
162
- }
163
- }
164
- </style>
71
+ <style lang="scss" scoped></style>
@@ -12,7 +12,7 @@ withDefaults(
12
12
  </script>
13
13
  <template>
14
14
  <!-- single card wrapper start -->
15
- <div class="card-basic b-1" data-testid="simple-feature-card">
15
+ <div class="card-basic feature-card b-1" data-testid="simple-feature-card">
16
16
  <div class="c-header is-flex is-justify-content-space-between">
17
17
  <div
18
18
  v-if="isRequired"
@@ -41,28 +41,4 @@ withDefaults(
41
41
 
42
42
  <style lang="scss" scoped>
43
43
  // ac card
44
- .card-basic {
45
- padding: 20px;
46
- width: calc(25% - 8px);
47
- max-width: 390px;
48
- min-width: 290px;
49
- position: relative;
50
- border-radius: 2px;
51
-
52
- .required {
53
- position: absolute;
54
- left: 20px;
55
- top: -9px;
56
- }
57
- .c-title {
58
- h5 {
59
- width: calc(100% - 28px);
60
- }
61
- }
62
- .c-body {
63
- p {
64
- color: #0c365a;
65
- }
66
- }
67
- }
68
44
  </style>
@@ -1,6 +1,10 @@
1
1
  <script setup lang="ts"></script>
2
2
  <template>
3
- <div class="is-flex is-flex-wrap-wrap" data-testid="simple-feature-sets" style="gap: 16px">
3
+ <div
4
+ class="is-flex is-flex-wrap-wrap"
5
+ data-testid="simple-feature-sets"
6
+ style="gap: 16px"
7
+ >
4
8
  <slot />
5
9
  </div>
6
10
  </template>
@@ -159,84 +159,5 @@ const OptionDots = defineAsyncComponent(
159
159
  </template>
160
160
 
161
161
  <style lang="scss" scoped>
162
- .info-card {
163
- border: 1px solid $primary-90;
164
- position: relative;
165
- border-radius: 2px;
166
- .header {
167
- display: flex;
168
- align-items: center;
169
- padding: 12px 16px;
170
- border-bottom: 1px dashed $primary-90;
171
-
172
- .logo {
173
- display: flex;
174
- align-items: center;
175
- margin-right: 12px;
176
- img {
177
- width: 16px;
178
- }
179
- }
180
-
181
- .content {
182
- width: 100%;
183
- h5 {
184
- color: $primary-10;
185
- font-weight: 500;
186
- margin-bottom: 0;
187
- }
188
- }
189
- }
190
-
191
- .body {
192
- display: flex;
193
- align-items: flex-end;
194
- justify-content: space-between;
195
- padding: 16px;
196
- p {
197
- display: flex;
198
- align-items: center;
199
- margin-bottom: 8px;
200
- span.icon {
201
- padding-right: 8px;
202
- width: 22px;
203
- }
204
-
205
- strong {
206
- font-size: 13px;
207
- font-weight: 400;
208
- color: $primary-10;
209
- }
210
- }
211
- }
212
- }
213
-
214
- .line-color {
215
- position: relative;
216
- z-index: 1;
217
- overflow: hidden;
218
- &::after {
219
- position: absolute;
220
- content: "";
221
- left: 0;
222
- bottom: 0;
223
- width: 100%;
224
- height: 1px;
225
- background: linear-gradient(-45deg, $primary, $success, $warning, $danger);
226
- background-size: 400% 400%;
227
- animation: gradient 3s ease infinite;
228
- }
229
- }
230
-
231
- @keyframes gradient {
232
- 0% {
233
- background-position: 0% 50%;
234
- }
235
- 50% {
236
- background-position: 100% 50%;
237
- }
238
- 100% {
239
- background-position: 0% 50%;
240
- }
241
- }
162
+ @import "../../../vue-components/styles/components/cards/info";
242
163
  </style>
@@ -64,28 +64,5 @@ withDefaults(defineProps<Props>(), {
64
64
 
65
65
  <style lang="scss" scoped>
66
66
  // ac card
67
- .card-basic {
68
- padding: 20px;
69
- width: calc(25% - 8px);
70
- max-width: 390px;
71
- min-width: 290px;
72
- position: relative;
73
- border-radius: 2px;
74
-
75
- .required {
76
- position: absolute;
77
- left: 20px;
78
- top: -9px;
79
- }
80
- .c-title {
81
- h5 {
82
- width: calc(100% - 28px);
83
- }
84
- }
85
- .c-body {
86
- p {
87
- color: #0c365a;
88
- }
89
- }
90
- }
67
+ @import "../../../vue-components/styles/components/cards/monitoring";
91
68
  </style>
@@ -80,63 +80,5 @@ withDefaults(defineProps<Props>(), {
80
80
  </div>
81
81
  </template>
82
82
  <style lang="scss" scoped>
83
- .card-details {
84
- display: flex;
85
- align-items: flex-end;
86
- justify-content: space-between;
87
- border: 1px solid $primary-90;
88
- padding: 24px 20px;
89
- border-radius: 2px;
90
- transition: 0.3s ease-in-out;
91
- position: relative;
92
-
93
- figure {
94
- margin-bottom: 8px;
95
- }
96
-
97
- button.ac-button.is-text {
98
- color: $primary;
99
- transition: 0.3s ease-in-out;
100
- padding: 2px 0;
101
- height: auto;
102
- &:hover {
103
- background-color: transparent;
104
- }
105
- }
106
-
107
- &:hover:not(.no-data-available) {
108
- // border: 1px solid $primary;
109
- button.ac-button.is-text {
110
- gap: 16px;
111
- }
112
-
113
- .right-content {
114
- img {
115
- filter: grayscale(0);
116
- }
117
- }
118
- }
119
-
120
- .left-content {
121
- display: flex;
122
- flex-direction: column;
123
- align-items: flex-start;
124
- gap: 8px;
125
- justify-content: space-between;
126
-
127
- .image {
128
- border-radius: 50%;
129
-
130
- &:has(.is-rounded) {
131
- box-shadow: inset 0 0 0 1px hsla(0, 0%, 0%, 0.1);
132
- }
133
- }
134
- }
135
-
136
- .right-content {
137
- img {
138
- filter: grayscale(1);
139
- }
140
- }
141
- }
83
+ @import "../../../vue-components/styles/components/cards/org";
142
84
  </style>
@@ -60,3 +60,6 @@
60
60
  <!-- single card end -->
61
61
  </div>
62
62
  </template>
63
+ <style lang="scss">
64
+ @import "../../../vue-components/styles/components/cards/payment-card";
65
+ </style>