@haiilo/catalyst 10.21.1 → 10.21.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-cde8ee59.entry.js → p-4866485c.entry.js} +2 -2
- package/dist/catalyst/p-4866485c.entry.js.map +1 -0
- package/dist/cjs/cat-alert_29.cjs.entry.js +5 -3
- package/dist/cjs/cat-alert_29.cjs.entry.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js +5 -3
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js.map +1 -1
- package/dist/components/cat-datepicker.locale.js +5 -3
- package/dist/components/cat-datepicker.locale.js.map +1 -1
- package/dist/esm/cat-alert_29.entry.js +5 -3
- package/dist/esm/cat-alert_29.entry.js.map +1 -1
- package/package.json +2 -2
- package/dist/catalyst/p-cde8ee59.entry.js.map +0 -1
|
@@ -5257,9 +5257,11 @@ function daysForLocale(language, weekday = 'long') {
|
|
|
5257
5257
|
return [...Array(7).keys()].map(day => format(new Date(date.getTime()).setUTCDate(firstDayOfWeek + day)));
|
|
5258
5258
|
}
|
|
5259
5259
|
function monthsForLocale(language, month = 'long') {
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5260
|
+
return Array.from({ length: 12 }, (_, i) => {
|
|
5261
|
+
const date = new Date();
|
|
5262
|
+
date.setMonth(i);
|
|
5263
|
+
return date.toLocaleString(language, { month });
|
|
5264
|
+
});
|
|
5263
5265
|
}
|
|
5264
5266
|
function getLocale$1(language) {
|
|
5265
5267
|
return {
|