@pocketprep/ui-kit 3.5.27 → 3.5.28

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.
@@ -11,6 +11,13 @@
11
11
  class="uikit-errors__icon"
12
12
  type="warning"
13
13
  />
14
+ <div
15
+ v-if="errorHeader"
16
+ class="uikit-errors__error-header"
17
+ v-dark="isDarkMode"
18
+ >
19
+ {{ errorHeader }}
20
+ </div>
14
21
  <slot name="errors">
15
22
  <div
16
23
  v-for="error in filteredErrors"
@@ -42,6 +49,7 @@ import { dark } from '../../directives'
42
49
  export default class Errors extends Vue {
43
50
  @Prop({ default: () => ([]) }) errors!: string[]
44
51
  @Prop({ default: false }) isDarkMode!: boolean
52
+ @Prop() errorHeader!: string
45
53
 
46
54
  get filteredErrors () {
47
55
  return [ ...new Set(this.errors) ]
@@ -92,7 +100,8 @@ export default class Errors extends Vue {
92
100
  }
93
101
  }
94
102
 
95
- &__error {
103
+ &__error,
104
+ &__error-header {
96
105
  color: $brand-black;
97
106
  font-size: 14px;
98
107
  line-height: 19px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.5.27",
3
+ "version": "3.5.28",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {