@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.
@@ -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;
@@ -21,3 +21,4 @@ export declare const Custom: Story;
21
21
  export declare const Multiple: Story;
22
22
  export declare const ShowSearch: Story;
23
23
  export declare const WithIcon: Story;
24
+ export declare const LongPlaceholder: Story;
@@ -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 { Dayjs } from "dayjs";
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 interface CalendarProps {
5
+ export type CalendarProps = {
6
6
  id?: string;
7
7
  placeholder?: string;
8
- defaultValue?: string;
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?: (date: Dayjs) => void;
16
+ onChange?: ((value: CalendarValueProps) => void) | null;
17
17
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
18
- disabledDate: (date: Dayjs) => boolean;
19
- onPanelChange?: (value: Dayjs, mode: string) => void;
20
- onSelect?: (date: Dayjs) => void;
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
- export interface CalendarDayProps {
33
- date: Dayjs;
34
- isToday: boolean;
35
- isSelected: boolean;
36
- isDisabled: boolean;
37
- handleClick: (date: Dayjs) => void;
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 { Dayjs } from "dayjs";
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 interface DatePickerProps {
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
- dateFormat?: string;
14
- locale?: string;
15
- disabled?: boolean;
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
- placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
23
- position?: ITDPosition;
24
- mask?: string | null;
15
+ disabled?: boolean;
25
16
  floating?: boolean;
17
+ position?: ITDPosition;
26
18
  suffix?: ChildrenProps;
27
- getPopupContainer?: () => HTMLElement;
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
- onOpenChange?: (open: boolean) => void;
37
- onPanelChange?: (value: string, mode: string) => void;
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): "small" | "medium" | "large" | "x-small" | "default" | "x-large" | "df";
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.102",
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
- "overlayscrollbars": "2.11.0",
43
- "overlayscrollbars-react": "0.5.0",
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;