design-zystem 1.0.221 → 1.0.223
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 +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +3 -2
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
|
+
* - "dateISO": ISO format YYYY-MM-DD (timezone-safe for backend)
|
|
781
782
|
*/
|
|
782
783
|
declare const formatDate: (dateString: Date | string | number | null | undefined, type?: string, language?: string) => string;
|
|
783
784
|
declare const formatDistance: (distanceKm: number | string | null | undefined, 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
|
+
* - "dateISO": ISO format YYYY-MM-DD (timezone-safe for backend)
|
|
781
782
|
*/
|
|
782
783
|
declare const formatDate: (dateString: Date | string | number | null | undefined, type?: string, language?: string) => string;
|
|
783
784
|
declare const formatDistance: (distanceKm: number | string | null | undefined, language?: string) => string;
|
package/dist/index.js
CHANGED
|
@@ -5011,6 +5011,12 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
5011
5011
|
});
|
|
5012
5012
|
return `${dayPart} ${formatTime()}`;
|
|
5013
5013
|
}
|
|
5014
|
+
case "dateISO": {
|
|
5015
|
+
const year = date.getFullYear();
|
|
5016
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
5017
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
5018
|
+
return `${year}-${month}-${day}`;
|
|
5019
|
+
}
|
|
5014
5020
|
case "weekday": {
|
|
5015
5021
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5016
5022
|
const dateYear = date.getFullYear();
|
package/dist/index.mjs
CHANGED
|
@@ -4934,6 +4934,12 @@ var formatDate = (dateString, type = "date", language = "en") => {
|
|
|
4934
4934
|
});
|
|
4935
4935
|
return `${dayPart} ${formatTime()}`;
|
|
4936
4936
|
}
|
|
4937
|
+
case "dateISO": {
|
|
4938
|
+
const year = date.getFullYear();
|
|
4939
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
4940
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
4941
|
+
return `${year}-${month}-${day}`;
|
|
4942
|
+
}
|
|
4937
4943
|
case "weekday": {
|
|
4938
4944
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
4939
4945
|
const dateYear = date.getFullYear();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "design-zystem",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.223",
|
|
4
4
|
"description": "A React design system of importable components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"test": "vitest run --project unit",
|
|
13
13
|
"storybook": "storybook dev -p 6006",
|
|
14
14
|
"build-storybook": "storybook build",
|
|
15
|
-
"lint": "eslint . --ext js,jsx,ts,tsx --report-unused-disable-directives --max-warnings 0"
|
|
15
|
+
"lint": "eslint . --ext js,jsx,ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
16
|
+
"chromatic": "npx chromatic --project-token={{CHROMATIC_PROJECT_TOKEN}}"
|
|
16
17
|
},
|
|
17
18
|
"peerDependencies": {
|
|
18
19
|
"@types/react": "^18.0.0",
|