@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
|
@@ -4105,12 +4105,12 @@ function daysForLocale(language, weekday = 'long') {
|
|
|
4105
4105
|
const date = new Date();
|
|
4106
4106
|
const firstDayOfWeek = (date.getUTCDate() - date.getUTCDay() + 7) % 7;
|
|
4107
4107
|
const format = new Intl.DateTimeFormat(language, { weekday }).format;
|
|
4108
|
-
return [...Array(7).keys()].map(day => format(date.setUTCDate(firstDayOfWeek + day)));
|
|
4108
|
+
return [...Array(7).keys()].map(day => format(new Date(date.getTime()).setUTCDate(firstDayOfWeek + day)));
|
|
4109
4109
|
}
|
|
4110
4110
|
function monthsForLocale(language, month = 'long') {
|
|
4111
4111
|
const date = new Date();
|
|
4112
4112
|
const format = new Intl.DateTimeFormat(language, { month }).format;
|
|
4113
|
-
return [...Array(12).keys()].map(month => format(date.setUTCMonth(month)));
|
|
4113
|
+
return [...Array(12).keys()].map(month => format(new Date(date.getTime()).setUTCMonth(month)));
|
|
4114
4114
|
}
|
|
4115
4115
|
function getLocale(language) {
|
|
4116
4116
|
return {
|