calendar-2k 1.0.13 → 1.0.17
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/README.md +6 -10
- package/build/Calendar2kModule.d.ts +3 -2
- package/build/Calendar2kModule.js +0 -15
- package/build/Calendar2kView.d.ts +2 -1
- package/package.json +1 -1
- package/src/Calendar2kView.tsx +3 -1
package/README.md
CHANGED
|
@@ -187,12 +187,12 @@ disableDate={(date) => date.toDateString() === new Date("2025-12-25").toDateStri
|
|
|
187
187
|
|
|
188
188
|
## Platform Support
|
|
189
189
|
|
|
190
|
-
| Platform | Supported
|
|
191
|
-
| -------- |
|
|
192
|
-
| iOS | ✅
|
|
193
|
-
| Android | ✅
|
|
194
|
-
| Expo Go | ✅
|
|
195
|
-
| Web |
|
|
190
|
+
| Platform | Supported |
|
|
191
|
+
| -------- | -------------- |
|
|
192
|
+
| iOS | ✅ |
|
|
193
|
+
| Android | ✅ |
|
|
194
|
+
| Expo Go | ✅ |
|
|
195
|
+
| Web | 🚧 Coming soon |
|
|
196
196
|
|
|
197
197
|
---
|
|
198
198
|
|
|
@@ -211,8 +211,4 @@ Your support helps me maintain this project and build more free open-source tool
|
|
|
211
211
|
|
|
212
212
|
---
|
|
213
213
|
|
|
214
|
-
⭐ You can also support for free by **starring the repo** — it helps a lot!
|
|
215
|
-
|
|
216
|
-
## License
|
|
217
|
-
|
|
218
214
|
MIT
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { NativeModule } from "expo";
|
|
2
2
|
import { Calendar2kModuleEvents } from "./Calendar2k.types";
|
|
3
|
-
declare class Calendar2kModule extends NativeModule<Calendar2kModuleEvents> {
|
|
3
|
+
declare class Calendar2kModule extends NativeModule<Calendar2kModuleEvents> {
|
|
4
|
+
}
|
|
4
5
|
declare const _default: Calendar2kModule;
|
|
5
6
|
export default _default;
|
|
6
|
-
export
|
|
7
|
+
export type { DateValueType } from "./Calendar2k.types";
|
|
7
8
|
export { default as Calendar2kView } from "./Calendar2kView";
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
4
|
};
|
|
@@ -20,6 +6,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
6
|
exports.Calendar2kView = void 0;
|
|
21
7
|
var expo_1 = require("expo");
|
|
22
8
|
exports.default = (0, expo_1.requireNativeModule)("Calendar2k");
|
|
23
|
-
__exportStar(require("./Calendar2k.types"), exports);
|
|
24
9
|
var Calendar2kView_1 = require("./Calendar2kView");
|
|
25
10
|
Object.defineProperty(exports, "Calendar2kView", { enumerable: true, get: function () { return __importDefault(Calendar2kView_1).default; } });
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { type Calendar2kViewProps } from "./Calendar2k.types";
|
|
2
|
+
import { type Calendar2kViewProps, type DateValueType } from "./Calendar2k.types";
|
|
3
3
|
export default function Calendar2kView({ onChangeDate, value, locales, color, min, max, disableDate, placeholder, mode, }: Calendar2kViewProps): React.JSX.Element;
|
|
4
|
+
export type { DateValueType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "calendar-2k",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "The fastest fully customizable Expo date & time picker, written in TypeScript, supporting Expo Go, single date, time, date range, time range, datetime range selection, flexible date disabling, and dynamic color theming for iOS and Android.",
|
|
5
5
|
"main": "build/Calendar2kView.js",
|
|
6
6
|
"types": "build/Calendar2k.types.d.ts",
|
package/src/Calendar2kView.tsx
CHANGED
|
@@ -18,8 +18,8 @@ import { toHexColor } from "./libs/toHexColor";
|
|
|
18
18
|
import { KText, KTouchableOpacity, KView } from "./ui";
|
|
19
19
|
|
|
20
20
|
import {
|
|
21
|
-
DateValueType,
|
|
22
21
|
type Calendar2kViewProps,
|
|
22
|
+
type DateValueType,
|
|
23
23
|
type DayColumnProps,
|
|
24
24
|
type DayProps,
|
|
25
25
|
} from "./Calendar2k.types";
|
|
@@ -349,3 +349,5 @@ export default function Calendar2kView({
|
|
|
349
349
|
</>
|
|
350
350
|
);
|
|
351
351
|
}
|
|
352
|
+
|
|
353
|
+
export type { DateValueType };
|