@haiilo/catalyst 10.21.1 → 10.21.3
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
|
@@ -5253,9 +5253,11 @@ function daysForLocale(language, weekday = 'long') {
|
|
|
5253
5253
|
return [...Array(7).keys()].map(day => format(new Date(date.getTime()).setUTCDate(firstDayOfWeek + day)));
|
|
5254
5254
|
}
|
|
5255
5255
|
function monthsForLocale(language, month = 'long') {
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5256
|
+
return Array.from({ length: 12 }, (_, i) => {
|
|
5257
|
+
const date = new Date();
|
|
5258
|
+
date.setMonth(i);
|
|
5259
|
+
return date.toLocaleString(language, { month });
|
|
5260
|
+
});
|
|
5259
5261
|
}
|
|
5260
5262
|
function getLocale$1(language) {
|
|
5261
5263
|
return {
|