@adlas/create-app 1.0.31 → 1.0.32
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/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export type DatePickerProps = Omit<
|
|
|
36
36
|
* Helper function to convert string or Date to DateValue
|
|
37
37
|
*/
|
|
38
38
|
const convertToDateValue = (
|
|
39
|
-
value: string | Date | null | undefined
|
|
39
|
+
value: string | Date | null | undefined,
|
|
40
40
|
): DateValue | null => {
|
|
41
41
|
if (!value) {
|
|
42
42
|
return null;
|
|
@@ -78,7 +78,7 @@ function DatePickerComponent({ value, onChange, ...props }: DatePickerProps) {
|
|
|
78
78
|
onChange?.(null);
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
-
[onChange]
|
|
81
|
+
[onChange],
|
|
82
82
|
);
|
|
83
83
|
|
|
84
84
|
return <BaseDatePicker {...props} value={dateValue} onChange={handleChange} />;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare module 'next-pwa' {
|
|
2
|
+
import type { NextConfig } from 'next';
|
|
3
|
+
|
|
4
|
+
type PWAConfig = {
|
|
5
|
+
dest?: string;
|
|
6
|
+
register?: boolean;
|
|
7
|
+
skipWaiting?: boolean;
|
|
8
|
+
disable?: boolean;
|
|
9
|
+
sw?: string;
|
|
10
|
+
publicExcludes?: string[];
|
|
11
|
+
buildExcludes?: string[];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function withPWA(pwaConfig: PWAConfig): (nextConfig: NextConfig) => NextConfig;
|
|
15
|
+
|
|
16
|
+
export default withPWA;
|
|
17
|
+
}
|