formifex 0.2.13 → 0.2.15

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,7 +3,9 @@ import { EDataType } from '../common';
3
3
  import { ReactNode } from 'react';
4
4
  export type TInputCheckbox = {
5
5
  inputType: EInputType.checkbox | "checkbox";
6
- properties?: {};
6
+ properties?: {
7
+ [key: string]: any;
8
+ };
7
9
  } & (TInputCheckboxString | TInputCheckboxNumber) & TInputGeneric;
8
10
  type TInputCheckboxString = {
9
11
  dataType: EDataType.string | "string";
@@ -10,5 +10,6 @@ export type TInputColorPicker = {
10
10
  placement?: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
11
11
  format?: "rgb" | "hex" | "hsb";
12
12
  showText?: boolean;
13
+ [key: string]: any;
13
14
  };
14
15
  } & TInputGeneric;
@@ -14,6 +14,7 @@ export type TInputDatePicker = {
14
14
  minDate?: Dayjs | undefined;
15
15
  maxDate?: Dayjs | undefined;
16
16
  showNow?: boolean | undefined;
17
+ [key: string]: any;
17
18
  } & (TShowTime | TMultiple);
18
19
  } & TInputGeneric;
19
20
  export type TShowTime = {
@@ -17,5 +17,6 @@ export type TInputNumber = {
17
17
  unitLabel?: string;
18
18
  defaultValue?: number;
19
19
  controls: boolean;
20
+ [key: string]: any;
20
21
  };
21
22
  } & TInputGeneric;
@@ -8,5 +8,6 @@ export type TInputPassword = {
8
8
  maxLength?: number;
9
9
  allowClear?: boolean;
10
10
  showCount?: boolean;
11
+ [key: string]: any;
11
12
  };
12
13
  } & TInputGeneric;
@@ -8,6 +8,7 @@ export type TInputRadio = {
8
8
  optionType?: "button" | "default";
9
9
  buttonStyle?: "solid" | "outline";
10
10
  size?: "small" | "middle" | "large";
11
+ [key: string]: any;
11
12
  };
12
13
  } & (TInputRadioString | TInputRadioNumber) & TInputGeneric;
13
14
  type TInputRadioString = {
@@ -9,5 +9,6 @@ export type TInputRate = {
9
9
  character?: React.ReactNode;
10
10
  count?: number;
11
11
  tooltips?: string[];
12
+ [key: string]: any;
12
13
  };
13
14
  } & TInputGeneric;
@@ -37,6 +37,7 @@ export type TInputSelect = {
37
37
  maxTagCount?: number;
38
38
  showSearch?: boolean;
39
39
  listHeight?: number;
40
+ [key: string]: any;
40
41
  };
41
42
  filter?: {
42
43
  fieldID: string;
@@ -15,6 +15,7 @@ export type TInputSlider = {
15
15
  tooltipFormatter?: (value: number) => string;
16
16
  prefix?: ReactNode | string | undefined | null;
17
17
  suffix?: ReactNode | string | undefined | null;
18
+ [key: string]: any;
18
19
  };
19
20
  } & (inputSliderRange | inputSliderSingle) & TInputGeneric;
20
21
  type inputSliderRange = {
@@ -8,5 +8,6 @@ export type TInputSwitch = {
8
8
  properties?: {
9
9
  checkedChildren?: ReactNode;
10
10
  unCheckedChildren?: ReactNode;
11
+ [key: string]: any;
11
12
  };
12
13
  } & TInputGeneric;
@@ -11,5 +11,6 @@ export type TInputString = {
11
11
  maxLength?: number;
12
12
  allowClear?: boolean;
13
13
  showCount?: boolean;
14
+ [key: string]: any;
14
15
  };
15
16
  } & TInputGeneric;
@@ -13,5 +13,6 @@ export type TInputTextArea = {
13
13
  minRows: number;
14
14
  maxRows: number;
15
15
  };
16
+ [key: string]: any;
16
17
  };
17
18
  } & TInputGeneric;
@@ -35,6 +35,7 @@ export type TInputUpload = {
35
35
  removeIcon?: ReactNode | ((file: UploadFile) => ReactNode);
36
36
  downloadIcon?: ReactNode | ((file: UploadFile) => ReactNode);
37
37
  };
38
+ [key: string]: any;
38
39
  };
39
40
  } & (TInputUploadImage | TInputUploadFile) & TInputGeneric;
40
41
  export type TInputUploadImage = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "formifex",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "author": "Perry Pue Khim Min (perry@rajang.com)",
6
6
  "main": "./dist/index.umd.js",