@kwantis-id3/frontend-library 0.16.2 → 0.17.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.
@@ -7,6 +7,7 @@ export interface MultiSelectProps<Option = {
7
7
  options: Option[];
8
8
  onChange?: (option: Option[] | null) => void;
9
9
  value?: readonly Option[] | null;
10
+ name?: string;
10
11
  placeholder?: string;
11
12
  isDisabled?: boolean;
12
13
  isClearable?: boolean;
@@ -14,7 +15,9 @@ export interface MultiSelectProps<Option = {
14
15
  isOptionDisabled?: (option: Option) => boolean;
15
16
  isLoading?: boolean;
16
17
  color?: ThemeColorsExtended;
18
+ containerId?: string;
17
19
  htmlId?: string;
18
20
  className?: string;
21
+ required?: boolean;
19
22
  }
20
23
  export declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
@@ -7,6 +7,7 @@ export interface SingleSelectProps<Option = {
7
7
  options: Option[];
8
8
  onChange?: (option: Option | null) => void;
9
9
  value?: Option | null;
10
+ name?: string;
10
11
  placeholder?: string;
11
12
  isDisabled?: boolean;
12
13
  isClearable?: boolean;
@@ -14,7 +15,9 @@ export interface SingleSelectProps<Option = {
14
15
  isOptionDisabled?: (option: Option) => boolean;
15
16
  isLoading?: boolean;
16
17
  color?: ThemeColorsExtended;
18
+ containerId?: string;
17
19
  htmlId?: string;
18
20
  className?: string;
21
+ required?: boolean;
19
22
  }
20
23
  export declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
@@ -2,12 +2,19 @@
2
2
  import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
3
3
  interface TextFieldProps {
4
4
  value?: string;
5
+ name?: string;
5
6
  onChange?: (value: string) => void;
6
7
  placeholder?: string;
7
8
  htmlId?: string;
9
+ containerClassName?: string;
8
10
  className?: string;
9
11
  isDisabled?: boolean;
10
12
  color?: ThemeColorsExtended;
13
+ required?: boolean;
14
+ pattern?: string;
15
+ readonly?: boolean;
16
+ autoFocus?: boolean;
17
+ list?: string;
11
18
  }
12
19
  export declare const TextField: (props: TextFieldProps) => JSX.Element;
13
20
  export {};
package/dist/index.d.ts CHANGED
@@ -73,12 +73,19 @@ declare const Accordion: (props: AccordionProps) => _emotion_react_types_jsx_nam
73
73
 
74
74
  interface TextFieldProps {
75
75
  value?: string;
76
+ name?: string;
76
77
  onChange?: (value: string) => void;
77
78
  placeholder?: string;
78
79
  htmlId?: string;
80
+ containerClassName?: string;
79
81
  className?: string;
80
82
  isDisabled?: boolean;
81
83
  color?: ThemeColorsExtended;
84
+ required?: boolean;
85
+ pattern?: string;
86
+ readonly?: boolean;
87
+ autoFocus?: boolean;
88
+ list?: string;
82
89
  }
83
90
  declare const TextField: (props: TextFieldProps) => JSX.Element;
84
91
 
@@ -89,6 +96,7 @@ interface SingleSelectProps<Option = {
89
96
  options: Option[];
90
97
  onChange?: (option: Option | null) => void;
91
98
  value?: Option | null;
99
+ name?: string;
92
100
  placeholder?: string;
93
101
  isDisabled?: boolean;
94
102
  isClearable?: boolean;
@@ -96,8 +104,10 @@ interface SingleSelectProps<Option = {
96
104
  isOptionDisabled?: (option: Option) => boolean;
97
105
  isLoading?: boolean;
98
106
  color?: ThemeColorsExtended;
107
+ containerId?: string;
99
108
  htmlId?: string;
100
109
  className?: string;
110
+ required?: boolean;
101
111
  }
102
112
  declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
103
113
 
@@ -108,6 +118,7 @@ interface MultiSelectProps<Option = {
108
118
  options: Option[];
109
119
  onChange?: (option: Option[] | null) => void;
110
120
  value?: readonly Option[] | null;
121
+ name?: string;
111
122
  placeholder?: string;
112
123
  isDisabled?: boolean;
113
124
  isClearable?: boolean;
@@ -115,8 +126,10 @@ interface MultiSelectProps<Option = {
115
126
  isOptionDisabled?: (option: Option) => boolean;
116
127
  isLoading?: boolean;
117
128
  color?: ThemeColorsExtended;
129
+ containerId?: string;
118
130
  htmlId?: string;
119
131
  className?: string;
132
+ required?: boolean;
120
133
  }
121
134
  declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
122
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.16.2",
3
+ "version": "0.17.0",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": {
6
6
  "name": "kwantis"