@kwantis-id3/frontend-library 0.18.2 → 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.
- package/README.md +11 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/{TextField/TextField.d.ts → InputField/InputField.d.ts} +4 -2
- package/dist/esm/types/components/InputField/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/index.d.ts +5 -3
- package/package.json +1 -1
- package/dist/esm/types/components/TextField/index.d.ts +0 -1
- /package/dist/esm/types/components/{TextField/StyledTextField.d.ts → InputField/StyledInputField.d.ts} +0 -0
|
@@ -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
|
|
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 {
|
|
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
|
|
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,
|
|
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 +0,0 @@
|
|
|
1
|
-
export { TextField } from "./TextField";
|
|
File without changes
|