@steroidsjs/core 3.0.0-beta.35 → 3.0.0-beta.37

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,6 @@
1
1
  import { IApiMethod } from '../components/ApiComponent';
2
2
  import Enum from '../base/Enum';
3
- export interface AutoCompleteConfig {
3
+ export interface IAutoCompleteConfig {
4
4
  /**
5
5
  * Подключить autocomplete?
6
6
  * @example true
@@ -69,7 +69,7 @@ export interface IDataProviderConfig {
69
69
  * Настройки поиска
70
70
  * @example {enable: true, minLength: 2, delay: 100}
71
71
  */
72
- autoComplete?: boolean | AutoCompleteConfig;
72
+ autoComplete?: boolean | IAutoCompleteConfig;
73
73
  /**
74
74
  * Загрузка данных после любого изменения запроса.
75
75
  * Если включен autoFetch, то настройки autoComplete не применятся.
@@ -1,4 +1,4 @@
1
- interface IDataSelectItem {
1
+ export interface IDataSelectItem {
2
2
  id: number | string | boolean;
3
3
  label?: string;
4
4
  [key: string]: unknown;
@@ -57,4 +57,3 @@ export interface IDataSelectResult {
57
57
  }
58
58
  export declare const getLinearItems: (items: any, groupAttribute: any) => any[];
59
59
  export default function useDataSelect(config: IDataSelectConfig): IDataSelectResult;
60
- export {};
@@ -8,7 +8,7 @@ import { IEmptyProps } from '../ui/list/Empty/Empty';
8
8
  import { IFormProps } from '../ui/form/Form/Form';
9
9
  import { Model } from '../components/MetaComponent';
10
10
  export type ListControlPosition = 'top' | 'bottom' | 'both' | string;
11
- interface ISortProps {
11
+ export interface ISortProps {
12
12
  /**
13
13
  * Включить сортировку
14
14
  * @example false
@@ -203,4 +203,3 @@ export declare const createInitialValues: ({ paginationProps, paginationSizeProp
203
203
  * Выбранные фильтры синхронизируются с адресной строкой.
204
204
  */
205
205
  export default function useList(config: IListConfig): IListOutput;
206
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.0-beta.35",
3
+ "version": "3.0.0-beta.37",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface AvatarGroupProps {
3
3
  view?: CustomView;
4
- children?: CustomView[];
4
+ children?: React.ReactNode[];
5
5
  style?: CustomStyle;
6
6
  maxCount?: number;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- interface ICounter {
2
+ export interface ICounter {
3
3
  isEnable: boolean;
4
4
  content: string | number;
5
5
  }
@@ -2,6 +2,12 @@
2
2
  import { IButtonProps } from 'src/ui/form/Button/Button';
3
3
  import { ILinkProps } from 'src/ui/nav/Link/Link';
4
4
  import { IAvatarProps } from '../Avatar/Avatar';
5
+ export interface ICardHeader {
6
+ avatar?: IAvatarProps;
7
+ menu?: boolean;
8
+ head?: string;
9
+ subhead?: string;
10
+ }
5
11
  export interface ICardProps {
6
12
  /**
7
13
  * Дополнительный CSS-класс
@@ -24,12 +30,7 @@ export interface ICardProps {
24
30
  /**
25
31
  * Контент хедера
26
32
  */
27
- header?: {
28
- avatar?: IAvatarProps;
29
- menu?: boolean;
30
- head?: string;
31
- subhead?: string;
32
- };
33
+ header?: ICardHeader;
33
34
  /**
34
35
  * Контент футера
35
36
  */
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- interface IButtonBadge {
2
+ export interface IButtonBadge {
3
3
  enable?: boolean;
4
4
  value?: number;
5
5
  color?: ColorName;
@@ -4,7 +4,7 @@ import { IFieldWrapperInputProps, IFieldWrapperOutputProps } from '../../form/Fi
4
4
  * FieldList
5
5
  * Создает список из сгруппированных полей формы
6
6
  */
7
- interface IFieldListItem extends IFieldWrapperInputProps {
7
+ export interface IFieldListItem extends IFieldWrapperInputProps {
8
8
  /**
9
9
  * Будет ли отображён item ?
10
10
  * @example true
@@ -14,7 +14,7 @@ export interface IModalProps {
14
14
  * Компонент, который отрендерится внутри Modal
15
15
  * @example () => <InnerModalComponent />
16
16
  */
17
- component?: () => JSX.Element;
17
+ component?: any;
18
18
  /**
19
19
  * Свойства для внутреннего компонента
20
20
  */