@arquimedes.co/eureka-forms 1.9.75-test → 1.9.76-test

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,10 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { Mapper } from '../../../@Types/FormStep';
3
+ import { MapperElement } from './MaterialMapperStep/MaterialMapperStep';
3
4
  import { StepProps } from '../Step';
4
- export interface MapperStepProps extends StepProps {
5
+ interface CustomMapperElementModifiers<Type> {
6
+ calcName?: (element: MapperElement<Type>) => string;
7
+ }
8
+ export interface MapperStepProps<Type = any> extends StepProps {
5
9
  /** The MapperStep to display */
6
10
  step: Mapper;
7
11
  customAdd?: JSX.Element;
12
+ customElementModifiers?: CustomMapperElementModifiers<Type>;
8
13
  }
9
- declare function MapperStep({ step, formStyle, ...others }: MapperStepProps): JSX.Element;
14
+ declare function MapperStep<Type>({ step, formStyle, ...others }: MapperStepProps<Type>): JSX.Element;
10
15
  export default MapperStep;
@@ -1,12 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { MapperStepProps } from '../../MapperStep';
3
3
  import { MapperElement } from '../MaterialMapperStep';
4
- interface CustomMapperElementModifiers<Type> {
5
- calcName?: (element: MapperElement<Type>) => string;
6
- }
7
4
  export interface MapperElementComponentProps<Type> {
8
5
  num: number;
9
- customElementModifiers?: CustomMapperElementModifiers<Type>;
10
6
  element: MapperElement<Type>;
11
7
  handleDelete: Function;
12
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version":"1.9.75-test",
4
+ "version":"1.9.76-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",