design-zystem 1.0.370 → 1.0.371
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/ui/index.d.mts +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +8 -0
- package/dist/ui/index.mjs +8 -0
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -1534,6 +1534,7 @@ declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeC
|
|
|
1534
1534
|
* - "weekdayTime": jour/date + heure (24h)
|
|
1535
1535
|
* - "time": heure seule (24h) (ex: 14:32)
|
|
1536
1536
|
* - "longDate": jour + mois complet + année, sans jour de semaine (ex: 16 mai 2024)
|
|
1537
|
+
* - "dayMonth": jour + mois complet, sans jour de semaine (année si différente) (ex: 16 mai)
|
|
1537
1538
|
* - "dateISO": format ISO YYYY-MM-DD (safe timezone pour le backend)
|
|
1538
1539
|
*/
|
|
1539
1540
|
declare const formatDate: (dateString: Date | string | number | null | undefined, type?: string, language?: string) => string;
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1534,6 +1534,7 @@ declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeC
|
|
|
1534
1534
|
* - "weekdayTime": jour/date + heure (24h)
|
|
1535
1535
|
* - "time": heure seule (24h) (ex: 14:32)
|
|
1536
1536
|
* - "longDate": jour + mois complet + année, sans jour de semaine (ex: 16 mai 2024)
|
|
1537
|
+
* - "dayMonth": jour + mois complet, sans jour de semaine (année si différente) (ex: 16 mai)
|
|
1537
1538
|
* - "dateISO": format ISO YYYY-MM-DD (safe timezone pour le backend)
|
|
1538
1539
|
*/
|
|
1539
1540
|
declare const formatDate: (dateString: Date | string | number | null | undefined, type?: string, language?: string) => string;
|
package/dist/ui/index.js
CHANGED
|
@@ -7094,6 +7094,14 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
7094
7094
|
}
|
|
7095
7095
|
case "time":
|
|
7096
7096
|
return formatTime2();
|
|
7097
|
+
case "dayMonth": {
|
|
7098
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
7099
|
+
const dateYear = date.getFullYear();
|
|
7100
|
+
return format2(__spreadValues({
|
|
7101
|
+
day: "numeric",
|
|
7102
|
+
month: "long"
|
|
7103
|
+
}, dateYear !== currentYear && { year: "numeric" }));
|
|
7104
|
+
}
|
|
7097
7105
|
case "longDate":
|
|
7098
7106
|
return format2({ day: "numeric", month: "long", year: "numeric" });
|
|
7099
7107
|
default:
|
package/dist/ui/index.mjs
CHANGED
|
@@ -6944,6 +6944,14 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
6944
6944
|
}
|
|
6945
6945
|
case "time":
|
|
6946
6946
|
return formatTime2();
|
|
6947
|
+
case "dayMonth": {
|
|
6948
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
6949
|
+
const dateYear = date.getFullYear();
|
|
6950
|
+
return format2(__spreadValues({
|
|
6951
|
+
day: "numeric",
|
|
6952
|
+
month: "long"
|
|
6953
|
+
}, dateYear !== currentYear && { year: "numeric" }));
|
|
6954
|
+
}
|
|
6947
6955
|
case "longDate":
|
|
6948
6956
|
return format2({ day: "numeric", month: "long", year: "numeric" });
|
|
6949
6957
|
default:
|