@inntechcorp/it-design 2.1.102 → 2.2.1

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,6 +1,5 @@
1
1
  import { ChildrenProps } from 'types/ChildrenProps';
2
2
  import { CalendarDayProps } from 'types/CalendarProps';
3
- export default function Day({ date, isToday, isSelected, isDisabled, isCurrentMonth, handleClick, children }: {
3
+ export default function Day({ date, today, current, disabled, selected, handleClick, children }: {
4
4
  children: ChildrenProps;
5
- isCurrentMonth?: boolean;
6
5
  } & CalendarDayProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
- import { Dayjs } from "dayjs";
1
+ import moment from "moment";
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: Dayjs) => boolean;
8
+ disabledDate?: (date: moment.Moment) => boolean;
9
9
  }) => import("react/jsx-runtime").JSX.Element | null;
10
10
  export default Calendar;
@@ -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: import("dayjs").Dayjs) => boolean;
10
+ disabledDate?: (date: moment.Moment) => boolean;
11
11
  }, {
12
12
  $position: ITDPosition;
13
13
  }>> & string & Omit<({ value, defaultValue, className, onChange, disabledDate }: {
@@ -15,7 +15,7 @@ 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: import("dayjs").Dayjs) => boolean;
18
+ disabledDate?: (date: moment.Moment) => boolean;
19
19
  }) => import("react/jsx-runtime").JSX.Element | null, keyof import("react").Component<any, {}, any>>;
20
20
  declare const ModalEnter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
21
  declare const ModalEnterActive: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
package/dist/global.css CHANGED
@@ -64,4 +64,11 @@ textarea {
64
64
  color : #555;
65
65
  -webkit-font-smoothing: antialiased;
66
66
 
67
+ }
68
+
69
+ .os-theme-dark {
70
+ --os-size: 8px;
71
+ --os-handle-bg: #3598fe80;
72
+ --os-handle-bg-hover: #3598fe;
73
+ --os-handle-bg-active: #3598fe;
67
74
  }
@@ -1,3 +1,2 @@
1
- import 'dayjs/locale/tr';
2
- import 'dayjs/locale/en';
3
- export default function FormatDate(date: string | Date, locale?: string, format?: string): string;
1
+ import 'moment-timezone';
2
+ export default function FormatDate(date: Date, locale?: string, format?: string): string;
@@ -1,3 +1,2 @@
1
- import 'dayjs/locale/tr';
2
- import 'dayjs/locale/en';
3
- export default function FormatDateTime(date: string | Date, locale?: string, format?: string): string;
1
+ import 'moment-timezone';
2
+ export default function FormatDateTime(date: Date, locale?: string, format?: string): string;
@@ -1,3 +1,2 @@
1
- import 'dayjs/locale/tr';
2
- import 'dayjs/locale/en';
3
- export default function FormatSimpleDate(date: string | Date, locale?: string, format?: string): string;
1
+ import 'moment-timezone';
2
+ export default function FormatSimpleDate(date: Date, locale?: string, format?: string): string;
@@ -1,3 +1,2 @@
1
- import 'dayjs/locale/tr';
2
- import 'dayjs/locale/en';
3
- export default function FormatSimpleDateTime(date: string | Date, locale?: string, format?: string): string;
1
+ import 'moment-timezone';
2
+ export default function FormatSimpleDateTime(date: Date, locale?: string, format?: string): string;
@@ -1,4 +1,2 @@
1
- import { ConfigType } from 'dayjs';
2
- import 'dayjs/locale/tr';
3
- import 'dayjs/locale/en';
4
- export default function FormatTime(time: ConfigType, locale?: string, format?: string): string;
1
+ import 'moment-timezone';
2
+ export default function FormatTime(time: moment.MomentInput, locale?: string, format?: string): string;