@codecademy/gamut
68.3.068.3.1-alpha.a2040c.0
dist/DatePicker/DatePickerCalendar/Calendar/utils/format.d.ts+
dist/DatePicker/DatePickerCalendar/Calendar/utils/format.d.tsNew file+28
Index: package/dist/DatePicker/DatePickerCalendar/Calendar/utils/format.d.ts
===================================================================
--- package/dist/DatePicker/DatePickerCalendar/Calendar/utils/format.d.ts
+++ package/dist/DatePicker/DatePickerCalendar/Calendar/utils/format.d.ts
@@ -0,0 +1,28 @@
+import type { IsoWeekday } from '../../../utils/locale';
+export declare const capitalizeFirst: ({ str, locale, }: {
+ str: string;
+ locale: Intl.Locale;
+}) => string;
+export declare const formatMonthYear: ({ date, locale, }: {
+ date: Date;
+ locale: Intl.Locale;
+}) => string;
+/**
+ * Get weekday names for column headers or abbr attributes.
+ * Column order follows `firstWeekday` (ISO 1 = Monday … 7 = Sunday), matching `Intl.Locale#getWeekInfo().firstDay`.
+ * @param format - 'short' for abbreviated (e.g. "Su", "Mo"), 'long' for full (e.g. "Sunday", "Monday")
+ */
+export declare const getWeekdayNames: ({ format, locale, firstWeekday, }: {
+ format: "short" | "long";
+ locale: Intl.Locale;
+ firstWeekday: IsoWeekday;
+}) => string[];
+export declare const getRelativeMonthLabels: (locale: Intl.Locale) => {
+ nextMonth: string;
+ lastMonth: string;
+};
+export declare const getRelativeTodayLabel: (locale: Intl.Locale) => string;
+export declare const formatDateForAriaLabel: ({ date, locale, }: {
+ date: Date;
+ locale: Intl.Locale;
+}) => string;