@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.
- package/dist/calendar/day/Day.d.ts +1 -2
- package/dist/calendar/index.d.ts +2 -2
- package/dist/datepicker/styled.d.ts +2 -2
- package/dist/global.css +7 -0
- package/dist/helpers/datetime/FormatDate.d.ts +2 -3
- package/dist/helpers/datetime/FormatDateTime.d.ts +2 -3
- package/dist/helpers/datetime/FormatSimpleDate.d.ts +2 -3
- package/dist/helpers/datetime/FormatSimpleDateTime.d.ts +2 -3
- package/dist/helpers/datetime/FormatTime.d.ts +2 -4
- package/dist/index.cjs.js +472 -1023
- package/dist/index.d.ts +35 -56
- package/dist/index.esm.js +472 -1023
- package/dist/select/menu/styled.d.ts +1 -0
- package/dist/stories/Select.stories.d.ts +1 -0
- package/dist/tinyscrollbar/index.d.ts +3 -1
- package/dist/types/CalendarProps.d.ts +17 -24
- package/dist/types/DatePickerProps.d.ts +10 -26
- package/dist/types/SelectProps.d.ts +1 -0
- package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +5 -3
- package/dist/stories/Calendar.d.ts +0 -10
- package/dist/stories/Calendar.stories.d.ts +0 -18
|
@@ -3,6 +3,7 @@ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBa
|
|
|
3
3
|
declare const BodyWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{
|
|
4
4
|
className: string;
|
|
5
5
|
children: import("../../types/ChildrenProps").ChildrenProps;
|
|
6
|
+
style?: React.CSSProperties;
|
|
6
7
|
}, never>> & string & Omit<typeof TinyScrollbar, keyof import("react").Component<any, {}, any>>;
|
|
7
8
|
declare const ModalEnter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
9
|
declare const ModalEnterActive: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import 'overlayscrollbars/styles/overlayscrollbars.css';
|
|
1
2
|
import { ChildrenProps } from 'types/ChildrenProps';
|
|
2
3
|
type TinyScrollbarProps = {
|
|
3
4
|
className: string;
|
|
4
5
|
children: ChildrenProps;
|
|
6
|
+
style?: React.CSSProperties;
|
|
5
7
|
};
|
|
6
|
-
export default function TinyScrollbar({ className, children }: TinyScrollbarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function TinyScrollbar({ className, children, style }: TinyScrollbarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import moment from "moment";
|
|
2
2
|
import { ChildrenProps } from "./ChildrenProps";
|
|
3
3
|
import { InputVariant } from "./InputProps";
|
|
4
4
|
import { ITDSize } from "./ITDProps";
|
|
5
|
-
export
|
|
5
|
+
export type CalendarProps = {
|
|
6
6
|
id?: string;
|
|
7
7
|
placeholder?: string;
|
|
8
|
-
defaultValue
|
|
8
|
+
defaultValue: CalendarValueProps;
|
|
9
9
|
className?: string;
|
|
10
10
|
mask?: null | string;
|
|
11
11
|
size?: ITDSize;
|
|
@@ -13,26 +13,19 @@ export interface CalendarProps {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
floating?: boolean;
|
|
15
15
|
suffix?: ChildrenProps;
|
|
16
|
-
onChange?: (
|
|
16
|
+
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
17
17
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
18
|
-
disabledDate: (date:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
value?: string;
|
|
22
|
-
dateFormat?: string;
|
|
23
|
-
locale?: string;
|
|
24
|
-
mode?: "month" | "year";
|
|
25
|
-
fullscreen?: boolean;
|
|
26
|
-
headerRender?: (value: Dayjs, type: string, originalNode: React.ReactElement) => React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
export interface CalendarValueProps {
|
|
29
|
-
global: string;
|
|
18
|
+
disabledDate: (date: moment.Moment) => boolean;
|
|
19
|
+
};
|
|
20
|
+
export type CalendarValueProps = {
|
|
30
21
|
localizated: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
global: string;
|
|
23
|
+
};
|
|
24
|
+
export type CalendarDayProps = {
|
|
25
|
+
date: moment.Moment;
|
|
26
|
+
today?: boolean;
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
current?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
handleClick: (date: moment.Moment) => void;
|
|
31
|
+
};
|
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import moment from "moment";
|
|
2
2
|
import { CalendarValueProps } from "./CalendarProps";
|
|
3
3
|
import { ChildrenProps } from "./ChildrenProps";
|
|
4
4
|
import { InputVariant } from "./InputProps";
|
|
5
5
|
import { ITDPosition, ITDSize } from "./ITDProps";
|
|
6
|
-
export
|
|
6
|
+
export type DatePickerProps = {
|
|
7
7
|
id?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
className?: string;
|
|
10
8
|
placeholder?: string;
|
|
11
|
-
value?: string;
|
|
12
9
|
defaultValue?: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readOnly?: boolean;
|
|
17
|
-
allowClear?: boolean;
|
|
18
|
-
autoFocus?: boolean;
|
|
10
|
+
value?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
mask?: null | string;
|
|
19
13
|
size?: ITDSize;
|
|
20
|
-
status?: "" | "error" | "warning";
|
|
21
14
|
variant?: InputVariant;
|
|
22
|
-
|
|
23
|
-
position?: ITDPosition;
|
|
24
|
-
mask?: string | null;
|
|
15
|
+
disabled?: boolean;
|
|
25
16
|
floating?: boolean;
|
|
17
|
+
position?: ITDPosition;
|
|
26
18
|
suffix?: ChildrenProps;
|
|
27
|
-
|
|
28
|
-
inputReadOnly?: boolean;
|
|
29
|
-
needConfirm?: boolean;
|
|
30
|
-
showNow?: boolean;
|
|
31
|
-
showTime?: boolean | object;
|
|
32
|
-
showToday?: boolean;
|
|
33
|
-
disabledDate?: (date: Dayjs) => boolean;
|
|
34
|
-
onChange?: (date: CalendarValueProps) => void;
|
|
19
|
+
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
35
20
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
21
|
+
disabledDate?: (date: moment.Moment) => boolean;
|
|
22
|
+
};
|
|
@@ -56,6 +56,7 @@ export type SelectOptionProps = {
|
|
|
56
56
|
icon?: ChildrenProps;
|
|
57
57
|
image?: string;
|
|
58
58
|
disabled?: boolean;
|
|
59
|
+
searchText?: string;
|
|
59
60
|
};
|
|
60
61
|
export type SelectValue = string | number | (string | number)[];
|
|
61
62
|
export type SelectVariant = "default" | "solid" | "filled" | "outline" | "custom";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ITDSizeSlug } from "../index";
|
|
2
|
-
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "
|
|
2
|
+
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "x-small" | "medium" | "default" | "x-large" | "df";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inntechcorp/it-design",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "All in one Design library for web applications.",
|
|
5
5
|
"author": "Inn.Tech",
|
|
6
6
|
"license": "ISC",
|
|
@@ -39,8 +39,9 @@
|
|
|
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
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"moment": "^2.30.1",
|
|
43
|
+
"moment-timezone": "^0.6.0",
|
|
44
|
+
"overlayscrollbars": "^2.11.3",
|
|
44
45
|
"postcss": "8.5.3",
|
|
45
46
|
"postcss-calc": "10.1.1",
|
|
46
47
|
"prop-types": "^15.8.1",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"react-spring": "9.7.5",
|
|
56
57
|
"react-svg": "16.3.0",
|
|
57
58
|
"react-transition-group": "4.4.5",
|
|
59
|
+
"react-virtuoso": "^4.12.8",
|
|
58
60
|
"smoothscroll-polyfill": "^0.4.4",
|
|
59
61
|
"styled-components": "6.1.13",
|
|
60
62
|
"uuid": "10.0.0",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import './button.css';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { Dayjs } from 'dayjs';
|
|
4
|
-
export interface StoryCalendarProps {
|
|
5
|
-
defaultValue?: string;
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange?: (value: any) => void;
|
|
8
|
-
disabledDate?: (date: Dayjs) => boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const Calendar: FC<StoryCalendarProps>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<import("./Calendar").StoryCalendarProps>;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
argTypes: {};
|
|
10
|
-
args: {
|
|
11
|
-
onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default meta;
|
|
15
|
-
type Story = StoryObj<typeof meta>;
|
|
16
|
-
export declare const Default: Story;
|
|
17
|
-
export declare const WithDefaultValue: Story;
|
|
18
|
-
export declare const WithDisabledDates: Story;
|