Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
No EOL
1.2 KiB
Text
34 lines
No EOL
1.2 KiB
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.labelDay = void 0;
|
|
exports.labelDayButton = labelDayButton;
|
|
const DateLib_js_1 = require("../classes/DateLib.js");
|
|
/**
|
|
* Generates the ARIA label for a day button.
|
|
*
|
|
* Use the `modifiers` argument to provide additional context for the label,
|
|
* such as indicating if the day is "today" or "selected."
|
|
*
|
|
* @defaultValue The formatted date.
|
|
* @param date - The date to format.
|
|
* @param modifiers - The modifiers providing context for the day.
|
|
* @param options - Optional configuration for the date formatting library.
|
|
* @param dateLib - An optional instance of the date formatting library.
|
|
* @returns The ARIA label for the day button.
|
|
* @group Labels
|
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
|
*/
|
|
function labelDayButton(date, modifiers, options, dateLib) {
|
|
let label = (dateLib ?? new DateLib_js_1.DateLib(options)).format(date, "PPPP");
|
|
if (modifiers.today)
|
|
label = `Today, ${label}`;
|
|
if (modifiers.selected)
|
|
label = `${label}, selected`;
|
|
return label;
|
|
}
|
|
/**
|
|
* @ignore
|
|
* @deprecated Use `labelDayButton` instead.
|
|
*/
|
|
exports.labelDay = labelDayButton;
|
|
//# sourceMappingURL=labelDayButton.js.map |