@zydon/common 1.0.0 → 1.0.2
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/App.d.ts.map +1 -1
- package/dist/components/Common/index.d.ts +5 -0
- package/dist/components/Common/index.d.ts.map +1 -0
- package/dist/components/Common/props.d.ts +6 -0
- package/dist/components/Common/props.d.ts.map +1 -0
- package/dist/components/DatePicker/index.d.ts +5 -0
- package/dist/components/DatePicker/index.d.ts.map +1 -0
- package/dist/components/DatePicker/props.d.ts +4 -0
- package/dist/components/DatePicker/props.d.ts.map +1 -0
- package/dist/components/DateRangePicker/index.d.ts +5 -0
- package/dist/components/DateRangePicker/index.d.ts.map +1 -0
- package/dist/components/DateRangePicker/props.d.ts +4 -0
- package/dist/components/DateRangePicker/props.d.ts.map +1 -0
- package/dist/components/DateTimePicker/index.d.ts +5 -0
- package/dist/components/DateTimePicker/index.d.ts.map +1 -0
- package/dist/components/DateTimePicker/props.d.ts +4 -0
- package/dist/components/DateTimePicker/props.d.ts.map +1 -0
- package/dist/components/ThemeProvider/index.d.ts.map +1 -1
- package/dist/components/TimePicker/index.d.ts +5 -0
- package/dist/components/TimePicker/index.d.ts.map +1 -0
- package/dist/components/TimePicker/props.d.ts +4 -0
- package/dist/components/TimePicker/props.d.ts.map +1 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hooks/useResponsive.d.ts +1 -1
- package/dist/index.js +10623 -5974
- package/dist/index.umd.cjs +35 -34
- package/dist/utils/formatTime.d.ts +7 -0
- package/dist/utils/formatTime.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type InputValue = Date | string | number | null;
|
|
2
|
+
export declare function fDate(date: InputValue, newFormat?: string): string | null;
|
|
3
|
+
export declare function fDateTime(date: InputValue, newFormat?: string): string | null;
|
|
4
|
+
export declare function fTimestamp(date: InputValue): number | null;
|
|
5
|
+
export declare function fToNow(date: InputValue): string | null;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=formatTime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatTime.d.ts","sourceRoot":"","sources":["../../src/utils/formatTime.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAEhD,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,MAAM,iBAIzD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,MAAM,iBAI7D;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,iBAE1C;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,UAAU,iBAMtC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zydon/common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@mui/lab": "^5.0.0-alpha.140",
|
|
27
27
|
"@mui/material": "^5.14.5",
|
|
28
28
|
"@mui/x-data-grid-premium": "^6.11.2",
|
|
29
|
+
"@mui/x-date-pickers-pro": "^6.11.2",
|
|
29
30
|
"@types/color": "^3.0.3",
|
|
30
31
|
"@types/lodash": "^4.14.197",
|
|
31
32
|
"@types/node": "^20.5.3",
|
|
@@ -53,9 +54,10 @@
|
|
|
53
54
|
"peerDependencies": {
|
|
54
55
|
"@emotion/react": ">=11.x",
|
|
55
56
|
"@emotion/styled": ">=11.x",
|
|
57
|
+
"@mui/lab": ">=5.x",
|
|
56
58
|
"@mui/material": ">=5.x",
|
|
57
59
|
"@mui/x-data-grid-premium": ">=6.x",
|
|
58
|
-
"@mui/
|
|
60
|
+
"@mui/x-date-pickers-pro": ">=6.x",
|
|
59
61
|
"react": ">=18.x",
|
|
60
62
|
"react-dom": ">=18.x",
|
|
61
63
|
"react-hook-form": ">=7.x"
|
|
@@ -63,6 +65,7 @@
|
|
|
63
65
|
"dependencies": {
|
|
64
66
|
"@iconify/react": "^4.1.1",
|
|
65
67
|
"color": "^4.2.3",
|
|
68
|
+
"date-fns": "^2.30.0",
|
|
66
69
|
"react-lazy-load-image-component": "^1.6.0",
|
|
67
70
|
"simplebar-react": "^3.2.4"
|
|
68
71
|
},
|