@inntechcorp/it-design 2.2.72 → 2.2.73

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/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import react__default, { RefObject, Context, ReactNode, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, Ref, MutableRefObject, FocusEvent, KeyboardEvent, MouseEvent, ReactElement, CSSProperties } from 'react';
4
4
  import { ChildrenProps as ChildrenProps$1 } from 'types/ChildrenProps';
5
- import dayjs from 'dayjs';
5
+ import dayjs, { Dayjs } from 'dayjs';
6
6
  import { ConnectionStatus as ConnectionStatus$1, ModalState as ModalState$1, ComponentSizes as ComponentSizes$1, ComponentPositions as ComponentPositions$1, ComponentSizesSlug as ComponentSizesSlug$1, FormValidationTypes as FormValidationTypes$1 } from 'enums/enum';
7
7
  import { Cancel, AxiosProgressEvent } from 'axios';
8
8
  import { SelectValue as SelectValue$1 } from 'types/SelectProps';
@@ -835,19 +835,19 @@ type CalendarProps = {
835
835
  suffix?: ChildrenProps;
836
836
  onChange?: ((value: CalendarValueProps) => void) | null;
837
837
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
838
- disabledDate: (date: dayjs.Dayjs) => boolean;
838
+ disabledDate: (date: Dayjs) => boolean;
839
839
  };
840
840
  type CalendarValueProps = {
841
841
  localizated: string;
842
842
  global: string;
843
843
  };
844
844
  type CalendarDayProps = {
845
- date: dayjs.Dayjs;
845
+ date: Dayjs;
846
846
  today?: boolean;
847
847
  selected?: boolean;
848
848
  current?: boolean;
849
849
  disabled?: boolean;
850
- handleClick: (date: dayjs.Dayjs) => void;
850
+ handleClick: (date: Dayjs) => void;
851
851
  };
852
852
 
853
853
  type DatePickerProps = {
@@ -865,7 +865,7 @@ type DatePickerProps = {
865
865
  suffix?: ChildrenProps;
866
866
  onChange?: ((value: CalendarValueProps) => void) | null;
867
867
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
868
- disabledDate?: (date: dayjs.Dayjs) => boolean;
868
+ disabledDate?: (date: Dayjs) => boolean;
869
869
  };
870
870
 
871
871
  type TextAreaProps = {
@@ -1,4 +1,4 @@
1
- import dayjs from "../helpers/datetime/dayjsSetup";
1
+ import type { 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: dayjs.Dayjs) => boolean;
18
+ disabledDate: (date: 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: dayjs.Dayjs;
25
+ date: Dayjs;
26
26
  today?: boolean;
27
27
  selected?: boolean;
28
28
  current?: boolean;
29
29
  disabled?: boolean;
30
- handleClick: (date: dayjs.Dayjs) => void;
30
+ handleClick: (date: Dayjs) => void;
31
31
  };
@@ -1,4 +1,4 @@
1
- import dayjs from "../helpers/datetime/dayjsSetup";
1
+ import type { 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: dayjs.Dayjs) => boolean;
21
+ disabledDate?: (date: Dayjs) => boolean;
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.2.72",
3
+ "version": "2.2.73",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",