@pocketprep/ui-kit 3.5.10 → 3.5.11
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 +283 -277
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +8 -8
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Calendar/Calendar.vue +12 -1
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
:force-focus-style="isShowingCalendar"
|
|
15
15
|
:hideInputCaret="true"
|
|
16
16
|
:disabled="disabled"
|
|
17
|
+
:error="error"
|
|
17
18
|
@update:modelValue="processDateString"
|
|
18
19
|
@click="showCalendar"
|
|
19
20
|
@keydown="handleInputKeydown"
|
|
@@ -45,7 +46,8 @@
|
|
|
45
46
|
:class="{
|
|
46
47
|
'uikit-calendar__calendar-icon--active': !disabled && (hover || isShowingCalendar),
|
|
47
48
|
'uikit-calendar__calendar-icon--no-label': !label,
|
|
48
|
-
'uikit-calendar__calendar-icon--with-subtext': !!labelSubtext
|
|
49
|
+
'uikit-calendar__calendar-icon--with-subtext': !!labelSubtext,
|
|
50
|
+
'uikit-calendar__calendar-icon--error': error,
|
|
49
51
|
}"
|
|
50
52
|
>
|
|
51
53
|
<Icon type="calendarPicker" />
|
|
@@ -87,6 +89,7 @@ export default class Calendar extends Vue {
|
|
|
87
89
|
@Prop() modelValue!: Date | null
|
|
88
90
|
@Prop({ default: false }) isDarkMode!: boolean
|
|
89
91
|
@Prop({ default: false }) disabled!: boolean
|
|
92
|
+
@Prop({ default: false }) error!: boolean
|
|
90
93
|
|
|
91
94
|
calendar: null | Litepicker = null
|
|
92
95
|
calendarInput: Date | null = null
|
|
@@ -274,6 +277,14 @@ export default class Calendar extends Vue {
|
|
|
274
277
|
top: 48px;
|
|
275
278
|
}
|
|
276
279
|
|
|
280
|
+
&--error {
|
|
281
|
+
color: $pepper;
|
|
282
|
+
|
|
283
|
+
&--dark {
|
|
284
|
+
color: $rosa;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
277
288
|
svg {
|
|
278
289
|
width: 100%;
|
|
279
290
|
height: 100%;
|