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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.511",
3
+ "version": "0.0.513",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -69,8 +69,9 @@ function getMonthState(month: Date, index: number) {
69
69
  });
70
70
 
71
71
  const isMonthInRange =
72
- (index >= startRangeIndex && index <= endRangeIndex) ||
73
- (index >= startRangeIndex && endRangeIndex === -1);
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
- (index >= startRangeIndex && index <= endRangeIndex) ||
77
- (index >= startRangeIndex && endRangeIndex === -1);
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 =
@@ -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
  },
@@ -72,7 +72,7 @@ export default /*tw*/ {
72
72
  ],
73
73
  },
74
74
  description: {
75
- base: "font-normal text-gray-500 !leading-none",
75
+ base: "font-normal text-gray-500 text-left !leading-none",
76
76
  variants: {
77
77
  size: {
78
78
  sm: "text-2xs",
@@ -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-center h-full w-11 absolute left-0",
4
- rightSlot: "flex items-center justify-center h-full w-11 absolute right-0",
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: {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.511",
4
+ "version": "0.0.513",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",