@mighty-justice/fields-ant
Advanced tools
Comparing version
@@ -7,2 +7,8 @@ ### Changelog | ||
#### [v1.4.1](https://github.com/mighty-justice/fields-ant/compare/v1.4.0...v1.4.1) | ||
> 30 March 2020 | ||
- Fix type of className [`#283`](https://github.com/mighty-justice/fields-ant/pull/283) | ||
#### [v1.4.0](https://github.com/mighty-justice/fields-ant/compare/v1.3.6...v1.4.0) | ||
@@ -9,0 +15,0 @@ |
import { Component } from 'react'; | ||
import { ClassValue } from 'classnames/types'; | ||
export interface IButtonToolbarProps { | ||
align?: 'between' | 'right'; | ||
className?: any; | ||
className?: ClassValue; | ||
fixed?: boolean; | ||
@@ -6,0 +7,0 @@ noSpacing?: boolean; |
import { Component } from 'react'; | ||
import { ClassValue } from 'classnames/types'; | ||
import { IFieldSetPartial } from '../interfaces'; | ||
import { IClassName } from '../props'; | ||
interface IProps { | ||
className?: ClassValue; | ||
fieldSet: IFieldSetPartial; | ||
className?: IClassName; | ||
} | ||
@@ -8,0 +8,0 @@ export default class FieldSet extends Component<IProps> { |
import { Component } from 'react'; | ||
import { IClassName } from '../props'; | ||
import { ClassValue } from 'classnames/types'; | ||
import { IFieldConfig } from '../interfaces'; | ||
@@ -10,3 +10,3 @@ declare class Info extends Component<{ | ||
declare class Label extends Component<{ | ||
className?: IClassName; | ||
className?: ClassValue; | ||
}> { | ||
@@ -16,3 +16,3 @@ render(): JSX.Element; | ||
declare class Value extends Component<{ | ||
className?: IClassName; | ||
className?: ClassValue; | ||
}> { | ||
@@ -19,0 +19,0 @@ render(): JSX.Element; |
import React, { Component } from 'react'; | ||
import { ClassValue } from 'classnames/types'; | ||
import { SelectProps } from 'antd/es/select'; | ||
@@ -8,3 +9,3 @@ import { FormManager, IEndpointOption, IFieldConfig, IFieldConfigObjectSearchCreate } from '../'; | ||
addNewContent?: React.ReactNode; | ||
className?: string; | ||
className?: ClassValue; | ||
debounceWait?: number; | ||
@@ -11,0 +12,0 @@ fieldConfig: IFieldConfigObjectSearchCreate; |
@@ -6,2 +6,3 @@ /// <reference types="react" /> | ||
import { ValidationRule as AntValidationRule, FormItemProps } from 'antd/es/form'; | ||
import { ClassValue } from 'classnames/types'; | ||
import { IModel, IValue } from './props'; | ||
@@ -14,3 +15,3 @@ import { FormManager } from './utilities'; | ||
interface IFieldConfigBase { | ||
className?: string; | ||
className?: ClassValue; | ||
colProps?: ColProps; | ||
@@ -17,0 +18,0 @@ disabled: boolean; |
@@ -22,3 +22,2 @@ import React from 'react'; | ||
import { IFieldSet, IFieldSetPartial } from './interfaces'; | ||
export declare type IClassName = ClassValue[]; | ||
export declare type IValue = any; | ||
@@ -31,3 +30,3 @@ export interface IModel { | ||
children?: React.ReactNode; | ||
className?: IClassName; | ||
className?: ClassValue; | ||
classNameSuffix?: string; | ||
@@ -34,0 +33,0 @@ fieldSets: IFieldSet[] | IFieldSetPartial[]; |
{ | ||
"name": "@mighty-justice/fields-ant", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Standard Ant design component interface for Field Sets", | ||
@@ -5,0 +5,0 @@ "main": "dist/fieldsAnt.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
489542
0.2%12247
0.07%