UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

35 lines (34 loc) 654 B
"use client"; import { buildFormatLongFn as t } from "../../_lib/buildFormatLongFn.js"; const m = { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, a = { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }, e = { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, d = { date: t({ formats: m, defaultWidth: "full" }), time: t({ formats: a, defaultWidth: "full" }), dateTime: t({ formats: e, defaultWidth: "full" }) }; export { d as formatLong };