@appscode/design-system 1.1.0-beta.5 → 1.1.0-beta.50

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 (90) hide show
  1. package/base/utilities/_colors.scss +45 -114
  2. package/base/utilities/_global.scss +25 -19
  3. package/base/utilities/_typography.scss +2 -2
  4. package/base/utilities/dark-theme.scss +2 -8
  5. package/components/_ac-alert-box.scss +2 -2
  6. package/components/_ac-code-highlight.scss +9 -12
  7. package/components/_ac-drag.scss +4 -4
  8. package/components/_ac-modal.scss +2 -2
  9. package/components/_ac-select-box.scss +5 -5
  10. package/components/_ac-table.scss +7 -7
  11. package/components/_ac-tabs.scss +29 -26
  12. package/components/_all.scss +7 -5
  13. package/components/_buttons.scss +10 -10
  14. package/components/_graph.scss +10 -10
  15. package/components/_image-upload.scss +4 -4
  16. package/components/_input-card.scss +232 -0
  17. package/components/{_ac-input.scss → _input.scss} +53 -7
  18. package/components/_left-sidebar-menu.scss +9 -13
  19. package/components/_monaco-editor.scss +2 -2
  20. package/components/_multi-select.scss +589 -0
  21. package/components/_navbar.scss +7 -7
  22. package/components/_nested-list.scss +2 -2
  23. package/components/_overview-info.scss +3 -3
  24. package/components/_pricing-table.scss +5 -5
  25. package/components/_progress-bar.scss +61 -74
  26. package/components/_subscription-card.scss +8 -10
  27. package/components/_table-of-content.scss +4 -4
  28. package/components/{_ac-terminal.scss → _terminal.scss} +62 -73
  29. package/components/_widget-menu.scss +7 -12
  30. package/components/_wizard.scss +13 -286
  31. package/components/bbum/_information-center.scss +8 -10
  32. package/components/bbum/_mobile-desktop.scss +9 -14
  33. package/components/bbum/_single-post-preview.scss +9 -9
  34. package/components/ui-builder/_ui-builder.scss +194 -10
  35. package/components/ui-builder/_vue-open-api.scss +58 -13
  36. package/icons/close-icon.svg +3 -0
  37. package/layouts/_code-preview.scss +6 -7
  38. package/package.json +1 -1
  39. package/vue-components/types/importFlow.ts +16 -0
  40. package/vue-components/types/notification.ts +3 -3
  41. package/vue-components/v2/banner/Banner.vue +1 -1
  42. package/vue-components/v2/editor/FilteredFileEditor.vue +2 -2
  43. package/vue-components/v2/modal/Modal.vue +1 -1
  44. package/vue-components/v2/pagination/Pagination.vue +1 -0
  45. package/vue-components/v3/alert/Alert.vue +2 -2
  46. package/vue-components/v3/banner/Banner.vue +2 -2
  47. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +66 -4
  48. package/vue-components/v3/button/Button.vue +33 -11
  49. package/vue-components/v3/cards/Cluster.vue +7 -3
  50. package/vue-components/v3/cards/FeatureCard.vue +1 -1
  51. package/vue-components/v3/cards/FeatureCards.vue +1 -1
  52. package/vue-components/v3/cards/InfoCard.vue +1 -2
  53. package/vue-components/v3/cards/Vendor.vue +1 -1
  54. package/vue-components/v3/content/ContentTable.vue +1 -1
  55. package/vue-components/v3/editor/FilteredFileEditor.vue +5 -1
  56. package/vue-components/v3/footer/FooterArea.vue +6 -0
  57. package/vue-components/v3/footer/Info.vue +10 -8
  58. package/vue-components/v3/footer/Status.vue +21 -23
  59. package/vue-components/v3/footer/Usage.vue +20 -30
  60. package/vue-components/v3/form/Form.vue +0 -3
  61. package/vue-components/v3/form-fields/AcSingleInput.vue +503 -1
  62. package/vue-components/v3/header/Header.vue +2 -2
  63. package/vue-components/v3/loaders/InfoCardLoader.vue +18 -60
  64. package/vue-components/v3/loaders/SingleInfoCardLoader.vue +24 -0
  65. package/vue-components/v3/modal/Modal.vue +6 -11
  66. package/vue-components/v3/navbar/NavbarItemContent.vue +1 -1
  67. package/vue-components/v3/navbar/User.vue +4 -4
  68. package/vue-components/v3/notification/AlertBox.vue +233 -3
  69. package/vue-components/v3/notification/Notification.vue +2 -2
  70. package/vue-components/v3/option-dots/Options.vue +3 -2
  71. package/vue-components/v3/pagination/Pagination.vue +2 -1
  72. package/vue-components/v3/preloader/Preloader.vue +1 -1
  73. package/vue-components/v3/sidebar/ClusterSwitcher.vue +1 -761
  74. package/vue-components/v3/sidebar/Sidebar.vue +3 -30
  75. package/vue-components/v3/sidebar/SidebarFooter.vue +5 -2
  76. package/vue-components/v3/sidebar/Steps.vue +55 -51
  77. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +78 -2
  78. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +12 -3
  79. package/vue-components/v3/table/InfoTable.vue +6 -4
  80. package/vue-components/v3/table/Table.vue +16 -16
  81. package/vue-components/v3/table/TableRow.vue +2 -2
  82. package/vue-components/v3/tag/Tag.vue +1 -0
  83. package/components/_ac-card.scss +0 -0
  84. package/components/_ac-multi-select.scss +0 -780
  85. package/vue-components/types/longRunningTasks.ts +0 -20
  86. package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +0 -94
  87. package/vue-components/v3/modals/LongRunningTasksModal.vue +0 -402
  88. package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +0 -151
  89. /package/components/{_ac-accordion.scss → _accordion.scss} +0 -0
  90. /package/components/{_ac-report.scss → _report.scss} +0 -0
@@ -27,10 +27,15 @@ const { notificationType, content, hideIcon, actionButton } = toRefs(props);
27
27
 
28
28
  const iconClass = computed(() => {
29
29
  if (notificationType.value === "success") return "fa-check-circle";
30
- else if (notificationType.value === "info") return "fa-info-circle";
31
- else if (notificationType.value === "danger") return "fa-times-circle";
30
+ else if (notificationType.value === "info") return "fa-info-circle ";
31
+ else if (notificationType.value === "error") return "fa-times-circle";
32
32
  else return "fa-info-circle";
33
33
  });
34
+ const backgroundColor = computed(() => {
35
+ if (notificationType.value === "success") return "is-success";
36
+ else if (notificationType.value === "error") return "is-danger";
37
+ else return "";
38
+ });
34
39
 
35
40
  const getSanitizedHtml = (content: string) => {
36
41
  return DOMPurify.sanitize(content || "");
@@ -40,7 +45,10 @@ const getSanitizedHtml = (content: string) => {
40
45
  <template>
41
46
  <!-- alert-message area start -->
42
47
  <!-- plsease, use this class name ('.is-info' 'is-success', 'is-danger', 'is-warning') -->
43
- <div :class="`notification is-${notificationType} mb-15`">
48
+ <div
49
+ class="ac-notification is-${notificationType} mb-15"
50
+ :class="backgroundColor"
51
+ >
44
52
  <p>
45
53
  <i v-if="!hideIcon" :class="`fa ${iconClass} mr-5`"></i
46
54
  ><span v-html="getSanitizedHtml(content)"></span>
@@ -56,3 +64,225 @@ const getSanitizedHtml = (content: string) => {
56
64
  </div>
57
65
  <!-- alert-message area end -->
58
66
  </template>
67
+
68
+ <style lang="scss" scoped>
69
+ // for alert message
70
+ .ac-notification {
71
+ background-color: #dee7f5;
72
+ font-size: 13px;
73
+ color: $primary;
74
+ min-height: 36px;
75
+ display: flex;
76
+ align-items: center;
77
+ padding: 8px 16px;
78
+ overflow: hidden;
79
+ border: 1px solid $primary;
80
+ border-radius: 4px;
81
+ justify-content: flex-start;
82
+ position: relative;
83
+ z-index: 1;
84
+ min-width: 280px;
85
+
86
+ p {
87
+ color: $primary;
88
+ margin-bottom: 0;
89
+
90
+ .close-icon {
91
+ padding-right: 10px;
92
+ font-size: 15px;
93
+ }
94
+
95
+ a {
96
+ text-decoration: underline;
97
+ color: $primary;
98
+
99
+ &:hover {
100
+ color: hsla(
101
+ var(--hsl-hue),
102
+ var(--hsl-saturation),
103
+ calc(var(--hsl-lightness) - 10%),
104
+ 1
105
+ );
106
+ }
107
+ }
108
+ }
109
+
110
+ button.close {
111
+ background-color: transparent;
112
+ cursor: pointer;
113
+ right: 0px;
114
+ position: absolute;
115
+ box-shadow: none;
116
+ border: none;
117
+ font-size: 14px;
118
+ color: $danger;
119
+ width: 40px;
120
+ height: 100%;
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ }
125
+ }
126
+
127
+ // mixin for .ac-notification
128
+ @mixin acNotification($colorName) {
129
+ background-color: scale-color($color: $colorName, $lightness: 80%);
130
+ color: $white-100;
131
+ border-color: $colorName;
132
+
133
+ p {
134
+ color: $colorName;
135
+
136
+ a {
137
+ color: $colorName;
138
+
139
+ &:hover {
140
+ color: $colorName;
141
+ opacity: 0.8;
142
+ }
143
+ }
144
+ }
145
+ }
146
+ @mixin acPrimaryNotification() {
147
+ background-color: hsla(
148
+ var(--hsl-hue),
149
+ var(--hsl-saturation),
150
+ var(--hsl-lightness),
151
+ 0.2
152
+ );
153
+ color: $white-100;
154
+ border-color: $primary;
155
+
156
+ p {
157
+ color: $primary;
158
+
159
+ a {
160
+ color: $primary;
161
+
162
+ &:hover {
163
+ color: $primary;
164
+ opacity: 0.8;
165
+ }
166
+ }
167
+ }
168
+ }
169
+
170
+ // is-primary
171
+ .ac-notification.is-primary {
172
+ @include acPrimaryNotification();
173
+ }
174
+
175
+ // is.info
176
+ .ac-notification.is-info {
177
+ @include acNotification($info);
178
+ }
179
+
180
+ // is.success
181
+ .ac-notification.is-success {
182
+ @include acNotification($success);
183
+ }
184
+
185
+ // is-danger
186
+ .ac-notification.is-danger {
187
+ @include acNotification($danger);
188
+ }
189
+
190
+ // is-warning
191
+ .ac-notification.is-warning {
192
+ @include acNotification($warning);
193
+ }
194
+
195
+ /*====================================
196
+ AC Toast
197
+ =====================================*/
198
+
199
+ .ac-toast {
200
+ width: 350px;
201
+ display: flex;
202
+ align-items: center;
203
+ justify-content: space-between;
204
+ font-size: 13px;
205
+ border-radius: 4px;
206
+ position: relative;
207
+ padding-right: 30px;
208
+ margin-bottom: 10px;
209
+
210
+ * {
211
+ color: $white-100;
212
+ }
213
+
214
+ p {
215
+ padding-left: 16px;
216
+
217
+ i.fa {
218
+ padding-right: 0 !important;
219
+ margin-right: 4px;
220
+ }
221
+ }
222
+
223
+ a {
224
+ font-weight: 500;
225
+ text-decoration: underline;
226
+ padding: 0 15px;
227
+
228
+ &:hover {
229
+ color: $black-70;
230
+ }
231
+ }
232
+
233
+ button.close-button {
234
+ border-radius: 0px;
235
+ background-color: transparent;
236
+ border: none;
237
+ color: $white-100;
238
+ position: absolute;
239
+ right: 0;
240
+ top: 0;
241
+ padding: 5px;
242
+ height: 100%;
243
+ width: 30px;
244
+ z-index: 1;
245
+ cursor: pointer;
246
+ border-left: 1px solid #dddddd;
247
+ }
248
+ }
249
+
250
+ // mixin for .ac-toast
251
+ @mixin acToast($colorName) {
252
+ background-color: $colorName;
253
+ color: $white-100;
254
+ border-color: $colorName;
255
+ }
256
+
257
+ // is-primary
258
+ .ac-toast.is-primary {
259
+ @include acToast($primary);
260
+ }
261
+
262
+ // is-info
263
+ .ac-toast.is-info {
264
+ @include acToast($info);
265
+ }
266
+
267
+ // is.success
268
+ .ac-toast.is-success {
269
+ @include acToast($success);
270
+ }
271
+
272
+ // is-danger
273
+ .ac-toast.is-danger {
274
+ @include acToast($danger);
275
+ }
276
+
277
+ // is-warning
278
+ .ac-toast.is-warning {
279
+ @include acToast($warning);
280
+ }
281
+
282
+ // dark theme start
283
+ // .is-dark-theme {
284
+ // .ac-notification.is-danger {
285
+ // background-color: $black-80;
286
+ // }
287
+ // }
288
+ </style>
@@ -9,7 +9,7 @@ import {
9
9
  watch,
10
10
  } from "vue";
11
11
  import type { Ref } from "vue";
12
- import type { TaskLog } from "../../types/longRunningTasks";
12
+ // import type { TaskLog } from "../../types/longRunningTasks";
13
13
  import type { Notification } from "../../types/notification";
14
14
 
15
15
  const NotificationItem = defineAsyncComponent(
@@ -48,7 +48,7 @@ async function subscribeToNotifcations() {
48
48
  for await (const msg of subscription) {
49
49
  console.log("notifications ===>");
50
50
  console.log({ data: StringCodec().decode(msg.data) });
51
- const log: TaskLog = JSON.parse(StringCodec().decode(msg.data));
51
+ const log = JSON.parse(StringCodec().decode(msg.data));
52
52
  console.log({ log });
53
53
  const currentTime = new Date().getTime();
54
54
  addNewNotification({
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { type Ref, onMounted, onUnmounted, ref } from "vue";
2
+ import { onMounted, onUnmounted, ref, type Ref } from "vue";
3
3
 
4
4
  interface Props {
5
5
  modifierClasses?: string;
@@ -44,7 +44,7 @@ const documentClick = (e: Event) => {
44
44
  </div>
45
45
  <!-- dropdown Item start -->
46
46
  <!-- use "is-hidden" class in the line below for hide dropdown element -->
47
- <slot v-if="showOptions" />
47
+ <slot :class="{ 'is-hidden': !showOptions }" />
48
48
  <!-- dropdown Item end -->
49
49
  </button>
50
50
  </template>
@@ -131,6 +131,7 @@ const documentClick = (e: Event) => {
131
131
  opacity: 0;
132
132
  visibility: hidden;
133
133
  transition: 0.3s ease-in-out;
134
+ text-align: left;
134
135
 
135
136
  li {
136
137
  .list-button {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { ref, computed, watch } from "vue";
2
+ import { computed, ref, watch } from "vue";
3
3
 
4
4
  interface Props {
5
5
  hideRowsPerPageSelection?: boolean;
@@ -224,6 +224,7 @@ watch(selectedItemCountPerPage, () => {
224
224
  &:active,
225
225
  &:focus-visible {
226
226
  border: 1px solid $primary;
227
+ outline: none;
227
228
  }
228
229
  }
229
230
  }
@@ -12,7 +12,7 @@ withDefaults(defineProps<Props>(), {
12
12
 
13
13
  <template>
14
14
  <div
15
- class="is-flex is-justify-content-center is-align-items-center is-flex-direction-column ac-preloader"
15
+ class="is-flex is-justify-content-center is-align-items-center is-flex-direction-column ac-preloader page-loader"
16
16
  style="height: calc(100vh - 200px)"
17
17
  >
18
18
  <span v-if="showSpinner" class="spinner"></span>