@kwantis-id3/frontend-library 0.23.0 → 0.24.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.
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
3
3
  export type TInputType = "text" | "number" | "password" | "email" | "image" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "week" | "time" | "color";
4
4
  interface TextFieldProps {
@@ -7,7 +7,7 @@ interface TextFieldProps {
7
7
  /** The name of the input */
8
8
  name?: string;
9
9
  /** The onChange handler of the input */
10
- onChange?: (value: string) => void;
10
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
11
11
  /** The placeholder of the input */
12
12
  placeholder?: string;
13
13
  /** The HTML id of the input */
package/dist/index.d.ts CHANGED
@@ -97,7 +97,7 @@ interface TextFieldProps {
97
97
  /** The name of the input */
98
98
  name?: string;
99
99
  /** The onChange handler of the input */
100
- onChange?: (value: string) => void;
100
+ onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
101
101
  /** The placeholder of the input */
102
102
  placeholder?: string;
103
103
  /** The HTML id of the input */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "scriptsComments": {
6
6
  "storybook": "Starts storybook in development mode",