@appscode/design-system 2.6.1 → 2.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -1,13 +1,13 @@
1
1
  .ac-notification {
2
- background-color: $primary-95;
2
+ background-color: #f1f1f1;
3
3
  font-size: 1rem;
4
- color: $ac-primary;
4
+ color: $color-text;
5
5
  min-height: 36px;
6
6
  display: flex;
7
7
  align-items: center;
8
8
  padding: 8px 16px;
9
9
  overflow: hidden;
10
- border: 1px solid $ac-primary;
10
+ border: 1px solid $slate-50;
11
11
  border-radius: 4px;
12
12
  justify-content: flex-start;
13
13
  position: relative;
@@ -15,7 +15,7 @@
15
15
  min-width: 280px;
16
16
 
17
17
  p {
18
- color: $ac-primary;
18
+ color: $color-text;
19
19
  margin-bottom: 0 !important;
20
20
 
21
21
  .close-icon {
@@ -115,3 +115,11 @@
115
115
  color: $yellow-5 !important;
116
116
  }
117
117
  }
118
+
119
+ // is-warning
120
+ .ac-notification.is-neutral {
121
+ @include acNotification($gray-60);
122
+ p {
123
+ color: $gray-5 !important;
124
+ }
125
+ }
@@ -1,16 +1,19 @@
1
1
  <script setup lang="ts">
2
2
  interface Props {
3
3
  modifierClasses?: string;
4
+ isCustom?: boolean;
4
5
  }
5
6
 
6
7
  withDefaults(defineProps<Props>(), {
7
8
  modifierClasses: "",
9
+ isCustom: false,
8
10
  });
9
11
  </script>
10
12
 
11
13
  <template>
12
14
  <div :class="modifierClasses" class="ac-notification">
13
- <p>
15
+ <slot v-if="isCustom" name="custom" />
16
+ <p v-else>
14
17
  <slot />
15
18
  </p>
16
19
  </div>
@@ -37,6 +37,7 @@ const backgroundColor = computed(() => {
37
37
  else if (notificationType.value === "error") return "is-danger";
38
38
  else if (notificationType.value === "warning") return "is-warning";
39
39
  else if (notificationType.value === "info") return "is-info";
40
+ else if (notificationType.value === "neutral") return "is-neutral is-border-none";
40
41
  else return "";
41
42
  });
42
43