dt-design-system
Advanced tools
Comparing version 3.9.3 to 3.9.4
@@ -72,5 +72,10 @@ import * as Utils from "./utils"; | ||
const monthFirstDay = Utils.getMonthFirstDay(month, year); | ||
const daysFromPrevMonth = monthFirstDay === 0 ? 6 : Math.max(monthFirstDay - 1, 0); | ||
console.log({ daysFromPrevMonth }); | ||
const daysFromNextMonth = CALENDAR_WEEKS * 7 - (daysFromPrevMonth + monthDays); | ||
let daysFromPrevMonth = monthFirstDay === 0 ? 6 : Math.max(monthFirstDay - 1, 0); | ||
if (isNaN(daysFromPrevMonth)) { | ||
daysFromPrevMonth = 0; | ||
} | ||
let daysFromNextMonth = CALENDAR_WEEKS * 7 - (daysFromPrevMonth + monthDays); | ||
if (isNaN(daysFromNextMonth)) { | ||
daysFromNextMonth = 0; | ||
} | ||
const { month: prevMonth, year: prevMonthYear } = Utils.getPreviousMonth(month, year); | ||
@@ -77,0 +82,0 @@ const { month: nextMonth, year: nextMonthYear } = Utils.getNextMonth(month, year); |
{ | ||
"name": "dt-design-system", | ||
"version": "3.9.3", | ||
"version": "3.9.4", | ||
"type": "module", | ||
@@ -25,11 +25,11 @@ "engines": { | ||
"devDependencies": { | ||
"@storybook/addon-actions": "8.0.6", | ||
"@storybook/addon-essentials": "8.0.6", | ||
"@storybook/addon-interactions": "8.0.6", | ||
"@storybook/addon-links": "8.0.6", | ||
"@storybook/blocks": "8.0.6", | ||
"@storybook/manager-api": "8.0.6", | ||
"@storybook/react": "8.0.6", | ||
"@storybook/react-vite": "8.0.6", | ||
"@storybook/theming": "8.0.6", | ||
"@storybook/addon-actions": "8.0.9", | ||
"@storybook/addon-essentials": "8.0.9", | ||
"@storybook/addon-interactions": "8.0.9", | ||
"@storybook/addon-links": "8.0.9", | ||
"@storybook/blocks": "8.0.9", | ||
"@storybook/manager-api": "8.0.9", | ||
"@storybook/react": "8.0.9", | ||
"@storybook/react-vite": "8.0.9", | ||
"@storybook/theming": "8.0.9", | ||
"@types/css-modules": "1.0.5", | ||
@@ -46,3 +46,3 @@ "@types/react": "18.2.75", | ||
"react-dom": "18.2.0", | ||
"storybook": "8.0.6", | ||
"storybook": "8.0.9", | ||
"typescript": "5.4.5", | ||
@@ -49,0 +49,0 @@ "vite": "5.2.8" |
Sorry, the diff of this file is not supported yet
787398
7385