calendar-2k 1.0.8 → 1.0.9

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.
@@ -1,3 +1,4 @@
1
+ import { DateValueType } from "../Calendar2k.types";
1
2
  declare const getStatus: ({ date, shortDate, selectedDate }: ArgType) => {
2
3
  isToday: boolean;
3
4
  isStartBorn: boolean;
@@ -5,10 +6,6 @@ declare const getStatus: ({ date, shortDate, selectedDate }: ArgType) => {
5
6
  isSelected: boolean;
6
7
  isForCurrentMonth: boolean;
7
8
  };
8
- export type DateValueType = Date | {
9
- start: Date;
10
- end?: Date;
11
- };
12
9
  export default getStatus;
13
10
  type ArgType = {
14
11
  date: Date;
@@ -1,5 +1,5 @@
1
1
  import { TextStyle, ViewStyle } from "react-native";
2
- import { DateValueType } from "./getStatus";
2
+ import { DateValueType } from "../Calendar2k.types";
3
3
  declare const getStyle: ({ date, shortDate, selectedDate, color, active, }: ArgType) => {
4
4
  touchableOpacity: ViewStyle;
5
5
  text: TextStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "calendar-2k",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
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/Calendar2kModule.d.ts",
@@ -12,13 +12,13 @@ import TimeView from "./components/TimeView";
12
12
  import useCalendarDisclose from "./hooks/useCalendarDisclose";
13
13
  import { formatDate, formatMonth, getWeekDay } from "./libs/format";
14
14
  import getDayMatrix from "./libs/getDayMatrix";
15
- import { DateValueType } from "./libs/getStatus";
16
15
  import getStyle from "./libs/getStyle";
17
16
  import isActive from "./libs/isActive";
18
17
  import { toHexColor } from "./libs/toHexColor";
19
18
  import { KText, KTouchableOpacity, KView } from "./ui";
20
19
 
21
20
  import {
21
+ DateValueType,
22
22
  type Calendar2kViewProps,
23
23
  type DayColumnProps,
24
24
  type DayProps,
@@ -1,3 +1,4 @@
1
+ import { DateValueType } from "../Calendar2k.types";
1
2
  import isToday from "./isToday";
2
3
  import resetTime from "./resetTime";
3
4
 
@@ -34,8 +35,6 @@ const getStatus = ({ date, shortDate, selectedDate }: ArgType) => {
34
35
  return status;
35
36
  };
36
37
 
37
- export type DateValueType = Date | { start: Date; end?: Date };
38
-
39
38
  export default getStatus;
40
39
 
41
40
  type ArgType = {
@@ -1,5 +1,6 @@
1
1
  import { TextStyle, ViewStyle } from "react-native";
2
- import getStatus, { DateValueType } from "./getStatus";
2
+ import { DateValueType } from "../Calendar2k.types";
3
+ import getStatus from "./getStatus";
3
4
 
4
5
  const getStyle = ({
5
6
  date,