@haiilo/catalyst 8.3.1 → 8.3.2
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/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/{p-edf331f9.entry.js → p-3fff8776.entry.js} +2 -2
- package/dist/catalyst/p-3fff8776.entry.js.map +1 -0
- package/dist/cjs/cat-alert_26.cjs.entry.js +2 -2
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js +2 -2
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js.map +1 -1
- package/dist/components/cat-datepicker.locale.js +2 -2
- package/dist/components/cat-datepicker.locale.js.map +1 -1
- package/dist/esm/cat-alert_26.entry.js +2 -2
- package/dist/esm/cat-alert_26.entry.js.map +1 -1
- package/package.json +2 -2
- package/dist/catalyst/p-edf331f9.entry.js.map +0 -1
|
@@ -4109,12 +4109,12 @@ function daysForLocale(language, weekday = 'long') {
|
|
|
4109
4109
|
const date = new Date();
|
|
4110
4110
|
const firstDayOfWeek = (date.getUTCDate() - date.getUTCDay() + 7) % 7;
|
|
4111
4111
|
const format = new Intl.DateTimeFormat(language, { weekday }).format;
|
|
4112
|
-
return [...Array(7).keys()].map(day => format(date.setUTCDate(firstDayOfWeek + day)));
|
|
4112
|
+
return [...Array(7).keys()].map(day => format(new Date(date.getTime()).setUTCDate(firstDayOfWeek + day)));
|
|
4113
4113
|
}
|
|
4114
4114
|
function monthsForLocale(language, month = 'long') {
|
|
4115
4115
|
const date = new Date();
|
|
4116
4116
|
const format = new Intl.DateTimeFormat(language, { month }).format;
|
|
4117
|
-
return [...Array(12).keys()].map(month => format(date.setUTCMonth(month)));
|
|
4117
|
+
return [...Array(12).keys()].map(month => format(new Date(date.getTime()).setUTCMonth(month)));
|
|
4118
4118
|
}
|
|
4119
4119
|
function getLocale(language) {
|
|
4120
4120
|
return {
|