@appscode/design-system 2.6.15 → 2.6.16

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.15",
3
+ "version": "2.6.16",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -26,6 +26,7 @@ interface Props {
26
26
  openDirection?: "top" | "bottom";
27
27
  groupLabel?: string;
28
28
  groupValues?: string;
29
+ htmlErrorMsg?: boolean;
29
30
  groupSelect?: boolean;
30
31
  onTagAdd?: Function;
31
32
  }
@@ -51,6 +52,7 @@ const props = withDefaults(defineProps<Props>(), {
51
52
  groupLabel: "",
52
53
  groupValues: "",
53
54
  groupSelect: false,
55
+ htmlErrorMsg: false,
54
56
  taggable: false,
55
57
  tagPlaceholder: "",
56
58
  onTagAdd: () => "",
@@ -170,7 +172,8 @@ const onSelect = (selectedOption: unknown, id: string) => emit("select", selecte
170
172
  <slot name="option" v-bind="props" />
171
173
  </template>
172
174
  </multiselect>
173
- <p v-show="errorMsg" class="is-danger">
175
+ <div v-if="htmlErrorMsg" class="invalid-error is-danger" v-html="errorMsg" />
176
+ <p v-else v-show="errorMsg" class="is-danger">
174
177
  {{ errorMsg }}
175
178
  </p>
176
179
  </div>