vueless 1.3.4 → 1.3.5-beta.0

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": "1.3.4",
3
+ "version": "1.3.5-beta.0",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
@@ -57,7 +57,7 @@
57
57
  "@vue/eslint-config-typescript": "^14.6.0",
58
58
  "@vue/test-utils": "^2.4.6",
59
59
  "@vue/tsconfig": "^0.7.0",
60
- "@vueless/storybook": "^1.2.11",
60
+ "@vueless/storybook": "^1.2.13",
61
61
  "eslint": "^9.32.0",
62
62
  "eslint-plugin-storybook": "^10.0.2",
63
63
  "eslint-plugin-vue": "^10.3.0",
@@ -96,16 +96,9 @@ export function getWeekDateList(date: Date, monthShortLocales: string[] = []) {
96
96
  const firstDayOfWeek = startOfWeekDate.getDate();
97
97
  const lastDayOfWeek = endOfWeekDate.getDate();
98
98
 
99
- const isDayInPreviousMonth = week === 0 && firstDayOfWeek > 1;
100
- const isLastWeek = week + day === weeksInMonth;
101
-
102
- let monthFirstDayOfWeek = 0;
99
+ const monthFirstDayOfWeek = startOfWeekDate.getMonth();
103
100
  const monthLastDayOfWeek = endOfWeekDate.getMonth();
104
101
 
105
- if (isDayInPreviousMonth || isLastWeek) {
106
- monthFirstDayOfWeek = startOfWeekDate.getMonth();
107
- }
108
-
109
102
  const title = `${firstDayOfWeek} ${
110
103
  monthShortLocales[monthFirstDayOfWeek] || ""
111
104
  } – ${lastDayOfWeek} ${monthShortLocales[monthLastDayOfWeek]}`;