@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.
- package/dist/@pocketprep/ui-kit.css +1 -1
- package/dist/@pocketprep/ui-kit.js +628 -615
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +6 -6
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Forms/Errors.vue +10 -1
- package/package.json +1 -1
|
@@ -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;
|