Skip to content

Commit c9ff7fd

Browse files
Merge pull request #5 from iron-tech-space/editable_table
Add TypeScript to project
2 parents 950dcb7 + f23a4c7 commit c9ff7fd

File tree

177 files changed

+29179
-22344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+29179
-22344
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@typescript-eslint/parser",
33
"extends": [ "react-app" ]
44
}

.idea/codeStyles/Project.xml

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.0.73
2+
3+
- Add TypeScript to project
4+
- Restrict declarative to many files
5+
- Add extraData as object for Modal and Simple components
6+
- Rename `setDateStore` to `setDataStore`
7+
- Fix infinity for `Select`
8+
19
## 0.0.72
210

311
- Add initFormData in Form dispatch

dist/components/Base/index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/** Компонент выбора даты */
2+
export function DatePicker(props: any): JSX.Element;
3+
export function TimePicker(props: any): JSX.Element;
4+
/** Компонент вывода даты в текстовом виде */
5+
export function TypographyDate(props: any): JSX.Element;
6+
/** Компонент кнопки со всеми пропрами AntButton */
7+
export function Button(props: any): JSX.Element;
8+
/** Custom компонент */
9+
export function Custom(props: any): JSX.Element | null;
10+
/** Компонент заголовка формы */
11+
export function FormHeader(props: any): JSX.Element;
12+
/** Компонент тела формы */
13+
export function FormBody(props: any): JSX.Element;
14+
/** Компонент подвала формы */
15+
export function FormFooter(props: any): JSX.Element;
16+
export function TabPane(props: any): JSX.Element;
17+
import { withStore } from "./withStore";
18+
export { withStore };
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export function withStore(Component: any, antFormItemProps: any): any;

dist/components/Button/Button.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, { FunctionComponent } from "react";
2+
import { ButtonProps as AntButtonProps } from "antd/lib/button/button";
3+
import { FormListFieldData } from "antd/es/form/FormList";
4+
import { StoreProps } from "../core/wrappers";
5+
export interface ButtonProps extends AntButtonProps, StoreProps {
6+
/** Параметры поля. Используется только для кнопок в FormList */
7+
field?: FormListFieldData;
8+
/** Переопределение onClick. Второй параметр используется только для кнопок в FormList */
9+
onClick?: (e: React.MouseEvent<HTMLElement>, field?: FormListFieldData) => void;
10+
}
11+
/** Компонент кнопки со всеми пропрами AntButton */
12+
declare const Button: FunctionComponent<ButtonProps>;
13+
export default Button;

dist/components/Custom/Custom.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React, { ReactNode } from "react";
2+
import { StoreProps } from "../core/wrappers";
3+
export interface CustomProps extends StoreProps {
4+
/** Функция для рендера компонента. В приритере если передани и render, и ребенок */
5+
render?: React.FunctionComponent;
6+
/** Возможен только 1 ребенок для рендоракомпонеента */
7+
children?: ReactNode;
8+
}
9+
/** Custom компонент */
10+
declare const Custom: (props: CustomProps) => JSX.Element | null;
11+
export default Custom;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { FunctionComponent } from "react";
2+
import { DatePickerProps, TimePickerProps } from "antd";
3+
/** Компонент выбора даты */
4+
export type { DatePickerProps } from "antd";
5+
export declare const RtDatePicker: FunctionComponent<DatePickerProps>;
6+
/** Компонент выбора времени */
7+
export type { TimePickerProps } from "antd";
8+
export declare const RtTimePicker: FunctionComponent<TimePickerProps>;
9+
/** Компонент вывода даты в текстовом виде */
10+
export declare const TypographyDate: (props: any) => JSX.Element;

dist/components/Form/Form.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export function FormHeader(props: any): JSX.Element;
2+
export function FormBody(props: any): JSX.Element;
3+
export function FormFooter(props: any): JSX.Element;
4+
declare var _default: any;
5+
export default _default;

dist/components/Form/FormItem.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default FormItem;
2+
declare function FormItem(props: any): JSX.Element | null;
3+
declare namespace FormItem {
4+
namespace propTypes {
5+
const child: PropTypes.Validator<object>;
6+
}
7+
}
8+
import PropTypes from "prop-types";

0 commit comments

Comments
 (0)