@kwantis-id3/frontend-library 0.18.1 → 0.19.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,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
3
+ export type TInputType = "text" | "number" | "password" | "email" | "image" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "week" | "time" | "color";
3
4
  interface TextFieldProps {
4
- value?: string;
5
+ value?: string | number;
5
6
  name?: string;
6
7
  onChange?: (value: string) => void;
7
8
  placeholder?: string;
@@ -15,6 +16,7 @@ interface TextFieldProps {
15
16
  readonly?: boolean;
16
17
  autoFocus?: boolean;
17
18
  list?: string;
19
+ type?: TInputType;
18
20
  }
19
- export declare const TextField: (props: TextFieldProps) => JSX.Element;
21
+ export declare const InputField: (props: TextFieldProps) => JSX.Element;
20
22
  export {};
@@ -0,0 +1 @@
1
+ export { InputField, TInputType } from "./InputField";
@@ -1,7 +1,7 @@
1
1
  export { Button, ButtonProps } from "./Button";
2
2
  export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
3
3
  export { Accordion, AccordionProps } from "./Accordion";
4
- export { TextField } from "./TextField";
4
+ export { InputField, TInputType } from "./InputField";
5
5
  export { SingleSelect, SingleSelectProps, MultiSelect, MultiSelectProps, } from "./SelectFilter";
6
6
  export { Slider, SliderProps } from "./Slider";
7
7
  export { Dropdown, DropdownProps, DropdownItem } from "./Dropdown";
package/dist/index.d.ts CHANGED
@@ -72,8 +72,9 @@ type AccordionProps = {
72
72
  };
73
73
  declare const Accordion: (props: AccordionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
74
74
 
75
+ type TInputType = "text" | "number" | "password" | "email" | "image" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "week" | "time" | "color";
75
76
  interface TextFieldProps {
76
- value?: string;
77
+ value?: string | number;
77
78
  name?: string;
78
79
  onChange?: (value: string) => void;
79
80
  placeholder?: string;
@@ -87,8 +88,9 @@ interface TextFieldProps {
87
88
  readonly?: boolean;
88
89
  autoFocus?: boolean;
89
90
  list?: string;
91
+ type?: TInputType;
90
92
  }
91
- declare const TextField: (props: TextFieldProps) => JSX.Element;
93
+ declare const InputField: (props: TextFieldProps) => JSX.Element;
92
94
 
93
95
  interface SingleSelectProps<Option = {
94
96
  label: string;
@@ -225,4 +227,4 @@ interface CreateStyled extends BaseCreateStyled, StyledTags {
225
227
  }
226
228
  declare const styled: CreateStyled;
227
229
 
228
- export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, Modal, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, TextField, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, styled, transientOptions, useIsMobile, useThemeContext };
230
+ export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, InputField, Modal, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, TInputType, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, styled, transientOptions, useIsMobile, useThemeContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.18.1",
3
+ "version": "0.19.0",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": {
6
6
  "name": "kwantis"
@@ -1 +0,0 @@
1
- export { TextField } from "./TextField";