design-zystem 1.0.225 → 1.0.226
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -778,6 +778,7 @@ declare const Spinner: ({ size, color }: SpinnerProps) => react_jsx_runtime.JSX.
|
|
|
778
778
|
* - "weekdayDay": short weekday + day
|
|
779
779
|
* - "weekdayYear": short weekday + day + month + year
|
|
780
780
|
* - "weekdayTime": weekday/date + time (24h)
|
|
781
|
+
* - "longDate": day + full month + year, no weekday (ex: 16 mai 2024)
|
|
781
782
|
* - "dateISO": ISO format YYYY-MM-DD (timezone-safe for backend)
|
|
782
783
|
*/
|
|
783
784
|
declare const formatDate: (dateString: Date | string | number | null | undefined, type?: string, language?: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -778,6 +778,7 @@ declare const Spinner: ({ size, color }: SpinnerProps) => react_jsx_runtime.JSX.
|
|
|
778
778
|
* - "weekdayDay": short weekday + day
|
|
779
779
|
* - "weekdayYear": short weekday + day + month + year
|
|
780
780
|
* - "weekdayTime": weekday/date + time (24h)
|
|
781
|
+
* - "longDate": day + full month + year, no weekday (ex: 16 mai 2024)
|
|
781
782
|
* - "dateISO": ISO format YYYY-MM-DD (timezone-safe for backend)
|
|
782
783
|
*/
|
|
783
784
|
declare const formatDate: (dateString: Date | string | number | null | undefined, type?: string, language?: string) => string;
|
package/dist/index.js
CHANGED
|
@@ -5050,6 +5050,8 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
5050
5050
|
});
|
|
5051
5051
|
return `${dayPart} ${formatTime()}`;
|
|
5052
5052
|
}
|
|
5053
|
+
case "longDate":
|
|
5054
|
+
return format({ day: "numeric", month: "long", year: "numeric" });
|
|
5053
5055
|
default:
|
|
5054
5056
|
return format({ day: "2-digit", month: "2-digit", year: "numeric" });
|
|
5055
5057
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4973,6 +4973,8 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
4973
4973
|
});
|
|
4974
4974
|
return `${dayPart} ${formatTime()}`;
|
|
4975
4975
|
}
|
|
4976
|
+
case "longDate":
|
|
4977
|
+
return format({ day: "numeric", month: "long", year: "numeric" });
|
|
4976
4978
|
default:
|
|
4977
4979
|
return format({ day: "2-digit", month: "2-digit", year: "numeric" });
|
|
4978
4980
|
}
|