vueless 0.0.511 → 0.0.513
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 +1 -1
- package/ui.form-calendar/UCalendarMonthView.vue +3 -2
- package/ui.form-calendar/UCalendarYearView.vue +3 -2
- package/ui.form-input/config.js +3 -3
- package/ui.form-label/config.js +1 -1
- package/ui.form-select/config.js +3 -0
- package/ui.form-textarea/config.js +5 -2
- package/web-types.json +1 -1
package/package.json
CHANGED
|
@@ -69,8 +69,9 @@ function getMonthState(month: Date, index: number) {
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
const isMonthInRange =
|
|
72
|
-
|
|
73
|
-
(index >= startRangeIndex &&
|
|
72
|
+
props.range &&
|
|
73
|
+
((index >= startRangeIndex && index <= endRangeIndex) ||
|
|
74
|
+
(index >= startRangeIndex && endRangeIndex === -1));
|
|
74
75
|
const isSelectedMonth =
|
|
75
76
|
isSameMonth(month, localSelectedDate.value) && props.selectedDate !== null;
|
|
76
77
|
const isPresentMonth = isCurrentMonth(month);
|
|
@@ -73,8 +73,9 @@ function getYearState(year: Date, index: number) {
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
const isYearInRange =
|
|
76
|
-
|
|
77
|
-
(index >= startRangeIndex &&
|
|
76
|
+
props.range &&
|
|
77
|
+
((index >= startRangeIndex && index <= endRangeIndex) ||
|
|
78
|
+
(index >= startRangeIndex && endRangeIndex === -1));
|
|
78
79
|
const isSelectedYear = isSameMonth(year, localSelectedDate.value) && props.selectedDate !== null;
|
|
79
80
|
const isPresentYear = isCurrentYear(year);
|
|
80
81
|
const isMoreThanOneYearRange =
|
package/ui.form-input/config.js
CHANGED
|
@@ -19,8 +19,8 @@ export default /*tw*/ {
|
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
|
-
rightIconWrapper: "flex items-center justify-end whitespace-nowrap pr-2 gap-1 rounded-dynamic rounded-l-none",
|
|
23
|
-
leftIconWrapper: "flex items-center justify-end whitespace-nowrap pl-2 gap-1 rounded-dynamic rounded-r-none",
|
|
22
|
+
rightIconWrapper: "flex items-center justify-end whitespace-nowrap pr-2.5 gap-1 rounded-dynamic rounded-l-none",
|
|
23
|
+
leftIconWrapper: "flex items-center justify-end whitespace-nowrap pl-2.5 gap-1 rounded-dynamic rounded-r-none",
|
|
24
24
|
leftIcon: "{UIcon}",
|
|
25
25
|
rightIcon: "{UIcon}",
|
|
26
26
|
passwordIcon: "{UIcon}",
|
|
@@ -39,7 +39,7 @@ export default /*tw*/ {
|
|
|
39
39
|
},
|
|
40
40
|
error: {
|
|
41
41
|
true: `
|
|
42
|
-
bg-red-50 hover:border-red-400 focus:border-red-500 focus:ring-red-700/15
|
|
42
|
+
bg-red-50 placeholder:text-red-300 hover:border-red-400 focus:border-red-500 focus:ring-red-700/15
|
|
43
43
|
focus-within:border-red-500 focus-within:ring-red-700/15
|
|
44
44
|
`,
|
|
45
45
|
},
|
package/ui.form-label/config.js
CHANGED
package/ui.form-select/config.js
CHANGED
|
@@ -103,6 +103,9 @@ export default /*tw*/ {
|
|
|
103
103
|
md: "text-sm placeholder:text-sm",
|
|
104
104
|
lg: "text-base placeholder:text-base",
|
|
105
105
|
},
|
|
106
|
+
error: {
|
|
107
|
+
true: "placeholder:text-red-300",
|
|
108
|
+
},
|
|
106
109
|
},
|
|
107
110
|
},
|
|
108
111
|
dropdownList: "{UDropdownList} group-[]/top:bottom-full group-[]/top:top-auto top-full",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
textareaLabel: "{ULabel}",
|
|
3
|
-
leftSlot: "flex items-center justify-
|
|
4
|
-
rightSlot: "flex items-center justify-
|
|
3
|
+
leftSlot: "flex items-center justify-end whitespace-nowrap pl-2.5 gap-1 rounded-dynamic rounded-r-none",
|
|
4
|
+
rightSlot: "flex items-center justify-end whitespace-nowrap pr-2.5 gap-1 rounded-dynamic rounded-l-none",
|
|
5
5
|
textareaWrapper: {
|
|
6
6
|
base: `
|
|
7
7
|
px-3 py-2 bg-white transition w-full
|
|
@@ -42,6 +42,9 @@ export default /*tw*/ {
|
|
|
42
42
|
resizable: {
|
|
43
43
|
false: "resize-none",
|
|
44
44
|
},
|
|
45
|
+
error: {
|
|
46
|
+
true: "placeholder:text-red-300",
|
|
47
|
+
},
|
|
45
48
|
},
|
|
46
49
|
},
|
|
47
50
|
defaults: {
|