loon-bulma-react 2023.0.26 → 2023.1.0

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.
@@ -57,6 +57,6 @@ declare type SimpleTableColProps<T> = {
57
57
  * bordered={false}
58
58
  * />
59
59
  */
60
- declare function SimpleTable<T>(props: SimpleTableProps<T>): JSX.Element;
60
+ declare function SimpleTable<T extends {}>(props: SimpleTableProps<T>): JSX.Element;
61
61
  export { SimpleTable };
62
62
  export type { SimpleTableProps, SimpleTableColProps };
@@ -12,7 +12,7 @@ declare type InputStylingPropsType = {
12
12
  };
13
13
  declare type InputPropsType<T = InputValueType> = {
14
14
  /** label bij de input. Als geen label, dan wordt de `name`-property gebruikt */ label?: string;
15
- /** foutmelding bij de input*/ errorMessage?: string;
15
+ /** foutmelding bij de input*/ errorMessage?: string | ((v: InputValueType) => string);
16
16
  /** helptag in Loon bij de input (`:HOOFDGROEP:SUBGROEP:`)*/ helpTag?: string;
17
17
  /** type input (default = `text`)*/ type?: InputTypeProp;
18
18
  /** (optioneel) tooltip-title voor de input*/ title?: string;
package/dist/index.js CHANGED
@@ -7030,7 +7030,7 @@ function BaseInput(_ref) {
7030
7030
  }
7031
7031
  }), React__default.createElement("p", {
7032
7032
  className: "help is-danger"
7033
- }, errorMessage));
7033
+ }, typeof errorMessage === 'string' ? errorMessage : errorMessage(value)));
7034
7034
  }
7035
7035
  function Input(_ref3) {
7036
7036
  var _ref4;