design-zystem 1.0.270 → 1.0.272
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 +15 -1
- package/dist/index.mjs +15 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1076,6 +1076,7 @@ declare const Timeline: ({ items, lineColor, emptyLabel, }: TimelineProps) => re
|
|
|
1076
1076
|
* - type:
|
|
1077
1077
|
* - "date": locale short date (ex: 16/05/2024)
|
|
1078
1078
|
* - "dateTime": locale short date + time (24h)
|
|
1079
|
+
* - "dateTimeSeconds": DD/MM/YY + time with seconds (24h) (ex: 16/05/24 14:32:07)
|
|
1079
1080
|
* - "weekday": short weekday + day + month (year only if different)
|
|
1080
1081
|
* - "weekdayDay": short weekday + day
|
|
1081
1082
|
* - "weekdayYear": short weekday + day + month + year
|
package/dist/index.d.ts
CHANGED
|
@@ -1076,6 +1076,7 @@ declare const Timeline: ({ items, lineColor, emptyLabel, }: TimelineProps) => re
|
|
|
1076
1076
|
* - type:
|
|
1077
1077
|
* - "date": locale short date (ex: 16/05/2024)
|
|
1078
1078
|
* - "dateTime": locale short date + time (24h)
|
|
1079
|
+
* - "dateTimeSeconds": DD/MM/YY + time with seconds (24h) (ex: 16/05/24 14:32:07)
|
|
1079
1080
|
* - "weekday": short weekday + day + month (year only if different)
|
|
1080
1081
|
* - "weekdayDay": short weekday + day
|
|
1081
1082
|
* - "weekdayYear": short weekday + day + month + year
|
package/dist/index.js
CHANGED
|
@@ -1031,7 +1031,7 @@ var Button = (_a) => {
|
|
|
1031
1031
|
name: icon,
|
|
1032
1032
|
size,
|
|
1033
1033
|
family: "regular",
|
|
1034
|
-
color: outline ? variant :
|
|
1034
|
+
color: iconColor != null ? iconColor : outline ? variant : colors.white
|
|
1035
1035
|
}
|
|
1036
1036
|
) : icon;
|
|
1037
1037
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
@@ -6121,6 +6121,12 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
6121
6121
|
minute: "2-digit",
|
|
6122
6122
|
hourCycle: "h23"
|
|
6123
6123
|
}).format(date);
|
|
6124
|
+
const formatTimeWithSeconds = () => new Intl.DateTimeFormat(locale, {
|
|
6125
|
+
hour: "2-digit",
|
|
6126
|
+
minute: "2-digit",
|
|
6127
|
+
second: "2-digit",
|
|
6128
|
+
hourCycle: "h23"
|
|
6129
|
+
}).format(date);
|
|
6124
6130
|
switch (type) {
|
|
6125
6131
|
case "date":
|
|
6126
6132
|
return format({ day: "2-digit", month: "2-digit", year: "numeric" });
|
|
@@ -6132,6 +6138,14 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
6132
6138
|
});
|
|
6133
6139
|
return `${dayPart} ${formatTime2()}`;
|
|
6134
6140
|
}
|
|
6141
|
+
case "dateTimeSeconds": {
|
|
6142
|
+
const dayPart = format({
|
|
6143
|
+
day: "2-digit",
|
|
6144
|
+
month: "2-digit",
|
|
6145
|
+
year: "2-digit"
|
|
6146
|
+
});
|
|
6147
|
+
return `${dayPart} ${formatTimeWithSeconds()}`;
|
|
6148
|
+
}
|
|
6135
6149
|
case "dateISO": {
|
|
6136
6150
|
const year = date.getFullYear();
|
|
6137
6151
|
const month = String(date.getMonth() + 1).padStart(2, "0");
|
package/dist/index.mjs
CHANGED
|
@@ -895,7 +895,7 @@ var Button = (_a) => {
|
|
|
895
895
|
name: icon,
|
|
896
896
|
size,
|
|
897
897
|
family: "regular",
|
|
898
|
-
color: outline ? variant :
|
|
898
|
+
color: iconColor != null ? iconColor : outline ? variant : colors.white
|
|
899
899
|
}
|
|
900
900
|
) : icon;
|
|
901
901
|
return /* @__PURE__ */ jsxs2(
|
|
@@ -6005,6 +6005,12 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
6005
6005
|
minute: "2-digit",
|
|
6006
6006
|
hourCycle: "h23"
|
|
6007
6007
|
}).format(date);
|
|
6008
|
+
const formatTimeWithSeconds = () => new Intl.DateTimeFormat(locale, {
|
|
6009
|
+
hour: "2-digit",
|
|
6010
|
+
minute: "2-digit",
|
|
6011
|
+
second: "2-digit",
|
|
6012
|
+
hourCycle: "h23"
|
|
6013
|
+
}).format(date);
|
|
6008
6014
|
switch (type) {
|
|
6009
6015
|
case "date":
|
|
6010
6016
|
return format({ day: "2-digit", month: "2-digit", year: "numeric" });
|
|
@@ -6016,6 +6022,14 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
6016
6022
|
});
|
|
6017
6023
|
return `${dayPart} ${formatTime2()}`;
|
|
6018
6024
|
}
|
|
6025
|
+
case "dateTimeSeconds": {
|
|
6026
|
+
const dayPart = format({
|
|
6027
|
+
day: "2-digit",
|
|
6028
|
+
month: "2-digit",
|
|
6029
|
+
year: "2-digit"
|
|
6030
|
+
});
|
|
6031
|
+
return `${dayPart} ${formatTimeWithSeconds()}`;
|
|
6032
|
+
}
|
|
6019
6033
|
case "dateISO": {
|
|
6020
6034
|
const year = date.getFullYear();
|
|
6021
6035
|
const month = String(date.getMonth() + 1).padStart(2, "0");
|