@inntechcorp/it-design 2.2.62 → 2.2.63

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,10 +1,10 @@
1
- import moment from "moment";
1
+ import dayjs from "../helpers/datetime/dayjsSetup";
2
2
  import { CalendarValueProps } from "../index";
3
3
  declare const Calendar: ({ value, defaultValue, className, onChange, disabledDate }: {
4
4
  value?: string;
5
5
  defaultValue?: string;
6
6
  className?: string;
7
7
  onChange?: ((value: CalendarValueProps) => void) | null;
8
- disabledDate?: (date: moment.Moment) => boolean;
8
+ disabledDate?: (date: dayjs.Dayjs) => boolean;
9
9
  }) => import("react/jsx-runtime").JSX.Element | null;
10
10
  export default Calendar;
@@ -2,4 +2,6 @@ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBa
2
2
  declare const Days: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
3
  declare const WeekShortDays: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  declare const Separator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
- export { Wrapper, Days, WeekShortDays, Separator };
5
+ declare const Months: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ declare const Years: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export { Wrapper, Days, WeekShortDays, Separator, Months, Years };
@@ -7,7 +7,7 @@ declare const CalendarWrapper: import("styled-components/dist/types").IStyledCom
7
7
  defaultValue?: string;
8
8
  className?: string;
9
9
  onChange?: ((value: import("./index").CalendarValueProps) => void) | null;
10
- disabledDate?: (date: moment.Moment) => boolean;
10
+ disabledDate?: (date: import("dayjs").Dayjs) => boolean;
11
11
  }, {
12
12
  $position: ITDPosition;
13
13
  }>> & string & Omit<({ value, defaultValue, className, onChange, disabledDate }: {
@@ -15,6 +15,6 @@ declare const CalendarWrapper: import("styled-components/dist/types").IStyledCom
15
15
  defaultValue?: string;
16
16
  className?: string;
17
17
  onChange?: ((value: import("./index").CalendarValueProps) => void) | null;
18
- disabledDate?: (date: moment.Moment) => boolean;
18
+ disabledDate?: (date: import("dayjs").Dayjs) => boolean;
19
19
  }) => import("react/jsx-runtime").JSX.Element | null, keyof import("react").Component<any, {}, any>>;
20
20
  export { Wrapper, CalendarWrapper };
@@ -48,3 +48,7 @@ export declare enum FormValidationTypes {
48
48
  ADMIN_USERNAME = "adminUsername",
49
49
  URL = "url"
50
50
  }
51
+ export declare enum ConnectionStatus {
52
+ ONLINE = "online",
53
+ OFFLINE = "offline"
54
+ }
@@ -1,2 +1 @@
1
- import 'moment-timezone';
2
1
  export default function FormatDate(date: Date, locale?: string, format?: string): string;
@@ -1,2 +1 @@
1
- import 'moment-timezone';
2
1
  export default function FormatDateTime(date: Date, locale?: string, format?: string): string;
@@ -1,2 +1 @@
1
- import 'moment-timezone';
2
1
  export default function FormatSimpleDate(date: Date, locale?: string, format?: string): string;
@@ -1,2 +1 @@
1
- import 'moment-timezone';
2
1
  export default function FormatSimpleDateTime(date: Date, locale?: string, format?: string): string;
@@ -1,2 +1,2 @@
1
- import 'moment-timezone';
2
- export default function FormatTime(time: moment.MomentInput, locale?: string, format?: string): string;
1
+ import dayjs from './dayjsSetup';
2
+ export default function FormatTime(time: dayjs.ConfigType, locale?: string, format?: string): string;
@@ -0,0 +1,2 @@
1
+ import dayjs from 'dayjs';
2
+ export default dayjs;
@@ -1,10 +1,11 @@
1
+ import { ConnectionStatus } from "enums/enum";
1
2
  /**
2
3
  *
3
4
  * window objesine event listener ekler ve
4
5
  * kullanıcı online ve offline olduğunda çağrılır.
5
6
  *
6
- * @param {*} handler
7
+ * @param handler
7
8
  *
8
9
  */
9
- declare const useConnectionStatus: (handler: (event: Event) => void) => void;
10
+ declare const useConnectionStatus: (handler: (status: ConnectionStatus, event: Event) => void) => void;
10
11
  export default useConnectionStatus;