@inntechcorp/it-design 2.2.62 → 2.2.64

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,4 +1,4 @@
1
- import moment from "moment";
1
+ import dayjs from "dayjs";
2
2
  import { ChildrenProps } from "./ChildrenProps";
3
3
  import { InputVariant } from "./InputProps";
4
4
  import { ITDSize } from "./ITDProps";
@@ -15,17 +15,17 @@ export type CalendarProps = {
15
15
  suffix?: ChildrenProps;
16
16
  onChange?: ((value: CalendarValueProps) => void) | null;
17
17
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
18
- disabledDate: (date: moment.Moment) => boolean;
18
+ disabledDate: (date: dayjs.Dayjs) => boolean;
19
19
  };
20
20
  export type CalendarValueProps = {
21
21
  localizated: string;
22
22
  global: string;
23
23
  };
24
24
  export type CalendarDayProps = {
25
- date: moment.Moment;
25
+ date: dayjs.Dayjs;
26
26
  today?: boolean;
27
27
  selected?: boolean;
28
28
  current?: boolean;
29
29
  disabled?: boolean;
30
- handleClick: (date: moment.Moment) => void;
30
+ handleClick: (date: dayjs.Dayjs) => void;
31
31
  };
@@ -1,4 +1,4 @@
1
- import moment from "moment";
1
+ import dayjs from "dayjs";
2
2
  import { CalendarValueProps } from "./CalendarProps";
3
3
  import { ChildrenProps } from "./ChildrenProps";
4
4
  import { InputVariant } from "./InputProps";
@@ -18,5 +18,5 @@ export type DatePickerProps = {
18
18
  suffix?: ChildrenProps;
19
19
  onChange?: ((value: CalendarValueProps) => void) | null;
20
20
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
21
- disabledDate?: (date: moment.Moment) => boolean;
21
+ disabledDate?: (date: dayjs.Dayjs) => boolean;
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.2.62",
3
+ "version": "2.2.64",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",
@@ -39,8 +39,7 @@
39
39
  "i18next-http-backend": "3.0.2",
40
40
  "i18next-resources-to-backend": "^1.2.1",
41
41
  "lodash-es": "4.17.21",
42
- "moment": "^2.30.1",
43
- "moment-timezone": "^0.6.0",
42
+
44
43
  "overlayscrollbars": "2.11.4",
45
44
  "postcss": "8.5.6",
46
45
  "postcss-calc": "10.1.1",